From e83446da1a3f626920d5e65d4f78651581765b61 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 4 Jan 2007 14:23:48 +0100 Subject: tests: add basic infrastructure for regression tests The patch adds tests/ directory with simple regression tests infrastructure. Also, it adds the "ts-mount-paths" test that testing if all defined paths (fstab, mtab, locks) are still same. Signed-off-by: Karel Zak --- tests/run.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tests/run.sh (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 000000000..b4ca51b57 --- /dev/null +++ b/tests/run.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +. commands.sh + +echo +echo "------------------ Utils-linux-ng regression tests ------------------" +echo + +res=0 +count=0 +for ts in `ls ts-*`; do + $TS_TOPDIR/$ts + res=$(( $res + $? )) + count=$(( $count + 1 )) +done + +echo +echo "---------------------------------------------------------------------" +if [ $res -eq 0 ]; then + echo " All $count tests PASSED" +else + echo " $res tests of $count FAILED" +fi +echo "---------------------------------------------------------------------" + -- cgit v1.2.3-55-g7522