]> Cypherpunks.ru repositories - goredo.git/blobdiff - t/goredo-deps.t
Download link for 2.6.2 release
[goredo.git] / t / goredo-deps.t
index a0a58d50343a084e3cd7d14255de31ebb1857d15..34ba5044b924c0e598a191ed43d6f43b00ab608b 100755 (executable)
@@ -3,10 +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
@@ -27,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.dep | 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