]> Cypherpunks.ru repositories - goredo.git/blob - t/goredo-empty-dep.t
Download link for 2.6.2 release
[goredo.git] / t / goredo-empty-dep.t
1 #!/bin/sh
2
3 testname=`basename "$0"`
4 test_description="Check that empty target is a dependency and always OOD"
5 . $SHARNESS_TEST_SRCDIR/sharness.sh
6 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
7
8 echo > foo.do
9 cat > bar.do <<EOF
10 redo-ifchange foo
11 echo bar
12 EOF
13 redo-ifchange bar
14 stat1=`stat bar`
15 sleep 1 # stat does not output fractions of seconds
16 redo-ifchange bar
17 stat2=`stat bar`
18
19 test_expect_success "bar rebuilds" '[ "$stat1" != "$stat2" ]'
20
21 test_done