From 47dddefc36f54e938d2486c35e0135238442c966 Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Sat, 26 May 2018 11:55:35 +0200 Subject: [PATCH] Show errors on CI --- .travis.yml | 4 ++++ t/t0001-whitespace.sh | 2 +- t/t0003-sections.sh | 2 +- t/t0004-comments.sh | 2 +- t/t0005-new_var.sh | 2 +- t/t0006-duplication.sh | 4 ++-- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5277c1..336feee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ language: c compiler: - gcc +env: + - verbose=t + before_install: script: cd t && make @@ -11,6 +14,7 @@ script: - ./autogen.sh - cd t - make check + - cat test-suite.log notifications: email: diff --git a/t/t0001-whitespace.sh b/t/t0001-whitespace.sh index 84cbea7..b4d8aa8 100755 --- a/t/t0001-whitespace.sh +++ b/t/t0001-whitespace.sh @@ -10,7 +10,7 @@ test_expect_success "Whitespace parse" " $COMMAND cfg_parser $DIR_TEST/whitespace.ini export COVERAGE_NAME=whitespace_writer $COMMAND cfg_writer > whitespace.out - diff -u whitespace.out $DIR_TEST/whitespace.out.correct + test_cmp whitespace.out $DIR_TEST/whitespace.out.correct " test_done diff --git a/t/t0003-sections.sh b/t/t0003-sections.sh index 31f0175..9dcb2e7 100755 --- a/t/t0003-sections.sh +++ b/t/t0003-sections.sh @@ -10,7 +10,7 @@ test_expect_success "Parse sections" " $COMMAND cfg_parser $DIR_TEST/sections.ini export COVERAGE_NAME=sections_writer $COMMAND cfg_writer > sections.out - diff $DIR_TEST/sections.out.correct sections.out + test_cmp $DIR_TEST/sections.out.correct sections.out " test_done diff --git a/t/t0004-comments.sh b/t/t0004-comments.sh index a353736..d0ff0ae 100755 --- a/t/t0004-comments.sh +++ b/t/t0004-comments.sh @@ -11,7 +11,7 @@ test_expect_success "Parse comments" " cp ../.simplecov . cfg_parser $DIR_TEST/comments.ini cfg_writer > comments.out - diff $DIR_TEST/comments.out.correct comments.out + test_cmp $DIR_TEST/comments.out.correct comments.out " test_done diff --git a/t/t0005-new_var.sh b/t/t0005-new_var.sh index 6ca0838..169bc48 100755 --- a/t/t0005-new_var.sh +++ b/t/t0005-new_var.sh @@ -14,7 +14,7 @@ test_expect_success "Parse new var" " var2=bar cfg_update sec1 var2 cfg_writer > var.out - diff $DIR_TEST/var.out.correct var.out + test_cmp $DIR_TEST/var.out.correct var.out " test_done diff --git a/t/t0006-duplication.sh b/t/t0006-duplication.sh index b036500..87a2943 100755 --- a/t/t0006-duplication.sh +++ b/t/t0006-duplication.sh @@ -6,7 +6,7 @@ test_description="check duplication" DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0006 -test_expect_failure "Remove duplication" " +test_expect_success "Remove duplication" " export COVERAGE_NAME=duplication_parser cp ../.simplecov . cfg_parser $DIR_TEST/duplication.ini @@ -17,7 +17,7 @@ test_expect_failure "Remove duplication" " cfg_update sec1 var1 export COVERAGE_NAME=duplication_writer cfg_writer > duplication.out - diff $DIR_TEST/duplication.out.correct duplication.out + test_cmp $DIR_TEST/duplication.out.correct duplication.out " test_done