3 testname=`basename "$0"`
4 test_description="Proper relative to DirPrefix ifcreate paths"
5 . $SHARNESS_TEST_SRCDIR/sharness.sh
6 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
9 echo whatever > a/b/c/dep
10 cat > a/b/default.do <<EOF
12 redo-ifcreate ../c/dep
15 redo-ifchange a/b/c/file
16 stat1=`stat a/b/c/file`
17 sleep 1 # stat does not output fractions of seconds
18 redo-ifchange a/b/c/file
19 stat2=`stat a/b/c/file`
21 test_expect_success "file stays same" '[ "$stat1" = "$stat2" ]'
24 redo-ifchange a/b/c/file
25 stat3=`stat a/b/c/file`
27 test_expect_success "ifcreate target works" '[ "$stat1" != "$stat3" ]'