|
Harald Hoyer |
08211a |
From 3e1d48fd1279b46a837ed3835f6e686ac9120c4d Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
08211a |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
08211a |
Date: Wed, 11 Jul 2012 09:33:32 +0200
|
|
Harald Hoyer |
08211a |
Subject: [PATCH] test: add support for: make V=1 TESTS="01 20 40" check
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
$ sudo make V=1 clean check
|
|
Harald Hoyer |
08211a |
now runs the testsuite in verbose mode
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
$ sudo make TESTS="01 20 40" clean check
|
|
Harald Hoyer |
08211a |
now only runs the 01, 20 and 40 tests.
|
|
Harald Hoyer |
08211a |
---
|
|
Harald Hoyer |
08211a |
test/Makefile | 5 +++--
|
|
Harald Hoyer |
08211a |
test/TEST-01-BASIC/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-02-SYSTEMD/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-03-USR-MOUNT/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-10-RAID/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-11-LVM/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-12-RAID-DEG/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-13-ENC-RAID-LVM/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-15-BTRFSRAID/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-16-DMSQUASH/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-20-NFS/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-30-ISCSI/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-40-NBD/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-50-MULTINIC/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/TEST-99-RPM/Makefile | 6 +++---
|
|
Harald Hoyer |
08211a |
test/test-functions | 13 +++++++++++++
|
|
Harald Hoyer |
08211a |
16 files changed, 58 insertions(+), 44 deletions(-)
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
diff --git a/test/Makefile b/test/Makefile
|
|
Harald Hoyer |
08211a |
index 38bfecc..f4881b5 100644
|
|
Harald Hoyer |
08211a |
--- a/test/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/Makefile
|
|
Harald Hoyer |
08211a |
@@ -4,14 +4,15 @@ check:
|
|
Harald Hoyer |
08211a |
@for i in TEST-[0-9]*; do \
|
|
Harald Hoyer |
08211a |
[ -d $$i ] || continue ; \
|
|
Harald Hoyer |
08211a |
[ -f $$i/Makefile ] || continue ; \
|
|
Harald Hoyer |
08211a |
- make -C $$i all ; \
|
|
Harald Hoyer |
08211a |
+ if [ -n "$$TESTS" ]; then t=$${i##TEST-}; t=$${t%-*}; [ "$${TESTS#*$$t*}" != "$$TESTS" ] || continue; fi; \
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -C $$i all ; \
|
|
Harald Hoyer |
08211a |
done
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@for i in TEST-[0-9]*; do \
|
|
Harald Hoyer |
08211a |
[ -d $$i ] || continue ; \
|
|
Harald Hoyer |
08211a |
[ -f $$i/Makefile ] || continue ; \
|
|
Harald Hoyer |
08211a |
- make -C $$i clean ; \
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -C $$i clean ; \
|
|
Harald Hoyer |
08211a |
done
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-01-BASIC/Makefile b/test/TEST-01-BASIC/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-01-BASIC/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-01-BASIC/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-02-SYSTEMD/Makefile b/test/TEST-02-SYSTEMD/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-02-SYSTEMD/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-02-SYSTEMD/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-03-USR-MOUNT/Makefile b/test/TEST-03-USR-MOUNT/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-03-USR-MOUNT/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-03-USR-MOUNT/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-10-RAID/Makefile b/test/TEST-10-RAID/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-10-RAID/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-10-RAID/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-11-LVM/Makefile b/test/TEST-11-LVM/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-11-LVM/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-11-LVM/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-12-RAID-DEG/Makefile b/test/TEST-12-RAID-DEG/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-12-RAID-DEG/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-12-RAID-DEG/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-13-ENC-RAID-LVM/Makefile b/test/TEST-13-ENC-RAID-LVM/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-13-ENC-RAID-LVM/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-13-ENC-RAID-LVM/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-15-BTRFSRAID/Makefile b/test/TEST-15-BTRFSRAID/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-15-BTRFSRAID/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-15-BTRFSRAID/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-16-DMSQUASH/Makefile b/test/TEST-16-DMSQUASH/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-16-DMSQUASH/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-16-DMSQUASH/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-20-NFS/Makefile b/test/TEST-20-NFS/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-20-NFS/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-20-NFS/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-30-ISCSI/Makefile b/test/TEST-30-ISCSI/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-30-ISCSI/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-30-ISCSI/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-40-NBD/Makefile b/test/TEST-40-NBD/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-40-NBD/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-40-NBD/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-50-MULTINIC/Makefile b/test/TEST-50-MULTINIC/Makefile
|
|
Harald Hoyer |
08211a |
index bc0ddb6..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-50-MULTINIC/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-50-MULTINIC/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/TEST-99-RPM/Makefile b/test/TEST-99-RPM/Makefile
|
|
Harald Hoyer |
08211a |
index 5513c52..3cc8993 100644
|
|
Harald Hoyer |
08211a |
--- a/test/TEST-99-RPM/Makefile
|
|
Harald Hoyer |
08211a |
+++ b/test/TEST-99-RPM/Makefile
|
|
Harald Hoyer |
08211a |
@@ -1,8 +1,8 @@
|
|
Harald Hoyer |
08211a |
all:
|
|
Harald Hoyer |
08211a |
- @make -s --no-print-directory -C ../.. clean all rpm
|
|
Harald Hoyer |
08211a |
- @basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
+ $(MAKE) -s --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
+ V=$(V) basedir=../.. testdir=../ ./test.sh --all
|
|
Harald Hoyer |
08211a |
setup:
|
|
Harald Hoyer |
08211a |
- @make --no-print-directory -C ../.. clean rpm
|
|
Harald Hoyer |
08211a |
+ @$(MAKE) --no-print-directory -C ../.. all
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --setup
|
|
Harald Hoyer |
08211a |
clean:
|
|
Harald Hoyer |
08211a |
@basedir=../.. testdir=../ ./test.sh --clean
|
|
Harald Hoyer |
08211a |
diff --git a/test/test-functions b/test/test-functions
|
|
Harald Hoyer |
08211a |
index 10d78ed..968551f 100644
|
|
Harald Hoyer |
08211a |
--- a/test/test-functions
|
|
Harald Hoyer |
08211a |
+++ b/test/test-functions
|
|
Harald Hoyer |
08211a |
@@ -37,6 +37,7 @@ while (($# > 0)); do
|
|
Harald Hoyer |
08211a |
echo "[SKIPPED]"
|
|
Harald Hoyer |
08211a |
exit 0;
|
|
Harald Hoyer |
08211a |
fi
|
|
Harald Hoyer |
08211a |
+ if [ "$V" != "1" ]; then
|
|
Harald Hoyer |
08211a |
(
|
|
Harald Hoyer |
08211a |
test_setup && test_run
|
|
Harald Hoyer |
08211a |
ret=$?
|
|
Harald Hoyer |
08211a |
@@ -45,7 +46,19 @@ while (($# > 0)); do
|
|
Harald Hoyer |
08211a |
rm -f .testdir
|
|
Harald Hoyer |
08211a |
exit $ret
|
|
Harald Hoyer |
08211a |
) </dev/null >test.log 2>&1
|
|
Harald Hoyer |
08211a |
+ else
|
|
Harald Hoyer |
08211a |
+ set -o pipefail
|
|
Harald Hoyer |
08211a |
+ (
|
|
Harald Hoyer |
08211a |
+ test_setup && test_run
|
|
Harald Hoyer |
08211a |
+ ret=$?
|
|
Harald Hoyer |
08211a |
+ test_cleanup
|
|
Harald Hoyer |
08211a |
+ rm -fr "$TESTDIR"
|
|
Harald Hoyer |
08211a |
+ rm -f .testdir
|
|
Harald Hoyer |
08211a |
+ exit $ret
|
|
Harald Hoyer |
08211a |
+ ) </dev/null 2>&1 | tee test.log
|
|
Harald Hoyer |
08211a |
+ fi
|
|
Harald Hoyer |
08211a |
ret=$?
|
|
Harald Hoyer |
08211a |
+ set +o pipefail
|
|
Harald Hoyer |
08211a |
if [ $ret -eq 0 ]; then
|
|
Harald Hoyer |
08211a |
rm test.log
|
|
Harald Hoyer |
08211a |
echo "[OK]"
|