-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
64 lines (55 loc) · 1.51 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
BUILDDIR := build
help:
@echo "Usage: make TARGET"
@echo
@echo "Target can be one of the following:"
@echo " build Compile pcapFS."
@echo " dependencies Install dependencies."
@echo " help Show this message and exit."
@echo " release Merge dev into master and create a new release."
@echo " systemtests Run the system tests."
@echo " tests Run all tests."
@echo " unittests Run the unit tests."
unittests: build
@echo
@printf '%80s\n' | sed 's/ /#/g'
@echo 'Running unit tests'
@printf '%80s\n' | sed 's/ /#/g'
@echo
@cd ${BUILDDIR} && make test
systemtests: build
@echo
@printf '%80s\n' | sed 's/ /#/g'
@echo "Running system tests"
@printf '%80s\n' | sed 's/ /#/g'
@echo
@./tests/system/run-system-tests.sh
cryptotests: build
@echo
@printf '%80s\n' | sed 's/ /#/g'
@echo "Running crypto tests"
@printf '%80s\n' | sed 's/ /#/g'
@echo
@./tests/crypto/run-crypto-tests.sh
tests: unittests systemtests cryptotests
build: dependencies
@echo
@printf '%80s\n' | sed 's/ /#/g'
@echo "Building pcapFS"
@printf '%80s\n' | sed 's/ /#/g'
@echo
@mkdir -p ${BUILDDIR}
@cd ${BUILDDIR} && \
cmake -DBUILD_TESTING=on .. && \
make -j2
dependencies:
@echo
@printf '%80s\n' | sed 's/ /#/g'
@echo "Building pcapFS dependencies"
@printf '%80s\n' | sed 's/ /#/g'
@echo
@./scripts/dependencies/install-all-dependencies.sh
@./scripts/dependencies/install-catch2.sh
release: tests
@./scripts/github-release.sh
.PHONY: build help release systemtests tests unittests