-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 793 Bytes
/
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
#! /usr/bin/env make
TEST_SHELL := sh
FUNCTIONAL_TESTS := tests/functional/enable.sh \
tests/functional/repo.sh \
tests/functional/workspace.sh \
tests/functional/index.sh \
tests/functional/head.sh \
tests/functional/upstream.sh
PROFILE_TESTS := tests/profile/timing.sh
tests: functional-tests profile
functional-tests: $(FUNCTIONAL_TESTS)
.PHONY: $(FUNCTIONAL_TESTS)
$(FUNCTIONAL_TESTS): tests/shunit2
$(TEST_SHELL) -- $@
profile: $(PROFILE_TESTS)
.PHONY: $(PROFILE_TESTS)
$(PROFILE_TESTS): tests/shunit2
$(TEST_SHELL) -- $@
tests/shunit2:
git clone https://github.com/kward/shunit2.git tests/shunit2
lint:
find . -name '*.sh' ! -path './tests/shunit2/*' -print0 | \
xargs -0 shellcheck -x
find . -name '*.sh' ! -path './tests/shunit2/*' -print0 | \
xargs -0 bashate