[pacman-dev] [PATCH 09/11] test makepkg-template: Add name-charset-valid
Florian Pritz
bluewind at xinu.at
Sun Dec 21 15:11:27 UTC 2014
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD | 8 ++++++++
.../makepkg-template-tests/name-charset-valid/expected_output | 1 +
.../makepkg-template-tests/name-charset-valid/expected_result | 8 ++++++++
.../name-charset-valid/templates/foo at -_.+a-1.template | 1 +
.../name-charset-valid/templates/foo at -_.+a.template | 1 +
5 files changed, 19 insertions(+)
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/expected_output
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/expected_result
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a-1.template
create mode 120000 test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a.template
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD b/test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD
new file mode 100644
index 0000000..ec21cdb
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD
@@ -0,0 +1,8 @@
+pkgname=foo
+pkgver=1
+
+build() {
+# template start; name=foo at -_.+a
+make install
+# template end;
+}
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/expected_output b/test/scripts/makepkg-template-tests/name-charset-valid/expected_output
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/expected_output
@@ -0,0 +1 @@
+0
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/expected_result b/test/scripts/makepkg-template-tests/name-charset-valid/expected_result
new file mode 100644
index 0000000..25b6869
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/expected_result
@@ -0,0 +1,8 @@
+pkgname=foo
+pkgver=1
+
+build() {
+# template start; name=foo at -_.+a; version=1;
+42 cookies
+# template end;
+}
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a-1.template b/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a-1.template
new file mode 100644
index 0000000..d0884a6
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a-1.template
@@ -0,0 +1 @@
+42 cookies
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a.template b/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a.template
new file mode 120000
index 0000000..24b333f
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/templates/foo at -_.+a.template
@@ -0,0 +1 @@
+foo at -_.+a-1.template
\ No newline at end of file
--
2.2.1
More information about the pacman-dev
mailing list