AT_BANNER([Hierarchical resources use case checks])
AT_SETUP([Use case 14 (1/6)])
AT_DATA([expout],
[[ 1 locking for 5 seconds
2 locking for 3 seconds
3 locking for 1 seconds
3 ending
2 ending
1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 5 "-r /apple" & flom_test_exec3.sh 2 1 3 "-r /pear" & flom_test_exec3.sh 3 2 1 "-r /banana" & flom_test_exec3.sh 4 1 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 14 (2/6)])
AT_DATA([expout],
[[ 1 locking for 3 seconds
2 locking for 1 seconds
3 locking for 1 seconds
1 ending
2 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 3 "-r /apple" & flom_test_exec3.sh 2 1 1 "-r /apple/pear" & flom_test_exec3.sh 3 2 1 "-r /apple/pear/banana" & flom_test_exec3.sh 4 3 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 14 (3/6)])
AT_DATA([expout],
[[ 1 locking for 3 seconds
2 locking for 1 seconds
3 locking for 1 seconds
1 ending
2 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 3 "-r /apple/pear/banana" & flom_test_exec3.sh 2 1 1 "-r /apple/pear" & flom_test_exec3.sh 3 2 1 "-r /apple" & flom_test_exec3.sh 4 3 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 14 (4/6)])
AT_DATA([expout],
[[ 1 locking for 5 seconds
2 locking for 3 seconds
3 locking for 1 seconds
3 ending
2 ending
1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 5 "-l CR -r /apple" & flom_test_exec3.sh 2 1 3 "-l PW -r /apple/pear/banana" & flom_test_exec3.sh 3 2 1 "-l CR -r /apple/pear" & flom_test_exec3.sh 4 3 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 14 (5/6)])
AT_DATA([expout],
[[ 1 locking for 5 seconds
2 locking for 3 seconds
3 locking for 1 seconds
3 ending
2 ending
1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 5 "-l CR -r /apple/pear/banana" & flom_test_exec3.sh 2 1 3 "-l CR -r /apple/pear" & flom_test_exec3.sh 3 2 1 "-l PR -r /apple" & flom_test_exec3.sh 4 3 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 14 (6/6)])
AT_DATA([expout],
[[ 1 locking for 4 seconds
2 locking for 2 seconds
3 locking for 2 seconds
2 ending
1 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 4 "-r /apple/pear/banana" & flom_test_exec3.sh 2 1 2 "-r /apple/watermelon" & flom_test_exec3.sh 3 2 2 "-r /apple/watermelon/bilberry" & flom_test_exec3.sh 4 4 0 "-r /apple" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (1/8)])
AT_DATA([expout],
[[ 1 locking for 2 seconds
2 locking for 2 seconds
1 ending
2 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 2 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 2 "-r /foo/blue/apple -l EX" & flom_test_exec3.sh 3 2 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (2/8)])
AT_DATA([expout],
[[ 1 locking for 2 seconds
2 locking for 2 seconds
1 ending
2 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 2 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 2 "-r /foo/bar/apple -l EX" & flom_test_exec3.sh 3 2 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (3/8)])
AT_DATA([expout],
[[ 2 locking for 2 seconds
1 locking for 2 seconds
2 ending
1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 1 2 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 0 2 "-r /foo/bar/apple -l EX" & flom_test_exec3.sh 3 2 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (4/8)])
AT_DATA([expout],
[[ 1 locking for 2 seconds
2 locking for 2 seconds
1 ending
2 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 2 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 2 "-r /foo/bar/fruit/apple -l EX" & flom_test_exec3.sh 3 2 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (5/8)])
AT_DATA([expout],
[[ 2 locking for 2 seconds
1 locking for 2 seconds
2 ending
1 ending
]])
AT_CHECK([flom_test_exec3.sh 1 1 2 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 0 2 "-r /foo/bar/fruit/apple -l EX" & flom_test_exec3.sh 3 2 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (6/8)])
AT_DATA([expout],
[[ 1 locking for 3 seconds
2 locking for 3 seconds
3 locking for 3 seconds
1 ending
2 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 3 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 3 "-r /foo/bar/fruit -l PR" & flom_test_exec3.sh 3 2 3 "-r /foo -l PR" & flom_test_exec3.sh 4 3 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (7/8)])
AT_DATA([expout],
[[ 1 locking for 3 seconds
2 locking for 3 seconds
3 locking for 3 seconds
1 ending
2 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 3 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 3 "-r /foo/blue/apple -l EX" & flom_test_exec3.sh 3 2 3 "-r /foo -l PR" & flom_test_exec3.sh 4 3 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP
AT_SETUP([Use case 15 (8/8)])
AT_DATA([expout],
[[ 1 locking for 3 seconds
2 locking for 3 seconds
3 locking for 3 seconds
1 ending
2 ending
3 ending
]])
AT_CHECK([flom_test_exec3.sh 1 0 3 "-r /foo/bar -l PR" & flom_test_exec3.sh 2 1 3 "-r /foo -l PR" & flom_test_exec3.sh 3 2 3 "-r /foo/blue/apple -l EX" & flom_test_exec3.sh 4 3 0 "-r /foo" >/dev/null], [0], [expout], [ignore])
AT_CLEANUP