]> Cypherpunks.ru repositories - goredo.git/commitdiff
Limit TOP_DIR searching in tests v1.14.0
authorSergey Matveev <stargrave@stargrave.org>
Wed, 15 Sep 2021 20:15:40 +0000 (23:15 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 15 Sep 2021 20:15:40 +0000 (23:15 +0300)
Just for assurance to limit the .do-search scope.

t/apenwarr/wrapper.rc
t/goredo-deps-after-cd.t
t/goredo-deps.t
t/goredo-empty-dep.t
t/goredo-failed-build.t
t/redo-sh.tests/wrapper.rc

index 724dc67d7f91f8941b06d254adb28479ba96417c..7c68fee1eb3c7496a782b68a507eaf9381dd0157 100755 (executable)
@@ -6,6 +6,7 @@ testname=${testname%.t}
 testdir=`dirname $0`/apenwarr/$testname
 cd $testdir
 testdir=`pwd`
+export REDO_TOP_DIR="$testdir" REDO_NO_PROGRESS=1
 test_description="none"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 cd $testdir
index bd25ae498c3222430f8d8f1448a5fba87596bec6..e0432e79dcb46a8a05ad71b03c2caa6aca9f4d35 100755 (executable)
@@ -3,6 +3,7 @@
 testname=`basename "$0"`
 test_description="Check that dependencies have correct relative path after cd"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
 mkdir -p bin src
 cat > bin/default.do <<EOF
index 9624059bd62a5e9669645a4363b690537717ea4d..31798541754cf8caf80c1be2cafd38b263b2e76b 100755 (executable)
@@ -3,6 +3,7 @@
 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
 
 mkdir -p sub
 cat > default.html.do <<EOF
index ee942fc0f115035ea53a76f4c706638b375d9598..7449bb364b0dad1f798259bc9399e6131de371cf 100755 (executable)
@@ -3,6 +3,7 @@
 testname=`basename "$0"`
 test_description="Check that empty target is a dependency and always OOD"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
 echo > foo.do
 cat > bar.do <<EOF
index b5fb53ccc238301bd4c758734c2236471f071190..f15c631c1c04d7d46b67c9d8b17fd95b96504e55 100755 (executable)
@@ -3,6 +3,7 @@
 testname=`basename "$0"`
 test_description="Check that failed build is still OOD target"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
+export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 
 echo exit 1 > bar.do
 echo redo-ifchange bar > foo.do
index 092d588d99ca9f6dccb84d3df83f5b915e8af62f..e25226dc157e0e730097fd23161820214348cdcb 100755 (executable)
@@ -6,6 +6,7 @@ testname=${testname%.t}
 testdir=`dirname $0`/redo-sh.tests/$testname
 cd $testdir
 testdir=`pwd`
+export REDO_TOP_DIR="$testdir" REDO_NO_PROGRESS=1
 test_description="`sed -n '2,/^$/p' test | sed 's/# //'`"
 . $SHARNESS_TEST_SRCDIR/sharness.sh
 cd $testdir