]> Cypherpunks.ru repositories - goredo.git/blobdiff - t/goredo-deps.t
Download link for 2.6.2 release
[goredo.git] / t / goredo-deps.t
index 5ab869c013b853d33c98a337bfbe548703f35275..34ba5044b924c0e598a191ed43d6f43b00ab608b 100755 (executable)
@@ -3,11 +3,8 @@
 testname=`basename "$0"`
 test_description="Check that the following use-case won't rebuild everytime and has correct dependencies"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
-tmp=`mktemp -d`
-trap "rm -fr $tmp" HUP PIPE INT QUIT TERM EXIT
-
-cd $tmp
 mkdir -p sub
 cat > default.html.do <<EOF
 redo-ifchange \$2.pre
@@ -28,7 +25,7 @@ test_expect_success Rebuild "redo-ifchange sub/index.html"
 stat2=`stat sub/index.html`
 test_expect_success "Was not rebuild" '[ "$stat1" = "$stat2" ]'
 
-tgts=`sed -n "s/^Target: //p" sub/.redo/index.html.rec | sort`
+tgts=`redo-dep2rec sub/.redo/index.html.dep | sed -n "s/^Target: //p" | sort`
 tgts=`echo $tgts`
 tgts_expected="../default.html.do" # .do itself
 tgts_expected="$tgts_expected default.do" # ifcreate