aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml6
-rw-r--r--Makefile2
-rw-r--r--src/Makefile4
3 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4f430a3..836d891 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,8 +10,4 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run tests.
- run: |
- wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz
- xz -cd shellcheck-v0.7.1.linux.x86_64.tar.xz | tar xf -
- export PATH=shellcheck-v0.7.1:$PATH
- make test
+ run: make test
diff --git a/Makefile b/Makefile
index 64b914d..3b2529b 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ test: ${BIN}
bin/cpt-stat bin
bin/cpt-stat Makefile
bin/cpt-readlink /bin/sh
- shellcheck -P src -x -f gcc src/* contrib/*
+ ${MAKE} -C src test
install-bin: ${BIN}
for bin in ${BIN}; do \
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..aae4e59
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,4 @@
+test:
+ shellcheck -x -f gcc ./cpt* ../contrib/*
+
+.PHONY: test