From e6a12ff73a2e3246b9e475d9772e88c79a6249f7 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 27 Aug 2015 10:41:19 +0200 Subject: allow explicit dis/enable of IndexTargets in sources options While Target{,-Add,-Remove} is available for configuring IndexTargets already, allow Targets to be mentioned explicitely as yes/no options as well, so that the Target 'Contents' can be disabled via 'Contents: no' as well as 'Target-Remove: Contents'. --- test/integration/framework | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/integration/framework') diff --git a/test/integration/framework b/test/integration/framework index c046507e4..03f1be114 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1196,9 +1196,16 @@ checkdiff() { } testfileequal() { + local MSG='Test for correctness of file' + if [ "$1" = '--nomsg' ]; then + MSG='' + shift + fi local FILE="$1" shift - msgtest "Test for correctness of file" "$FILE" + if [ -n "$MSG" ]; then + msgtest "$MSG" "$FILE" + fi if [ -z "$*" ]; then echo -n "" | checkdiff - $FILE && msgpass || msgfail else -- cgit v1.2.3