[PATCH 2/7] erofs-utils: tests: fix on out-of-tree build

Hu Weiwen sehuww at mail.scut.edu.cn
Fri Jan 22 03:37:10 AEDT 2021


e.g.: mkdir debug && cd debug && ../configure && make check

Signed-off-by: Hu Weiwen <sehuww at mail.scut.edu.cn>
---
 .gitignore      | 1 +
 tests/erofs/001 | 2 +-
 tests/erofs/002 | 2 +-
 tests/erofs/003 | 2 +-
 tests/erofs/004 | 2 +-
 tests/erofs/005 | 2 +-
 tests/erofs/006 | 2 +-
 tests/erofs/007 | 2 +-
 tests/erofs/008 | 2 +-
 tests/erofs/009 | 2 +-
 tests/erofs/010 | 2 +-
 tests/erofs/011 | 2 +-
 tests/erofs/012 | 2 +-
 tests/erofs/013 | 2 +-
 tests/erofs/014 | 2 +-
 15 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/.gitignore b/.gitignore
index 8bdd505..e4349dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,4 @@ libtool
 stamp-h
 stamp-h1
 
+*/tests/results/
diff --git a/tests/erofs/001 b/tests/erofs/001
index e4adfd4..2107e81 100755
--- a/tests/erofs/001
+++ b/tests/erofs/001
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/002 b/tests/erofs/002
index 4f0d13a..88a5cbf 100755
--- a/tests/erofs/002
+++ b/tests/erofs/002
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/003 b/tests/erofs/003
index b283801..43c1e07 100755
--- a/tests/erofs/003
+++ b/tests/erofs/003
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/004 b/tests/erofs/004
index 6827f70..4a8284b 100755
--- a/tests/erofs/004
+++ b/tests/erofs/004
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/005 b/tests/erofs/005
index 64c6d40..dd0487b 100755
--- a/tests/erofs/005
+++ b/tests/erofs/005
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/006 b/tests/erofs/006
index 6a0222f..ebe1f8b 100755
--- a/tests/erofs/006
+++ b/tests/erofs/006
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/007 b/tests/erofs/007
index 7f69617..80628cb 100755
--- a/tests/erofs/007
+++ b/tests/erofs/007
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/008 b/tests/erofs/008
index 48b91b6..80a6d2e 100755
--- a/tests/erofs/008
+++ b/tests/erofs/008
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/009 b/tests/erofs/009
index b95787e..14e6639 100755
--- a/tests/erofs/009
+++ b/tests/erofs/009
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/010 b/tests/erofs/010
index 5b87e5b..c31e387 100755
--- a/tests/erofs/010
+++ b/tests/erofs/010
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/011 b/tests/erofs/011
index 16d485c..3922ae6 100755
--- a/tests/erofs/011
+++ b/tests/erofs/011
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/012 b/tests/erofs/012
index ab5d345..46dcc3a 100755
--- a/tests/erofs/012
+++ b/tests/erofs/012
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/013 b/tests/erofs/013
index 1bc3448..0beac2e 100755
--- a/tests/erofs/013
+++ b/tests/erofs/013
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
diff --git a/tests/erofs/014 b/tests/erofs/014
index aa6b604..b94b48f 100755
--- a/tests/erofs/014
+++ b/tests/erofs/014
@@ -4,7 +4,7 @@ seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 
 # get standard environment, filters and checks
-. common/rc
+. "${srcdir}/common/rc"
 
 cleanup()
 {
-- 
2.30.0



More information about the Linux-erofs mailing list