From: Mathieu Desnoyers Date: Mon, 18 Nov 2013 12:08:27 +0000 (-0500) Subject: Add run scripts X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=33cfcaeae67a71ee38ae12e9cbf9a202a8528d15;hp=9854c162ae6f5dea8cbaab63c786db8abca6c22e;p=ctf-testsuite.git Add run scripts Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/1.8/fuzzing/run.sh b/tests/1.8/fuzzing/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/fuzzing/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done diff --git a/tests/1.8/regression/metadata/fail/run.sh b/tests/1.8/regression/metadata/fail/run.sh new file mode 100755 index 0000000..f23416c --- /dev/null +++ b/tests/1.8/regression/metadata/fail/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +. ../../../../../utils/run.sh diff --git a/tests/1.8/regression/metadata/fail/test.sh b/tests/1.8/regression/metadata/fail/test.sh new file mode 100755 index 0000000..382c756 --- /dev/null +++ b/tests/1.8/regression/metadata/fail/test.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# +# Copyright (C) - 2013 Christian Babeux +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License, version 2 only, as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 51 +# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +CURDIR=$(dirname $0) +UTILS_DIR=$CURDIR/../../../../../utils/ + +source $UTILS_DIR/tap/tap.sh + +NUM_TESTS=1 + +plan_tests $NUM_TESTS + +if [ "x${CTF_READER_BIN}" == "x" ]; then + echo "Bail out! No CTF_READER_BIN specified" + exit 1 +fi + +$CTF_READER_BIN $CTF_READER_OPTS $1 >/dev/null 2>&1 + +result=$? + +is $result 1 $1 diff --git a/tests/1.8/regression/metadata/pass/run.sh b/tests/1.8/regression/metadata/pass/run.sh new file mode 100755 index 0000000..f23416c --- /dev/null +++ b/tests/1.8/regression/metadata/pass/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +. ../../../../../utils/run.sh diff --git a/tests/1.8/regression/metadata/pass/test.sh b/tests/1.8/regression/metadata/pass/test.sh new file mode 100755 index 0000000..99533c1 --- /dev/null +++ b/tests/1.8/regression/metadata/pass/test.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# +# Copyright (C) - 2013 Christian Babeux +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License, version 2 only, as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., 51 +# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +CURDIR=$(dirname $0) +UTILS_DIR=$CURDIR/../../../../../utils/ + +source $UTILS_DIR/tap/tap.sh + +NUM_TESTS=1 + +plan_tests $NUM_TESTS + +if [ "x${CTF_READER_BIN}" == "x" ]; then + echo "Bail out! No CTF_READER_BIN specified" + exit 1 +fi + +$CTF_READER_BIN $CTF_READER_OPTS $1 >/dev/null 2>&1 + +result=$? + +is $result 0 $1 diff --git a/tests/1.8/regression/metadata/run.sh b/tests/1.8/regression/metadata/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/regression/metadata/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done diff --git a/tests/1.8/regression/run.sh b/tests/1.8/regression/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/regression/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done diff --git a/tests/1.8/regression/stream/run.sh b/tests/1.8/regression/stream/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/regression/stream/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done diff --git a/tests/1.8/run.sh b/tests/1.8/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done diff --git a/tests/1.8/stress/run.sh b/tests/1.8/stress/run.sh new file mode 100755 index 0000000..78e3be0 --- /dev/null +++ b/tests/1.8/stress/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dir in */; do + echo "Running ${dir} tests" + cd ${dir} + ./run.sh + cd .. +done