2012-02-08 22:47:34 -05:00
|
|
|
rm -f this-doesnt-exist
|
2015-08-27 06:57:27 -07:00
|
|
|
! redo this-doesnt-exist >/dev/null 2>&1 || exit 32 # expected to fail
|
|
|
|
|
! redo-ifchange this-doesnt-exist >/dev/null 2>&1 || exit 33 # expected to fail
|
|
|
|
|
redo-ifcreate this-doesnt-exist >/dev/null 2>&1 || exit 34 # expected to pass
|
2012-02-08 22:47:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-30 23:29:20 -04:00
|
|
|
rm -f fail
|
2015-08-27 06:57:27 -07:00
|
|
|
! redo-ifchange fail >/dev/null 2>&1 || exit 44 # expected to fail
|
2012-02-08 22:47:34 -05:00
|
|
|
|
2011-03-30 23:29:20 -04:00
|
|
|
touch fail
|
|
|
|
|
../flush-cache
|
2018-10-06 00:14:02 -04:00
|
|
|
# since we created this file by hand, fail.do won't run, so it won't fail.
|
2015-08-27 06:57:27 -07:00
|
|
|
redo-ifchange fail >/dev/null 2>&1 || exit 55 # expected to pass
|
2018-10-12 04:18:04 -04:00
|
|
|
|
|
|
|
|
# Make sure we don't leave this lying around for future runs, or redo
|
|
|
|
|
# might mark it as "manually modified" (since we did!)
|
|
|
|
|
rm -f fail
|