-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 819 Bytes
/
Makefile
File metadata and controls
50 lines (35 loc) · 819 Bytes
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Install test tools.
install_kcov:
apt-get update
apt-get install g++ pkg-config libcurl4-gnutls-dev libelf-dev libdw-dev zlib1g-dev cmake
git clone https://github.com/SimonKagstrom/kcov.git
mkdir kcov/build
cd kcov/build && cmake .. && make && make install
install_shells:
apt-get update
apt-get install ksh zsh posh yash
# Run tests.
test: .FORCE
sh test/test
test_all: test test_unix test_posix
test_unix:
bash test/test
ksh test/test
zsh test/test
test_posix:
dash test/test
posh test/test
yash test/test
# Measure code coverage.
coverage: .FORCE
rm -rf coverage
kcov --exclude-path=test/test coverage test/test
coveralls:
rm -rf coverage
kcov --coveralls-id=$$TRAVIS_JOB_ID --exclude-path=test/test coverage test/test
# Cleanup
clean:
rm -rf coverage
# Meta
.FORCE:
# vim: noet