[pacman-dev] [PATCH v4 09/11] test makepkg-template: Add name-charset-valid
Florian Pritz
bluewind at xinu.at
Sun Dec 28 15:23:46 UTC 2014
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
.../makepkg-template-tests/name-charset-valid/PKGBUILD | 8 ++++++++
.../name-charset-valid/templates/foo at -_.+a-1.template | 1 +
.../name-charset-valid/templates/foo at -_.+a.template | 1 +
.../name-charset-valid/testcase-config | 16 ++++++++++++++++
4 files changed, 26 insertions(+)
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/PKGBUILD
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
create mode 100644 test/scripts/makepkg-template-tests/name-charset-valid/testcase-config
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/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
diff --git a/test/scripts/makepkg-template-tests/name-charset-valid/testcase-config b/test/scripts/makepkg-template-tests/name-charset-valid/testcase-config
new file mode 100644
index 0000000..6810390
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-valid/testcase-config
@@ -0,0 +1,16 @@
+arguments+=()
+expected_exitcode=0
+
+IFS="" read -d '' expected_output <<'EOF'
+EOF
+
+IFS="" read -d '' expected_result <<'EOF'
+pkgname=foo
+pkgver=1
+
+build() {
+# template start; name=foo at -_.+a; version=1;
+42 cookies
+# template end;
+}
+EOF
--
2.2.1
More information about the pacman-dev
mailing list