[go: up one dir, main page]

Menu

[b0c624]: / tests / usecase-lt.at.in  Maximize  Restore  History

Download this file

83 lines (71 with data), 5.0 kB

AT_BANNER([Long term resources use case checks])

AT_SETUP([Use case 16 (1/8)])
AT_DATA([expout],
[[ 1 locking for 2 seconds
 2 locking for 1 seconds
 1 ending
 2 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 2 "-e y -A 224.0.0.1 -a $(iface_ip_address.sh @NET_IFACE@ 4)" & flom_test_exec3.sh 2 1 1 "-e n -A 224.0.0.1 -a $(iface_ip_address.sh @NET_IFACE@ 4)" & flom_test_exec3.sh 3 2 0 "-e y -A 224.0.0.1 -a $(iface_ip_address.sh @NET_IFACE@ 4)" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (2/8)])
AT_DATA([expout],
[[ 1 locking for 1 seconds
 2 locking for 1 seconds
 2 ending
 1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 1 "-e n -r ABC[[1]] -A 224.0.0.1" & flom_test_exec3.sh 2 1 1 "-e y -r ABC[[1]] -A 224.0.0.1" & flom_test_exec3.sh 3 2 1 "-e y -r ABC[[1]] -A 224.0.0.1" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (3/8)])
AT_CHECK([flom_test_exec4.sh 1 0 1 "-e n -o 0 -r B.C.D -A 224.0.0.1" ; echo $? | grep '@_ES_REQUESTER_CANT_WAIT@\|@_ES_RESOURCE_BUSY@'], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (4/8)])
AT_CHECK([flom_test_exec3.sh 1 0 1 "-e n -o 100 -r /CDE -A 224.0.0.1"], [@_ES_RESOURCE_BUSY@], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (5/8)])
AT_CHECK([flom_test_exec3.sh 1 0 1 "-e n -r RES -l CR -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 2 1 1 "-e n -r RES -l CW -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 3 2 1 "-e n -r RES -l PR -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 4 3 1 "-e y -r RES -l PW -i 2000 -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 5 1 0 "-e n -r RES -l EX -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 6 1 0 "-e n -r RES -l CR -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 7 1 0 "-e n -r RES -l CW -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (6/8)])
AT_CHECK([flom_test_exec3.sh 1 0 1 "-e n -r N[[2]] -A 224.0.0.1" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 2 1 1 "-e n -r N[[2]] -A 224.0.0.1" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 3 2 1 "-e n -r N[[2]] -A 224.0.0.1" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 4 3 1 "-e y -r N[[2]] -i 2000 -A 224.0.0.1"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 5 1 0 "-e n -r N[[2]] -A 224.0.0.1"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 6 1 0 "-e n -r N[[2]] -A 224.0.0.1"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 7 1 0 "-e n -r N[[2]] -A 224.0.0.1"], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (7/8)])
AT_CHECK([flom_test_exec4.sh 1 0 1 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 2 1 1 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 3 2 1 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 4 3 1 "-e y -r B.C.D -i 2000 -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 5 1 0 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 6 1 0 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec4.sh 7 1 0 "-e n -r B.C.D -a $(iface_ip_address.sh @NET_IFACE@ 4)"], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 16 (8/8)])
AT_CHECK([flom_test_exec3.sh 1 0 1 "-e n -r /res -l CR" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 2 1 1 "-e n -r /res/res -l CW" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 3 2 1 "-e n -r /res/foo -l PR" &], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 4 3 1 "-e y -r /res/bar -l PW -i 2000"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 5 1 0 "-e n -r /res/res -l EX"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 6 1 0 "-e n -r /res/bar -l CR"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 7 1 0 "-e n -r /res/foo -l CW"], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 17 (1/2)])
AT_CHECK([flom_test_exec3.sh 1 0 0 "-e y -r /foo -i 2000"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 2 0 0 "-e n -r /bar -o 100"], [@_ES_RESOURCE_BUSY@], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 3 0 0 "-e n -r /foo -o 500"], [0], [ignore], [ignore])
AT_CLEANUP

AT_SETUP([Use case 17 (2/2)])
AT_CHECK([flom_test_exec3.sh 1 0 0 "-e y -r /bar -i 2000"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 2 0 0 "-e n -r /bar/foo -o 500"], [0], [ignore], [ignore])
AT_CHECK([flom_test_exec3.sh 3 1 0 "-e n -r /bar/foo/goofy -o 500"], [0], [ignore], [ignore])
AT_CLEANUP