summaryrefslogtreecommitdiffstats
path: root/tests/pkg
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-06-17 15:32:06 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-06-17 15:32:06 (EDT)
commit9691116601943c801c3c5fa0ef18de0643f82871 (patch)
tree8ff3eb0539788ee884bcabdf4c6ae15945fd1200 /tests/pkg
parent7d89909b5aa47c9c6e5ee5ce662893abd2c9249a (diff)
tests: Add package work area
Diffstat (limited to 'tests/pkg')
-rw-r--r--tests/pkg/control/control3
l---------tests/pkg/data/bin/false1
-rwxr-xr-xtests/pkg/data/bin/true7
-rw-r--r--tests/pkg/data/dev/null0
-rw-r--r--tests/pkg/specials3
5 files changed, 14 insertions, 0 deletions
diff --git a/tests/pkg/control/control b/tests/pkg/control/control
new file mode 100644
index 0000000..6955953
--- /dev/null
+++ b/tests/pkg/control/control
@@ -0,0 +1,3 @@
+Package: foo
+Source: foo
+Version: 1.0
diff --git a/tests/pkg/data/bin/false b/tests/pkg/data/bin/false
new file mode 120000
index 0000000..f32a580
--- /dev/null
+++ b/tests/pkg/data/bin/false
@@ -0,0 +1 @@
+true \ No newline at end of file
diff --git a/tests/pkg/data/bin/true b/tests/pkg/data/bin/true
new file mode 100755
index 0000000..7fe2095
--- /dev/null
+++ b/tests/pkg/data/bin/true
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ x"$(basename "${0}")" = x'true' ]; then
+ return 0
+else
+ return 1
+fi
diff --git a/tests/pkg/data/dev/null b/tests/pkg/data/dev/null
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/pkg/data/dev/null
diff --git a/tests/pkg/specials b/tests/pkg/specials
new file mode 100644
index 0000000..c97eef3
--- /dev/null
+++ b/tests/pkg/specials
@@ -0,0 +1,3 @@
+version=1
+type major minor name
+c 1 3 /dev/null