mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
zdtm: move file_locks test-cases to the common list
In this case they will be executed in other name-spaces. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
d6ae662374
commit
ab2d10c247
16
test/zdtm.sh
16
test/zdtm.sh
@@ -80,6 +80,8 @@ static/mmx00
|
||||
static/sse00
|
||||
static/sse20
|
||||
static/fdt_shared
|
||||
static/file_locks00
|
||||
static/file_locks01
|
||||
"
|
||||
# Duplicate list with ns/ prefix
|
||||
TEST_LIST=$TEST_LIST$(echo $TEST_LIST | tr ' ' '\n' | sed 's#^#ns/#')
|
||||
@@ -119,11 +121,6 @@ static/sem
|
||||
transition/ipc
|
||||
"
|
||||
|
||||
FILE_LOCK_TEST_LIST="
|
||||
static/file_locks00
|
||||
static/file_locks01
|
||||
"
|
||||
|
||||
TEST_CR_KERNEL="
|
||||
static/sock_opts01
|
||||
static/sockets01
|
||||
@@ -315,7 +312,7 @@ EOF
|
||||
mkdir -p $ddump
|
||||
|
||||
save_fds $PID $ddump/dump.fd
|
||||
setsid $CRTOOLS_CPT dump --tcp-established --link-remap -x --evasive-devices -D $ddump -o dump.log -v 4 -t $PID $args $ARGS || {
|
||||
setsid $CRTOOLS_CPT dump --file-locks --tcp-established --link-remap -x --evasive-devices -D $ddump -o dump.log -v 4 -t $PID $args $ARGS || {
|
||||
echo WARNING: process $tname is left running for your debugging needs
|
||||
return 1
|
||||
}
|
||||
@@ -340,7 +337,7 @@ EOF
|
||||
done
|
||||
|
||||
echo Restore $PID
|
||||
setsid $CRTOOLS restore --tcp-established -x -D $ddump -o restore.log -v 4 -d -t $PID $args || return 2
|
||||
setsid $CRTOOLS restore --file-locks --tcp-established -x -D $ddump -o restore.log -v 4 -d -t $PID $args || return 2
|
||||
|
||||
for i in `seq 5`; do
|
||||
save_fds $PID $ddump/restore.fd
|
||||
@@ -447,11 +444,8 @@ if [ $# -eq 0 ]; then
|
||||
for t in $IPC_TEST_LIST; do
|
||||
run_test $t -n ipc || case_error $t
|
||||
done
|
||||
for t in $FILE_LOCK_TEST_LIST; do
|
||||
run_test $t -l || case_error $t
|
||||
done
|
||||
elif [ "$1" = "-l" ]; then
|
||||
echo $TEST_LIST $UTS_TEST_LIST $MNT_TEST_LIST $IPC_TEST_LIST $FILE_LOCK_TEST_LIST | tr ' ' '\n'
|
||||
echo $TEST_LIST $UTS_TEST_LIST $MNT_TEST_LIST $IPC_TEST_LIST | tr ' ' '\n'
|
||||
elif [ "$1" = "-h" ]; then
|
||||
cat >&2 <<EOF
|
||||
This script is used for executing unit tests.
|
||||
|
Reference in New Issue
Block a user