aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
l---------tests/etc/cpt-hook1
-rw-r--r--tests/hook-file3
-rwxr-xr-xtests/repository/contrib-dummy-pkg/build1
-rw-r--r--tests/repository/contrib-dummy-pkg/checksums0
-rw-r--r--tests/repository/contrib-dummy-pkg/depends1
-rw-r--r--tests/repository/contrib-dummy-pkg/sources0
-rw-r--r--tests/repository/contrib-dummy-pkg/version1
-rwxr-xr-xtests/repository/dummy-pkg/build4
-rw-r--r--tests/repository/dummy-pkg/checksums0
-rw-r--r--tests/repository/dummy-pkg/version1
10 files changed, 12 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"
diff --git a/tests/repository/contrib-dummy-pkg/build b/tests/repository/contrib-dummy-pkg/build
new file mode 100755
index 0000000..270ae64
--- /dev/null
+++ b/tests/repository/contrib-dummy-pkg/build
@@ -0,0 +1 @@
+#!/bin/sh -e
diff --git a/tests/repository/contrib-dummy-pkg/checksums b/tests/repository/contrib-dummy-pkg/checksums
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/repository/contrib-dummy-pkg/checksums
diff --git a/tests/repository/contrib-dummy-pkg/depends b/tests/repository/contrib-dummy-pkg/depends
new file mode 100644
index 0000000..153ede1
--- /dev/null
+++ b/tests/repository/contrib-dummy-pkg/depends
@@ -0,0 +1 @@
+dummy-pkg
diff --git a/tests/repository/contrib-dummy-pkg/sources b/tests/repository/contrib-dummy-pkg/sources
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/repository/contrib-dummy-pkg/sources
diff --git a/tests/repository/contrib-dummy-pkg/version b/tests/repository/contrib-dummy-pkg/version
new file mode 100644
index 0000000..2fb73a0
--- /dev/null
+++ b/tests/repository/contrib-dummy-pkg/version
@@ -0,0 +1 @@
+1 1
diff --git a/tests/repository/dummy-pkg/build b/tests/repository/dummy-pkg/build
new file mode 100755
index 0000000..d37d964
--- /dev/null
+++ b/tests/repository/dummy-pkg/build
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+# Check that we are receiving 3 arguments
+[ "$3" ] || exit 1
diff --git a/tests/repository/dummy-pkg/checksums b/tests/repository/dummy-pkg/checksums
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/repository/dummy-pkg/checksums
diff --git a/tests/repository/dummy-pkg/version b/tests/repository/dummy-pkg/version
new file mode 100644
index 0000000..2fb73a0
--- /dev/null
+++ b/tests/repository/dummy-pkg/version
@@ -0,0 +1 @@
+1 1