Using, for example:
% sudo ./run-tests.sh testcase/mytest_0
Will result in an execution of this single testcase rather than
the complete suite.
This is useful while working with a concrete testcase.
Signed-off-by: Arturo Borrero Gonzalez <arturo@debian.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
msg_error "no modprobe binary found"
fi
+if [ -x "$1" ] ; then
+ if grep ^.*${RETURNCODE_SEPARATOR}[0-9]\\+$ <<< $1 >/dev/null ; then
+ SINGLE=$1
+ VERBOSE=y
+ fi
+fi
+
if [ "$1" == "-v" ] ; then
VERBOSE=y
fi
}
find_tests() {
+ if [ ! -z "$SINGLE" ] ; then
+ echo $SINGLE
+ return
+ fi
${FIND} ${TESTDIR} -executable -regex \
.*${RETURNCODE_SEPARATOR}[0-9]+ | sort
}