2010-12-11 02:17:51 -08:00
|
|
|
rm -f stampy usestamp stampy.log usestamp.log
|
|
|
|
|
echo one >inp
|
|
|
|
|
|
|
|
|
|
../flush-cache.sh
|
|
|
|
|
redo stampy
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 1 ] || exit 11
|
|
|
|
|
|
|
|
|
|
redo-ifchange usestamp
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 1 ] || exit 21
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 12
|
|
|
|
|
|
|
|
|
|
../flush-cache.sh
|
|
|
|
|
redo stampy
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 2 ] || exit 31
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 32
|
|
|
|
|
|
|
|
|
|
redo-ifchange usestamp
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 2 ] || exit 41
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 1 ] || exit 42
|
|
|
|
|
|
2010-12-11 03:29:38 -08:00
|
|
|
../flush-cache.sh
|
|
|
|
|
redo bob
|
|
|
|
|
redo-ifchange usestamp
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 3 ] || exit 43
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 2 ] || exit 44
|
|
|
|
|
|
|
|
|
|
../flush-cache.sh
|
|
|
|
|
redo-ifchange usestamp
|
|
|
|
|
[ "$(wc -l <stampy.log)" -eq 3 ] || exit 45
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 2 ] || exit 46
|
|
|
|
|
|
2010-12-11 02:17:51 -08:00
|
|
|
../flush-cache.sh
|
|
|
|
|
echo two >inp
|
|
|
|
|
redo stampy
|
2010-12-11 03:29:38 -08:00
|
|
|
[ "$(wc -l <stampy.log)" -eq 4 ] || exit 51
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 2 ] || exit 52
|
2010-12-11 02:17:51 -08:00
|
|
|
|
|
|
|
|
redo-ifchange usestamp
|
2010-12-11 03:29:38 -08:00
|
|
|
[ "$(wc -l <stampy.log)" -eq 4 ] || exit 61
|
|
|
|
|
[ "$(wc -l <usestamp.log)" -eq 3 ] || exit 62
|