[beast: 2/10] TESTS: filecheck: throw an error if the file checklist is empty
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/10] TESTS: filecheck: throw an error if the file checklist is empty
- Date: Sun, 18 Jun 2017 01:06:10 +0000 (UTC)
commit 5c15c09fc987ca4429c02cb047bcf54f2e45ebc7
Author: Tim Janik <timj gnu org>
Date: Sun Jun 18 00:05:26 2017 +0200
TESTS: filecheck: throw an error if the file checklist is empty
Signed-off-by: Tim Janik <timj gnu org>
tests/filecheck/Makefile.am | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/filecheck/Makefile.am b/tests/filecheck/Makefile.am
index 9bda389..1100b8e 100644
--- a/tests/filecheck/Makefile.am
+++ b/tests/filecheck/Makefile.am
@@ -37,7 +37,8 @@ checklist-%-test: checklists
&& echo " OK Loading: $$tfile" ; \
fi ; done ; rm -f $(@F).log $(@F:-test=)
checklists: distfiles.list # generate checklist-a .. checklist-e
- $(Q) grep '\.bse$$' distfiles.list > checklist
+ $(Q) grep '\.bse$$' distfiles.list > checklist || \
+ { echo '$@: error: distfiles.list is empty' >&2; exit 1; }
$(Q) split -n l/5 -a 1 checklist checklist-
$(Q) rm -f checklist
CLEANFILES += checklists checklist-? checklist-?-test checklist-?-test.log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]