[Git][reproducible-builds/disorderfs][master] 3 commits: Rename test files to test_ in order to make them easier to iterate over.
Chris Lamb
gitlab at salsa.debian.org
Mon Oct 29 03:15:38 CET 2018
Chris Lamb pushed to branch master at Reproducible Builds / disorderfs
Commits:
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
- - - - -
7 changed files:
- Makefile
- − run-parts.sh
- + tests/Makefile
- 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.sh --verbose .
+ $(MAKE) -C tests
.PHONY: all \
build build-bin build-man \
=====================================
run-parts.sh deleted
=====================================
@@ -1,9 +0,0 @@
-#!/bin/sh -e
-verbose=0
-[ "$1" = --verbose ] && verbose=1 && shift
-
-dir=$1
-for prog in `find $dir -type f -perm -1 | LC_ALL=C sort` ; do
- [ "$verbose" = 0 ] || echo "run-parts: executing $prog" >&2
- $prog
-done
=====================================
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/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/6c21d49e200dd47894909807393ff11c4512d5f8...0232051a451cd0b5269c6169dc4ee9cd06ae44fa
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/compare/6c21d49e200dd47894909807393ff11c4512d5f8...0232051a451cd0b5269c6169dc4ee9cd06ae44fa
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/20181029/5924a3c6/attachment.html>
More information about the rb-commits
mailing list