mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: "detect" the test number automagically
Specifying the test number manually is tedious and prone to errors (as recently proven). Since we have all the necessary data to work out the test number, let's do it automagically.
This commit is contained in:
@@ -16,4 +16,4 @@ test_append_files() {
|
||||
cp -v "$TEST_UNITS_DIR"/{testsuite-01,end}.service "$TEST_UNITS_DIR/testsuite.target" "$dst"
|
||||
}
|
||||
|
||||
do_test "$@" 01
|
||||
do_test "$@"
|
||||
|
||||
@@ -71,4 +71,4 @@ check_result_qemu() {
|
||||
return $ret
|
||||
}
|
||||
|
||||
do_test "$@" 02
|
||||
do_test "$@"
|
||||
|
||||
@@ -8,4 +8,4 @@ IMAGE_NAME="default"
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 03
|
||||
do_test "$@"
|
||||
|
||||
@@ -6,4 +6,4 @@ TEST_DESCRIPTION="Journal-related tests"
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 04
|
||||
do_test "$@"
|
||||
|
||||
@@ -6,4 +6,4 @@ TEST_DESCRIPTION="Resource limits-related tests"
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 05
|
||||
do_test "$@"
|
||||
|
||||
@@ -54,4 +54,4 @@ test_append_files() {
|
||||
)
|
||||
}
|
||||
|
||||
do_test "$@" 06
|
||||
do_test "$@"
|
||||
|
||||
@@ -9,4 +9,4 @@ TEST_NO_QEMU=1
|
||||
|
||||
NSPAWN_TIMEOUT=30
|
||||
|
||||
do_test "$@" 07
|
||||
do_test "$@"
|
||||
|
||||
@@ -12,4 +12,4 @@ QEMU_TIMEOUT=300
|
||||
FSTYPE=ext4
|
||||
TEST_FORCE_NEWIMAGE=1
|
||||
|
||||
do_test "$@" 08
|
||||
do_test "$@"
|
||||
|
||||
@@ -9,4 +9,4 @@ TEST_NO_NSPAWN=1
|
||||
|
||||
QEMU_TIMEOUT=300
|
||||
|
||||
do_test "$@" 09
|
||||
do_test "$@"
|
||||
|
||||
@@ -6,4 +6,4 @@ TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/2467"
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 10
|
||||
do_test "$@"
|
||||
|
||||
@@ -7,4 +7,4 @@ TEST_NO_NSPAWN=1
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 11
|
||||
do_test "$@"
|
||||
|
||||
@@ -7,4 +7,4 @@ TEST_NO_QEMU=1
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 12
|
||||
do_test "$@"
|
||||
|
||||
@@ -17,4 +17,4 @@ test_append_files() {
|
||||
)
|
||||
}
|
||||
|
||||
do_test "$@" 13
|
||||
do_test "$@"
|
||||
|
||||
@@ -12,4 +12,4 @@ test_append_files() {
|
||||
printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >"${1:?}/etc/machine-id"
|
||||
}
|
||||
|
||||
do_test "$@" 14
|
||||
do_test "$@"
|
||||
|
||||
@@ -7,4 +7,4 @@ TEST_NO_QEMU=1
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 15
|
||||
do_test "$@"
|
||||
|
||||
@@ -8,4 +8,4 @@ TEST_NO_QEMU=1
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 16
|
||||
do_test "$@"
|
||||
|
||||
@@ -17,4 +17,4 @@ test_append_files() {
|
||||
)
|
||||
}
|
||||
|
||||
do_test "$@" 17
|
||||
do_test "$@"
|
||||
|
||||
@@ -8,4 +8,4 @@ TEST_DESCRIPTION="FailureAction= operation"
|
||||
|
||||
QEMU_TIMEOUT=600
|
||||
|
||||
do_test "$@" 18
|
||||
do_test "$@"
|
||||
|
||||
@@ -10,4 +10,4 @@ TEST_NO_NSPAWN=1
|
||||
QEMU_TIMEOUT=600
|
||||
UNIFIED_CGROUP_HIERARCHY=yes
|
||||
|
||||
do_test "$@" 19
|
||||
do_test "$@"
|
||||
|
||||
@@ -6,4 +6,4 @@ TEST_DESCRIPTION="test changing main PID"
|
||||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
do_test "$@" 20
|
||||
do_test "$@"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user