1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-19 13:22:14 +03:00

Show errors on CI

This commit is contained in:
Alberto Fanjul 2018-05-26 11:55:35 +02:00
parent 0ce2bee87b
commit 47dddefc36
6 changed files with 10 additions and 6 deletions

View File

@ -3,6 +3,9 @@ language: c
compiler: compiler:
- gcc - gcc
env:
- verbose=t
before_install: before_install:
script: cd t && make script: cd t && make
@ -11,6 +14,7 @@ script:
- ./autogen.sh - ./autogen.sh
- cd t - cd t
- make check - make check
- cat test-suite.log
notifications: notifications:
email: email:

View File

@ -10,7 +10,7 @@ test_expect_success "Whitespace parse" "
$COMMAND cfg_parser $DIR_TEST/whitespace.ini $COMMAND cfg_parser $DIR_TEST/whitespace.ini
export COVERAGE_NAME=whitespace_writer export COVERAGE_NAME=whitespace_writer
$COMMAND cfg_writer > whitespace.out $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 test_done

View File

@ -10,7 +10,7 @@ test_expect_success "Parse sections" "
$COMMAND cfg_parser $DIR_TEST/sections.ini $COMMAND cfg_parser $DIR_TEST/sections.ini
export COVERAGE_NAME=sections_writer export COVERAGE_NAME=sections_writer
$COMMAND cfg_writer > sections.out $COMMAND cfg_writer > sections.out
diff $DIR_TEST/sections.out.correct sections.out test_cmp $DIR_TEST/sections.out.correct sections.out
" "
test_done test_done

View File

@ -11,7 +11,7 @@ test_expect_success "Parse comments" "
cp ../.simplecov . cp ../.simplecov .
cfg_parser $DIR_TEST/comments.ini cfg_parser $DIR_TEST/comments.ini
cfg_writer > comments.out cfg_writer > comments.out
diff $DIR_TEST/comments.out.correct comments.out test_cmp $DIR_TEST/comments.out.correct comments.out
" "
test_done test_done

View File

@ -14,7 +14,7 @@ test_expect_success "Parse new var" "
var2=bar var2=bar
cfg_update sec1 var2 cfg_update sec1 var2
cfg_writer > var.out cfg_writer > var.out
diff $DIR_TEST/var.out.correct var.out test_cmp $DIR_TEST/var.out.correct var.out
" "
test_done test_done

View File

@ -6,7 +6,7 @@ test_description="check duplication"
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0006 DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0006
test_expect_failure "Remove duplication" " test_expect_success "Remove duplication" "
export COVERAGE_NAME=duplication_parser export COVERAGE_NAME=duplication_parser
cp ../.simplecov . cp ../.simplecov .
cfg_parser $DIR_TEST/duplication.ini cfg_parser $DIR_TEST/duplication.ini
@ -17,7 +17,7 @@ test_expect_failure "Remove duplication" "
cfg_update sec1 var1 cfg_update sec1 var1
export COVERAGE_NAME=duplication_writer export COVERAGE_NAME=duplication_writer
cfg_writer > duplication.out cfg_writer > duplication.out
diff $DIR_TEST/duplication.out.correct duplication.out test_cmp $DIR_TEST/duplication.out.correct duplication.out
" "
test_done test_done