Blame SOURCES/0013-Make-it-possible-to-run-test.sh-verbose-from-the-mak.patch

cca0c4
From 92adaf4e655c3e6833e6f3b96fe1f5b75f75fd64 Mon Sep 17 00:00:00 2001
cca0c4
From: Peter Jones <pjones@redhat.com>
cca0c4
Date: Thu, 6 Aug 2015 10:06:13 -0400
cca0c4
Subject: [PATCH 13/55] Make it possible to run "test.sh --verbose" from the
cca0c4
 make command line.
cca0c4
cca0c4
Signed-off-by: Peter Jones <pjones@redhat.com>
cca0c4
---
cca0c4
 Makefile | 6 +++++-
cca0c4
 1 file changed, 5 insertions(+), 1 deletion(-)
cca0c4
cca0c4
diff --git a/Makefile b/Makefile
cca0c4
index ade4421aa25..cc7e823959f 100644
cca0c4
--- a/Makefile
cca0c4
+++ b/Makefile
cca0c4
@@ -26,6 +26,10 @@ CC = gcc
cca0c4
 RPM_OPT_FLAGS ?= -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
cca0c4
 CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb
cca0c4
 LDFLAGS := 
cca0c4
+VERBOSE_TEST :=
cca0c4
+ifneq ($(VERBOSE_TEST),)
cca0c4
+	VERBOSE_TEST="--verbose"
cca0c4
+endif
cca0c4
 
cca0c4
 grubby_LIBS = -lblkid -lpopt
cca0c4
 
cca0c4
@@ -39,7 +43,7 @@ debug : clean
cca0c4
 
cca0c4
 test: all
cca0c4
 	@export TOPDIR=$(TOPDIR)
cca0c4
-	@./test.sh
cca0c4
+	@./test.sh $(VERBOSE_TEST)
cca0c4
 
cca0c4
 install: all
cca0c4
 	mkdir -p $(DESTDIR)$(PREFIX)/sbin
cca0c4
-- 
cca0c4
2.17.1
cca0c4