This comes down to the lack of a 'seq' command (what?!) and the fact that BSD "wc -l" returns extra whitespace, while the GNU version doesn't. We should be using numeric comparisons instead of string comparisons, and then it's ok.
16 lines
318 B
Text
16 lines
318 B
Text
rm -f log dir1/log dir1/stinky
|
|
touch t1.do
|
|
../../flush-cache.sh
|
|
redo t1
|
|
touch t1.do
|
|
../../flush-cache.sh
|
|
redo t1
|
|
../../flush-cache.sh
|
|
redo-ifchange t1
|
|
C1="$(wc -l <dir1/log)"
|
|
C2="$(wc -l <log)"
|
|
. ../../skip-if-minimal-do.sh
|
|
if [ "$C1" -ne 1 -o "$C2" -ne 2 ]; then
|
|
echo "failed: t1>t1, c1=$C1, c2=$C2" >&2
|
|
exit 55
|
|
fi
|