tests: shell: Modify ipv6_maps_ipv4_0 file permission.
PATCH 1/1 tests: shell: Modify ipv6_maps_ipv4_0 file permission.
This patch changes the file permission of 0027ipv6_maps_ipv4_0 from 100644 to 100755.
Signed-off-by Varsha Rao <[email protected]>
--- tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 +0 -0
Signature · 1 line
2.14.3
PATCH 1/1 tests: Add test for compile options.
This patch adds a script to test available compile options.
Signed-off-by Varsha Rao <[email protected]>
--- tests/build/run-tests.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 tests/build/run-tests.sh
tests/build/run-tests.sh new file +34 -0
@@ -0,0 +1,34 @@ +#!/bin/bash + +if [ "$(id -u)" != "0" ] ; then + echo "Run as root user" + exit 1 +fi + +LOG_FILE="`pwd`/tests.log" +dir=../.. +cmd=./configure +argument=( --without-cli --enable-debug --with-mini-gmp --enable-pdf-doc --with-xtables ) +ok=0 +failed=0 + +[ -f $LOG_FILE ] && rm -rf $LOG_FILE +cd $dir + +for var in "${argument[@]}" ; do + echo "[EXECUTING] Testing compile option $var" + $cmd $var >/dev/null 2>>$LOG_FILE + rt=$? + echo -en "\033[1A\033[K" # clean the [EXECUTING] foobar line + + if [ $rt -eq 0 ] ; then + echo "[OK] Compile option $var works." + ((ok++)) + else + echo "[FAILED] Compile option $var does not work. Check log for details." + ((failed++)) + fi +done + +echo "results: [OK] $ok [FAILED] $failed [TOTAL] $((ok+failed))" +exit 0
Signature · 1 line
2.14.3