From ee79f83b85c88210bc7c7437710474f1dbedeb4e Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sun, 29 Dec 2019 11:41:04 +0100 Subject: [PATCH] stop in case of unexpected test result. Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- function_test/BER_EncDec/.gitignore | 3 ++- function_test/BER_EncDec/Makefile | 6 ++++-- function_test/RAW_EncDec/.gitignore | 3 ++- function_test/RAW_EncDec/Makefile | 6 ++++-- function_test/Text_EncDec/.gitignore | 1 + function_test/Text_EncDec/Makefile | 8 +++++--- function_test/XER_EncDec/.gitignore | 3 ++- function_test/XER_EncDec/Makefile | 6 ++++-- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/function_test/BER_EncDec/.gitignore b/function_test/BER_EncDec/.gitignore index 407c8152c..4e23998bc 100644 --- a/function_test/BER_EncDec/.gitignore +++ b/function_test/BER_EncDec/.gitignore @@ -3,4 +3,5 @@ compile *.cc *.o *.gcda -*.gcno \ No newline at end of file +*.gcno +result.txt \ No newline at end of file diff --git a/function_test/BER_EncDec/Makefile b/function_test/BER_EncDec/Makefile index 8e31468d6..252069089 100644 --- a/function_test/BER_EncDec/Makefile +++ b/function_test/BER_EncDec/Makefile @@ -154,11 +154,13 @@ compile: $(TTCN3_MODULES) $(ASN1_MODULES) touch $@ run: $(TARGET) BER_EncDec.cfg - ./$^ + ./$^ 2> result.txt + cat result.txt + grep "Overall verdict: pass" result.txt clean: -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ - $(GENERATED_SOURCES) compile *.log *.gcda *.gcno + $(GENERATED_SOURCES) compile *.log *.gcda *.gcno result.txt dep: $(GENERATED_SOURCES) makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) diff --git a/function_test/RAW_EncDec/.gitignore b/function_test/RAW_EncDec/.gitignore index 00c64855f..989c04b42 100644 --- a/function_test/RAW_EncDec/.gitignore +++ b/function_test/RAW_EncDec/.gitignore @@ -3,4 +3,5 @@ compile *.hh *.cc *.gcda -*.gcno \ No newline at end of file +*.gcno +result.txt \ No newline at end of file diff --git a/function_test/RAW_EncDec/Makefile b/function_test/RAW_EncDec/Makefile index dfbe90639..207e29c1e 100644 --- a/function_test/RAW_EncDec/Makefile +++ b/function_test/RAW_EncDec/Makefile @@ -148,11 +148,13 @@ compile: $(TTCN3_MODULES) $(ASN1_MODULES) touch $@ run: $(TARGET) RAW_EncDec.cfg - ./$^ + ./$^ 2> result.txt + cat result.txt + grep "Overall verdict: pass" result.txt clean: -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ - $(GENERATED_SOURCES) compile *.log *.gcda *.gcno + $(GENERATED_SOURCES) compile *.log *.gcda *.gcno result.txt dep: $(GENERATED_SOURCES) makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) diff --git a/function_test/Text_EncDec/.gitignore b/function_test/Text_EncDec/.gitignore index 64c8334bc..758bd7b59 100644 --- a/function_test/Text_EncDec/.gitignore +++ b/function_test/Text_EncDec/.gitignore @@ -4,3 +4,4 @@ compile *.gcda *.gcno +result.txt diff --git a/function_test/Text_EncDec/Makefile b/function_test/Text_EncDec/Makefile index 32e21cfaf..1df015092 100644 --- a/function_test/Text_EncDec/Makefile +++ b/function_test/Text_EncDec/Makefile @@ -144,12 +144,14 @@ compile: $(TTCN3_MODULES) $(ASN1_MODULES) $(ASN1_MODULES) - $? touch $@ -run: $(TARGET) Text_EncDec.cfg - ./$^ +run: $(TARGET) BER_EncDec.cfg + ./$^ 2> result.txt + cat result.txt + grep "Overall verdict: pass" result.txt clean: -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ - $(GENERATED_SOURCES) compile *.log *.gcda *.gcno + $(GENERATED_SOURCES) compile *.log *.gcda *.gcno result.txt dep: $(GENERATED_SOURCES) makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) diff --git a/function_test/XER_EncDec/.gitignore b/function_test/XER_EncDec/.gitignore index 407c8152c..4e23998bc 100644 --- a/function_test/XER_EncDec/.gitignore +++ b/function_test/XER_EncDec/.gitignore @@ -3,4 +3,5 @@ compile *.cc *.o *.gcda -*.gcno \ No newline at end of file +*.gcno +result.txt \ No newline at end of file diff --git a/function_test/XER_EncDec/Makefile b/function_test/XER_EncDec/Makefile index aebe0b872..1bb4c1152 100644 --- a/function_test/XER_EncDec/Makefile +++ b/function_test/XER_EncDec/Makefile @@ -144,11 +144,13 @@ compile: $(TTCN3_MODULES) $(ASN1_MODULES) touch $@ run: $(TARGET) XER_EncDec.cfg - ./$^ + ./$^ 2> result.txt + cat result.txt + grep "Overall verdict: pass" result.txt clean: -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ - $(GENERATED_SOURCES) compile *.log *.gcda *.gcno + $(GENERATED_SOURCES) compile *.log *.gcda *.gcno result.txt dep: $(GENERATED_SOURCES) makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) -- GitLab