[Git][reproducible-builds/disorderfs][debian] 10 commits: Include and use a run-parts.sh for tests

Holger Levsen gitlab at salsa.debian.org
Thu Jan 17 19:07:28 CET 2019


Holger Levsen pushed to branch debian at Reproducible Builds / disorderfs


Commits:
1e163acb by Bernhard M. Wiedemann at 2018-10-25T09:03:53Z
Include and use a run-parts.sh for tests

to allow to run tests on non-Debian systems
Note: defaults to --exit-on-error to give failed tests more prominence
and to ensure a non-zero exit-code in case of test failures

- - - - -
863487ee by Bernhard M. Wiedemann at 2018-10-25T10:46:56Z
tests/common: Use -q for fusermount and disorderfs

so that we get to see more interesting error messages

- - - - -
6c21d49e by Bernhard M. Wiedemann at 2018-10-25T10:49:35Z
tests/common: Use lazy unmount

to avoid random test failures in 50% of "make test" runs

- - - - -
cde568ce by Bernhard M. Wiedemann at 2018-10-29T02:15:10Z
Rename test files to test_ in order to make them easier to iterate over.

Signed-off-by: Chris Lamb <lamby at debian.org>

- - - - -
f587ed1f by Bernhard M. Wiedemann at 2018-10-29T02:15:13Z
Move test execution logic into Makefile to not require a separate script. (MR: !2)

Signed-off-by: Chris Lamb <lamby at debian.org>

- - - - -
0232051a by Chris Lamb at 2018-10-29T02:15:27Z
Tidy Makefiles.

Gbp-Dch: ignore

- - - - -
0aeeac8f by Holger Levsen at 2019-01-17T17:43:05Z
add changelog entry for last commit

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
1986a657 by Holger Levsen at 2019-01-17T17:49:45Z
release 0.5.6

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
3f7e1998 by Holger Levsen at 2019-01-17T17:55:44Z
Merge tag '0.5.6' into debian

released as 0.5.6

- - - - -
506779d4 by Holger Levsen at 2019-01-17T17:56:17Z
release as 0.5.6-1

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


9 changed files:

- Makefile
- debian/changelog
- disorderfs.cpp
- + tests/Makefile
- tests/common
- tests/inodes → tests/test_inodes
- tests/shuffle → tests/test_shuffle
- tests/sort → tests/test_sort
- tests/touch → tests/test_touch


Changes:

=====================================
Makefile
=====================================
@@ -94,11 +94,8 @@ install-man: build-man
 	install -d $(DESTDIR)$(MANDIR)/man1
 	install -m 644 disorderfs.1 $(DESTDIR)$(MANDIR)/man1/
 
-#
-# Test
-#
 test: build
-	cd tests && run-parts --verbose .
+	$(MAKE) -C tests
 
 .PHONY: all \
 	build build-bin build-man \


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+disorderfs (0.5.6-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump Standards-Version to 4.3.0.
+
+ -- Holger Levsen <holger at debian.org>  Thu, 17 Jan 2019 18:56:01 +0100
+
 disorderfs (0.5.5-1) unstable; urgency=medium
 
   [ Chris Lamb ]


=====================================
disorderfs.cpp
=====================================
@@ -43,7 +43,7 @@ extern "C" {
 #include <sys/file.h>
 #include <stddef.h>
 
-#define DISORDERFS_VERSION "0.5.5"
+#define DISORDERFS_VERSION "0.5.6"
 
 namespace {
 	std::vector<std::string>	bare_arguments;


=====================================
tests/Makefile
=====================================
@@ -0,0 +1,9 @@
+TESTS := $(sort $(wildcard test_*))
+
+test: ../disorderfs
+	set -eu; for X in $(TESTS); do \
+		echo "executing $$X" >&2; \
+		./$$X; \
+	done
+
+.PHONY: test


=====================================
tests/common
=====================================
@@ -3,11 +3,11 @@ trap "Unmount 2>/dev/null" EXIT
 Mount () {
 	Unmount
 	mkdir -p target
-	../disorderfs "${@}" fixtures/ target/ >/dev/null
+	../disorderfs -q "${@}" fixtures/ target/
 }
 
 Unmount () {
-	fusermount -u target/ 2>/dev/null && rm -rf target/
+	fusermount -q -z -u target/ && rm -rf target/
 }
 
 Get_entries () {


=====================================
tests/inodes → tests/test_inodes
=====================================


=====================================
tests/shuffle → tests/test_shuffle
=====================================


=====================================
tests/sort → tests/test_sort
=====================================


=====================================
tests/touch → tests/test_touch
=====================================



View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/compare/a12fdeb65093b75f4a7cf54de315f20facf79ffd...506779d466ae7ed6cdf9ea3c731ee52292efcd97

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/compare/a12fdeb65093b75f4a7cf54de315f20facf79ffd...506779d466ae7ed6cdf9ea3c731ee52292efcd97
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190117/e1917e67/attachment.html>


More information about the rb-commits mailing list