summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 02:31:57 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 02:31:57 (EDT)
commitdffd7a47fbdcac799b4ada5253eab42807d12324 (patch)
treee3cad090a574005137c5ec64bf120045df8b0a5b /tests/data
parent1c86be26ca78ad0a227fea3cfc64a4c5641118dc (diff)
tests/aux/common.sh: Copy test package files to build directory
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/pkg/README5
-rw-r--r--tests/data/pkg/bar.pkg/control6
-rw-r--r--tests/data/pkg/changelog3
-rw-r--r--tests/data/pkg/control1
-rw-r--r--tests/data/pkg/copyright1
-rw-r--r--tests/data/pkg/foo.pkg/control6
-rw-r--r--tests/data/pkg/foo.pkg/docs1
-rw-r--r--tests/data/pkg/format1
-rw-r--r--tests/data/pkg/patches/01_goodbye.patch7
-rw-r--r--tests/data/pkg/substvars3
-rw-r--r--tests/data/src/src/foo.sh2
11 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/pkg/README b/tests/data/pkg/README
new file mode 100644
index 0000000..4e8791e
--- /dev/null
+++ b/tests/data/pkg/README
@@ -0,0 +1,5 @@
+Frobnicator of Objects
+======================
+
+This is a frobnicator of objects. Conveniently, it also bit-bangs all
+registers.
diff --git a/tests/data/pkg/bar.pkg/control b/tests/data/pkg/bar.pkg/control
new file mode 100644
index 0000000..b0c05fa
--- /dev/null
+++ b/tests/data/pkg/bar.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Description: Bit-bang All Registers
+ ${Common-Description}
+ .
+ This package assists in bit-banging all yer registers.
diff --git a/tests/data/pkg/changelog b/tests/data/pkg/changelog
new file mode 100644
index 0000000..118a036
--- /dev/null
+++ b/tests/data/pkg/changelog
@@ -0,0 +1,3 @@
+foo (1.0-1) trunk
+ * Initial release.
+ -- "J. Random Hacker" <jrandom@example.com> Thu, 01 Jan 1970 00:00:00 +0000
diff --git a/tests/data/pkg/control b/tests/data/pkg/control
new file mode 100644
index 0000000..6d12994
--- /dev/null
+++ b/tests/data/pkg/control
@@ -0,0 +1 @@
+Maintainer: "J. Random Hacker" <jrandom@example.com>
diff --git a/tests/data/pkg/copyright b/tests/data/pkg/copyright
new file mode 100644
index 0000000..b4d4b40
--- /dev/null
+++ b/tests/data/pkg/copyright
@@ -0,0 +1 @@
+Copyright (C) 2038 J. Random Hacker
diff --git a/tests/data/pkg/foo.pkg/control b/tests/data/pkg/foo.pkg/control
new file mode 100644
index 0000000..1ab7dd1
--- /dev/null
+++ b/tests/data/pkg/foo.pkg/control
@@ -0,0 +1,6 @@
+Architecture: any-linux-any
+Platform: all
+Description: Frobnicator of Objects
+ ${Common-Description}
+ .
+ This package provides a frobnicator of objects.
diff --git a/tests/data/pkg/foo.pkg/docs b/tests/data/pkg/foo.pkg/docs
new file mode 100644
index 0000000..ab59324
--- /dev/null
+++ b/tests/data/pkg/foo.pkg/docs
@@ -0,0 +1 @@
+../README README.upstream
diff --git a/tests/data/pkg/format b/tests/data/pkg/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/tests/data/pkg/format
@@ -0,0 +1 @@
+2.0
diff --git a/tests/data/pkg/patches/01_goodbye.patch b/tests/data/pkg/patches/01_goodbye.patch
new file mode 100644
index 0000000..e30f1c4
--- /dev/null
+++ b/tests/data/pkg/patches/01_goodbye.patch
@@ -0,0 +1,7 @@
+diff -Naur a/src/foo.sh b/src/foo.sh
+--- a/src/foo.sh
++++ b/src/foo.sh
+@@ -1,2 +1,2 @@
+ #!/bin/sh
+-printf 'Hello, world!\n'
++printf 'Goodbye, world!\n'
diff --git a/tests/data/pkg/substvars b/tests/data/pkg/substvars
new file mode 100644
index 0000000..fbcb606
--- /dev/null
+++ b/tests/data/pkg/substvars
@@ -0,0 +1,3 @@
+Common-Description:
+ This is a frobnicator of objects. Conveniently, it also bit-bangs all
+ registers.
diff --git a/tests/data/src/src/foo.sh b/tests/data/src/src/foo.sh
new file mode 100644
index 0000000..aedab81
--- /dev/null
+++ b/tests/data/src/src/foo.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+printf 'Hello, world!\n'