Fixed automated testing
This commit is contained in:
parent
a4de450bfa
commit
a434192373
3 changed files with 11 additions and 3 deletions
|
@ -88,7 +88,10 @@ test:debug:
|
||||||
- apk add make gcc
|
- apk add make gcc
|
||||||
- apk add lcov --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
|
- apk add lcov --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
|
||||||
script:
|
script:
|
||||||
|
- cd tests
|
||||||
|
- make
|
||||||
- make coverage
|
- make coverage
|
||||||
|
- cd ..
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage
|
- coverage
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -85,6 +85,7 @@ clean:
|
||||||
rm -f README advent.6 MANIFEST *.tar.gz
|
rm -f README advent.6 MANIFEST *.tar.gz
|
||||||
rm -f *~
|
rm -f *~
|
||||||
rm -f .*~
|
rm -f .*~
|
||||||
|
rm -rf coverage advent.info
|
||||||
cd tests; $(MAKE) --quiet clean
|
cd tests; $(MAKE) --quiet clean
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,6 +95,9 @@ cheat: $(CHEAT_OBJS) linenoise.o newdb.o
|
||||||
check: advent cheat
|
check: advent cheat
|
||||||
cd tests; $(MAKE) --quiet
|
cd tests; $(MAKE) --quiet
|
||||||
|
|
||||||
|
coverage: debug cheat
|
||||||
|
cd tests; $(MAKE) coverage --quiet
|
||||||
|
|
||||||
.SUFFIXES: .adoc .html .6
|
.SUFFIXES: .adoc .html .6
|
||||||
|
|
||||||
# Requires asciidoc and xsltproc/docbook stylesheets.
|
# Requires asciidoc and xsltproc/docbook stylesheets.
|
||||||
|
@ -153,7 +157,4 @@ debug: CCFLAGS += -O0 --coverage -ggdb
|
||||||
debug: linty
|
debug: linty
|
||||||
debug: cheat
|
debug: cheat
|
||||||
|
|
||||||
coverage: debug check
|
|
||||||
lcov -t "advent" -o advent.info -c -d .
|
|
||||||
genhtml -o coverage/ advent.info
|
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,10 @@ check: regress
|
||||||
@-advent -x 2>/dev/null # Get usage message into coverage tests
|
@-advent -x 2>/dev/null # Get usage message into coverage tests
|
||||||
@-advent -l /dev/null <pitfall.log >/dev/null
|
@-advent -l /dev/null <pitfall.log >/dev/null
|
||||||
|
|
||||||
|
coverage: check
|
||||||
|
lcov -t "advent" -o ../advent.info -c -d ..
|
||||||
|
genhtml -o ../coverage/ ../advent.info
|
||||||
|
|
||||||
.SUFFIXES: .chk
|
.SUFFIXES: .chk
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue