Skip to content

Commit

Permalink
Add tests for option "-p NAME" to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 3, 2020
1 parent 9778aea commit 51bca54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ seq2gif_CFLAGS = $(MAYBE_COVERAGE)

test: all
for ttyfile in tests/data/*.tty; do ./seq2gif -i "$$ttyfile" -o /dev/null; done
./seq2gif -i tests/data/sl.tty -o /dev/null
! ./seq2gif -i /non-existent-file.tty -o /dev/null
! ./seq2gif -i tests/data/sl.tty -o /non-existent-file.out
for palette in xxxx vga cmd win powershell app putty mirc xterm ubuntu and solarized solarized256; do \
./seq2gif -p "$$palette" -i tests/data/color16.tty -o /dev/null 2>/dev/null; \
done

coveralls: test
coveralls -E '.*\.h' -e tests -e glyph -e m4
Expand Down
4 changes: 3 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,11 @@ uninstall-am: uninstall-binPROGRAMS

test: all
for ttyfile in tests/data/*.tty; do ./seq2gif -i "$$ttyfile" -o /dev/null; done
./seq2gif -i tests/data/sl.tty -o /dev/null
! ./seq2gif -i /non-existent-file.tty -o /dev/null
! ./seq2gif -i tests/data/sl.tty -o /non-existent-file.out
for palette in xxxx vga cmd win powershell app putty mirc xterm ubuntu and solarized solarized256; do \
./seq2gif -p "$$palette" -i tests/data/color16.tty -o /dev/null 2>/dev/null; \
done

coveralls: test
coveralls -E '.*\.h' -e tests -e glyph -e m4
Expand Down
Binary file added tests/data/color16.tty
Binary file not shown.

0 comments on commit 51bca54

Please sign in to comment.