2010-12-11 23:42:31 -08:00
|
|
|
rm -f exists ifcreate[12] ifcreate[12].log ifcreate[12].dep
|
|
|
|
|
. ./skip-if-minimal-do.sh
|
|
|
|
|
touch exists
|
|
|
|
|
redo-ifcreate exists 2>/dev/null && exit 91
|
|
|
|
|
rm exists
|
|
|
|
|
redo-ifcreate exists || exit 92
|
|
|
|
|
|
|
|
|
|
for d in 1 2; do
|
|
|
|
|
redo ifcreate$d
|
|
|
|
|
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}1
|
|
|
|
|
redo-ifchange ifcreate$d
|
|
|
|
|
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}2
|
2011-02-23 01:24:48 -08:00
|
|
|
./flush-cache
|
2010-12-11 23:42:31 -08:00
|
|
|
touch ifcreate$d.dep
|
|
|
|
|
redo-ifchange ifcreate$d
|
|
|
|
|
[ "$(wc -l <ifcreate$d.log)" -eq 2 ] || exit ${d}3
|
2011-02-23 01:24:48 -08:00
|
|
|
./flush-cache
|
2010-12-11 23:42:31 -08:00
|
|
|
rm ifcreate$d.dep
|
|
|
|
|
redo-ifchange ifcreate$d
|
|
|
|
|
[ "$(wc -l <ifcreate$d.log)" -eq 3 ] || exit ${d}4
|
|
|
|
|
done
|