2016-07-06 05:01:59 +03:00
|
|
|
#!/bin/bash
|
2020-04-18 22:28:24 +03:00
|
|
|
|
2015-11-20 21:26:00 +03:00
|
|
|
# Check known fault injections
|
|
|
|
set -e
|
|
|
|
source `dirname $0`/criu-lib.sh
|
|
|
|
prep
|
2021-12-05 16:45:20 +00:00
|
|
|
./test/zdtm.py run -t zdtm/static/env00 --fault 1 --report report -f h || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/unlink_fstat00 --fault 2 --report report -f h || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/maps00 --fault 3 --report report -f h || fail
|
2022-04-07 17:45:59 +03:00
|
|
|
|
|
|
|
# FIXME: fhandles looks broken on btrfs
|
2023-11-29 12:30:42 +00:00
|
|
|
findmnt --noheadings --target . | grep -q btrfs || NOBTRFS=$?
|
2022-04-07 17:45:59 +03:00
|
|
|
if [ $NOBTRFS -eq 1 ] ; then
|
|
|
|
./test/zdtm.py run -t zdtm/static/inotify_irmap --fault 128 --pre 2 -f uns || fail
|
|
|
|
fi
|
|
|
|
|
2016-03-29 12:56:00 +03:00
|
|
|
./test/zdtm.py run -t zdtm/static/env00 --fault 129 -f uns || fail
|
2016-04-27 15:03:00 +03:00
|
|
|
./test/zdtm.py run -t zdtm/transition/fork --fault 130 -f h || fail
|
2017-02-16 19:20:45 +03:00
|
|
|
./test/zdtm.py run -t zdtm/static/vdso01 --fault 127 || fail
|
2017-07-17 15:39:58 +03:00
|
|
|
./test/zdtm.py run -t zdtm/static/vdso-proxy --fault 127 --iters 3 || fail
|
2016-07-16 00:31:00 +03:00
|
|
|
|
2020-02-04 23:12:22 -08:00
|
|
|
if [ "${COMPAT_TEST}" != "y" ] ; then
|
|
|
|
./test/zdtm.py run -t zdtm/static/vdso01 --fault 133 -f h || fail
|
|
|
|
fi
|
|
|
|
|
2021-12-05 16:45:20 +00:00
|
|
|
./test/zdtm.py run -t zdtm/static/mntns_ghost --fault 2 --report report || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/mntns_ghost --fault 4 --report report || fail
|
2016-08-06 01:42:00 +03:00
|
|
|
|
2016-12-14 02:58:13 +03:00
|
|
|
./test/zdtm.py run -t zdtm/static/mntns_ghost --fault 6 --report report || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/mntns_link_remap --fault 6 --report report || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/unlink_fstat03 --fault 6 --report report || fail
|
|
|
|
|
2021-12-05 16:45:20 +00:00
|
|
|
./test/zdtm.py run -t zdtm/static/env00 --fault 5 --report report || fail
|
|
|
|
./test/zdtm.py run -t zdtm/static/maps04 --fault 131 --report report --pre 2:1 || fail
|
|
|
|
./test/zdtm.py run -t zdtm/transition/maps008 --fault 131 --report report --pre 2:1 || fail
|
2017-10-25 11:39:40 +03:00
|
|
|
./test/zdtm.py run -t zdtm/static/maps01 --fault 132 -f h || fail
|
2021-02-26 03:05:48 +00:00
|
|
|
# 134 is corrupting extended registers set, should run in a sub-thread (fpu03)
|
|
|
|
# without restore (that will check if parasite corrupts extended registers)
|
|
|
|
./test/zdtm.py run -t zdtm/static/fpu03 --fault 134 -f h --norst || fail
|
|
|
|
# also check for the main thread corruption
|
|
|
|
./test/zdtm.py run -t zdtm/static/fpu00 --fault 134 -f h --norst || fail
|
2024-04-20 00:24:27 +05:30
|
|
|
|
|
|
|
if ./test/zdtm.py run -t zdtm/static/vfork00 --fault 136 --report report -f h ; then
|
|
|
|
fail
|
|
|
|
fi
|