aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-01-05 11:40:43 +0000
committermerakor <cem@ckyln.com>2021-01-05 11:40:43 +0000
commit3df8f4bd03cc2d087c1abfb340e9d2949e2f91ad (patch)
tree24e1c5e95ed6ef76e287a525dee6f96807d03ae7 /tests
parent95f2d2b36dbe54fbc3ca9e330553452cf7423705 (diff)
downloadcpt-3df8f4bd03cc2d087c1abfb340e9d2949e2f91ad.tar.gz
shellspec: add unit tests
FossilOrigin-Name: cc6f029081294c10be43ba51dedecb1997cc653215b587a566c0a527705162ab
Diffstat (limited to 'tests')
l---------tests/etc/cpt-hook1
-rw-r--r--tests/hook-file3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/etc/cpt-hook b/tests/etc/cpt-hook
new file mode 120000
index 0000000..e95622a
--- /dev/null
+++ b/tests/etc/cpt-hook
@@ -0,0 +1 @@
+../hook-file \ No newline at end of file
diff --git a/tests/hook-file b/tests/hook-file
new file mode 100644
index 0000000..4b8a2ce
--- /dev/null
+++ b/tests/hook-file
@@ -0,0 +1,3 @@
+# -*- mode: sh -*-
+# This a test hook file that only returns back the $TYPE, $PKG, and $DEST
+out "$CPT_HOOK $TYPE $PKG $DEST"