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 redo-ifchange a/b/c/file
18 stat2=`stat a/b/c/file`
20 test_expect_success "file stays same" '[ "$stat1" = "$stat2" ]'
23 redo-ifchange a/b/c/file
24 stat3=`stat a/b/c/file`
26 test_expect_success "ifcreate target works" '[ "$stat1" != "$stat3" ]'