From: Zbigniew Jędrzejewski-Szmek Date: Tue, 23 Apr 2013 00:39:40 +0000 (-0400) Subject: test: make it easier to override kernel version X-Git-Tag: v203~102 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fff87a35d9e26c0d4ea41273a963c0eb20e18da4;p=elogind.git test: make it easier to override kernel version --- diff --git a/TODO b/TODO index fe27d2b2a..aa2c1cea9 100644 --- a/TODO +++ b/TODO @@ -72,8 +72,10 @@ Features: * explicitly disallow changing the cgroup path of units in the name=systemd hierarchy, unless it is outside of /system -* add 'set -e' to scripts in test/ -* make test in test/ work with separate output dir +* test/: + - add 'set -e' to scripts in test/ + - make stuff in test/ work with separate output dir + - remove all the duplicated code in test/ * suppress log output on shutdown when "quiet" is used diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh index 90492079e..e41ed9dcf 100755 --- a/test/TEST-01-BASIC/test.sh +++ b/test/TEST-01-BASIC/test.sh @@ -3,8 +3,7 @@ # ex: ts=8 sw=4 sts=4 et filetype=sh TEST_DESCRIPTION="Basic systemd setup" -KVERSION=${KVERSION-$(uname -r)} -KERNEL_VER=$(uname -r) +. $TEST_BASE_DIR/test-functions # Uncomment this to debug failures #DEBUGFAIL="systemd.unit=multi-user.target" @@ -242,5 +241,4 @@ test_cleanup() { return 0 } -. $TEST_BASE_DIR/test-functions do_test "$@" diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh index e0945313f..ec714301c 100755 --- a/test/TEST-02-CRYPTSETUP/test.sh +++ b/test/TEST-02-CRYPTSETUP/test.sh @@ -3,8 +3,7 @@ # ex: ts=8 sw=4 sts=4 et filetype=sh TEST_DESCRIPTION="cryptsetup systemd setup" -KVERSION=${KVERSION-$(uname -r)} -KERNEL_VER=$(uname -r) +. $TEST_BASE_DIR/test-functions # Uncomment this to debug failures #DEBUGFAIL="systemd.unit=multi-user.target" @@ -254,5 +253,4 @@ test_cleanup() { return 0 } -. $TEST_BASE_DIR/test-functions do_test "$@" diff --git a/test/TEST-03-JOBS/test.sh b/test/TEST-03-JOBS/test.sh index 6eaba72e5..6440d1f54 100755 --- a/test/TEST-03-JOBS/test.sh +++ b/test/TEST-03-JOBS/test.sh @@ -3,8 +3,7 @@ # ex: ts=8 sw=4 sts=4 et filetype=sh TEST_DESCRIPTION="Job-related tests" -KVERSION=${KVERSION-$(uname -r)} -KERNEL_VER=$(uname -r) +. $TEST_BASE_DIR/test-functions # Uncomment this to debug failures #DEBUGFAIL="systemd.unit=multi-user.target" @@ -247,5 +246,4 @@ test_cleanup() { return 0 } -. $TEST_BASE_DIR/test-functions do_test "$@"