aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-23 14:32:41 +0000
committermerakor <cem@ckyln.com>2021-03-23 14:32:41 +0000
commit6bf775511658a8d1db300b97a155c3bbfe3f3bb1 (patch)
treed54b9de687369a4bb654268b316406bd28d90f73
parente44c7f66e73976c03973c62571b0690a3a61205d (diff)
downloadcpt-6bf775511658a8d1db300b97a155c3bbfe3f3bb1.tar.gz
tests: create symlink on 'make test' and remove on 'make clean'
FossilOrigin-Name: f4445dffca86814e9a87ebdad59af412f048e093a6854e71d761f94b69d97057
-rw-r--r--.fossil-settings/ignore-glob1
-rw-r--r--Makefile6
l---------tests/etc/cpt-hook1
3 files changed, 6 insertions, 2 deletions
diff --git a/.fossil-settings/ignore-glob b/.fossil-settings/ignore-glob
index 5dcc425..d4cc917 100644
--- a/.fossil-settings/ignore-glob
+++ b/.fossil-settings/ignore-glob
@@ -1,4 +1,5 @@
src/cpt-lib
+tests/etc/cpt-hook
*#*#
*~
diff --git a/Makefile b/Makefile
index 012bfe2..c63eb5a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,13 @@ src/cpt-lib: src/cpt-lib.in
-e "s|@DOCSTRING@|Call functions from the library|g" < src/cpt-lib.in > $@
chmod 755 $@
-test: all
+test: all tests/etc/cpt-hook
shellspec
cd src; find . ../contrib -name 'cpt*' ! -name '*.*' -exec shellcheck -e 2119 -x -f gcc {} +
+tests/etc/cpt-hook:
+ ln -s ../hook-file $@
+
dist: docs/cpt.info
mkdir "cpt-${VERSION}"
cp -r ${DISTFILES} "cpt-${VERSION}"
@@ -46,5 +49,6 @@ uninstall:
clean:
test "${DOCS}" != yes || ${MAKE} -C docs clean
rm -rf src/cpt-lib "cpt-${VERSION}.tar.xz" coverage report
+ rm -f tests/etc/cpt-hook
.PHONY: all dist clean install uninstall
diff --git a/tests/etc/cpt-hook b/tests/etc/cpt-hook
deleted file mode 120000
index e95622a..0000000
--- a/tests/etc/cpt-hook
+++ /dev/null
@@ -1 +0,0 @@
-../hook-file \ No newline at end of file