summaryrefslogtreecommitdiff
path: root/test/librefetch.d
diff options
context:
space:
mode:
Diffstat (limited to 'test/librefetch.d')
-rw-r--r--test/librefetch.d/PKGBUILD18
-rw-r--r--test/librefetch.d/PKGBUILD-recurse18
-rw-r--r--test/librefetch.d/list.txt5
3 files changed, 41 insertions, 0 deletions
diff --git a/test/librefetch.d/PKGBUILD b/test/librefetch.d/PKGBUILD
new file mode 100644
index 0000000..6547e25
--- /dev/null
+++ b/test/librefetch.d/PKGBUILD
@@ -0,0 +1,18 @@
+pkgname=testpkg
+pkgver=1.0
+pkgrel=1
+pkgdesc=foo
+arch=(any)
+source=("libre://$pkgname-$pkgver.tar.gz"{,.sig})
+
+mksource() {
+ mkdir "$srcdir/bar"
+ local file
+ for file in '~foo' '~a' a A; do
+ touch "$srcdir/bar/$file"
+ done
+}
+
+package() {
+ :;
+}
diff --git a/test/librefetch.d/PKGBUILD-recurse b/test/librefetch.d/PKGBUILD-recurse
new file mode 100644
index 0000000..fad5976
--- /dev/null
+++ b/test/librefetch.d/PKGBUILD-recurse
@@ -0,0 +1,18 @@
+pkgname=testpkg
+pkgver=1.0
+pkgrel=1
+pkgdesc=foo
+arch=(any)
+source=("libre://$pkgname-$pkgver.tar.gz.sig")
+
+mksource() {
+ mkdir "$srcdir/bar"
+ local file
+ for file in '~foo' '~a' a A; do
+ touch "$srcdir/bar/$file"
+ done
+}
+
+package() {
+ :;
+}
diff --git a/test/librefetch.d/list.txt b/test/librefetch.d/list.txt
new file mode 100644
index 0000000..9bd32f4
--- /dev/null
+++ b/test/librefetch.d/list.txt
@@ -0,0 +1,5 @@
+bar/
+bar/A
+bar/a
+bar/~a
+bar/~foo