forked from uobikiemukot/recterm
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.am
34 lines (28 loc) · 1.25 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if COND_GCOV
MAYBE_COVERAGE = --coverage
endif
CLEANFILES = *.gcno *.gcda *.gcov
bin_PROGRAMS = seq2gif
seq2gif_SOURCES = main.c util.c pseudo.c terminal.c function.c \
dcs.c parse.c gifsave89.c \
malloc_stub.c wcwidth.c color.c \
util.h pseudo.h terminal.h function.h \
dcs.h parse.h gifsave89.h \
wcwidth.h malloc_stub.h
seq2gif_CFLAGS = $(MAYBE_COVERAGE)
test: all
for ttyfile in tests/data/*.tty; do ./seq2gif -i "$$ttyfile" -o /dev/null; done
! ./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
valgrind: all
valgrind --leak-check=full --show-reachable=no --error-limit=no ./seq2gif -i tests/data/sl.tty -o /dev/null 2>&1 \
| grep ^== \
| tee valgrind.log
grep "All heap blocks were freed" valgrind.log || grep "definitely lost: 0 bytes in 0 blocks" valgrind.log
grep "All heap blocks were freed" valgrind.log || grep "indirectly lost: 0 bytes in 0 blocks" valgrind.log
test ! $$(grep Invalid valgrind.log)