]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
selftest: add tests for debugging testing setup
authorLeah Rumancik <leah.rumancik@gmail.com>
Tue, 21 Feb 2023 22:36:49 +0000 (14:36 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Feb 2023 13:54:02 +0000 (21:54 +0800)
commite4561119eb12a62ed52a1a537a8e9fc24b82d29c
tree5cfa509e52bc1a9388a5bb4f8045a0e81d8abfb7
parentd33bf05dd985078a1db4835d5b39325b2639e7f0
selftest: add tests for debugging testing setup

Many people have developed infrastructure around xfstests. In order to
test a setup, it would be helpful to have dummy tests that have
consistent test outcomes. Add a new test folder with the following
tests:

selftest/001 pass
selftest/002 fail from output mismatch
selftest/003 fail via _fail
selftest/004 skip
selftest/005 crash
selftest/006 hang

Also, create two new groups: 'selftest' which includes tests 001-004 and
'dangerous_selftest' which includes tests 005-006. The selftests will
not run unless explicitly specified.

Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
15 files changed:
README.selftest [new file with mode: 0644]
doc/group-names.txt
tests/selftest/001 [new file with mode: 0755]
tests/selftest/001.out [new file with mode: 0644]
tests/selftest/002 [new file with mode: 0755]
tests/selftest/002.out [new file with mode: 0644]
tests/selftest/003 [new file with mode: 0755]
tests/selftest/003.out [new file with mode: 0644]
tests/selftest/004 [new file with mode: 0755]
tests/selftest/004.out [new file with mode: 0644]
tests/selftest/005 [new file with mode: 0755]
tests/selftest/005.out [new file with mode: 0644]
tests/selftest/006 [new file with mode: 0755]
tests/selftest/006.out [new file with mode: 0644]
tests/selftest/Makefile [new file with mode: 0644]