aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-12 20:52:46 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-12 20:52:46 +0000
commit4b17158506d5f3bb7e71111f5b6287f19bf20190 (patch)
tree0c3c3a02b5bed142069e2b73cbe4372cb3d7b4f5 /scripts
parent9490c148359332d797e4fc250812bd7a5fd131b1 (diff)
- Implemented vnode interfaces and 6 test cases to the test suite.
- Re-implmented kobj support based on the vnode support. - Add TESTS option to check.sh, and removed delay after module load. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@39 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/check.sh b/scripts/check.sh
index 5d7123684..3b8b75801 100755
--- a/scripts/check.sh
+++ b/scripts/check.sh
@@ -19,6 +19,12 @@ if [ -n "$V" ]; then
verbose="-v"
fi
+if [ -n "$TESTS" ]; then
+ tests="$TESTS"
+else
+ tests="-a"
+fi
+
if [ $(id -u) != 0 ]; then
die "Must run as root"
fi
@@ -37,8 +43,8 @@ echo "Loading ${spl_module}"
echo "Loading ${splat_module}"
/sbin/insmod ${splat_module} || die "Unable to load ${splat_module}"
-sleep 3
-$splat_cmd -a $verbose
+while [ ! -c /dev/splatctl ]; do sleep 0.1; done
+$splat_cmd $tests $verbose
echo "Unloading ${splat_module}"
/sbin/rmmod ${splat_module} || die "Failed to unload ${splat_module}"