Signed-off-by: Florian Pritz <bluewind@xinu.at> --- .../makepkg-template-tests/template-without-version/PKGBUILD | 8 ++++++++ .../template-without-version/expected_output | 2 ++ .../templates/template-without_version.template | 0 3 files changed, 10 insertions(+) create mode 100644 test/scripts/makepkg-template-tests/template-without-version/PKGBUILD create mode 100644 test/scripts/makepkg-template-tests/template-without-version/expected_output create mode 100644 test/scripts/makepkg-template-tests/template-without-version/templates/template-without_version.template diff --git a/test/scripts/makepkg-template-tests/template-without-version/PKGBUILD b/test/scripts/makepkg-template-tests/template-without-version/PKGBUILD new file mode 100644 index 0000000..a4509a1 --- /dev/null +++ b/test/scripts/makepkg-template-tests/template-without-version/PKGBUILD @@ -0,0 +1,8 @@ +pkgname=foo +pkgver=1 + +build() { +# template start; name=template-without_version +make install +# template end; +} diff --git a/test/scripts/makepkg-template-tests/template-without-version/expected_output b/test/scripts/makepkg-template-tests/template-without-version/expected_output new file mode 100644 index 0000000..8f32455 --- /dev/null +++ b/test/scripts/makepkg-template-tests/template-without-version/expected_output @@ -0,0 +1,2 @@ +Couldn't detect version for template 'template-without_version' +255 diff --git a/test/scripts/makepkg-template-tests/template-without-version/templates/template-without_version.template b/test/scripts/makepkg-template-tests/template-without-version/templates/template-without_version.template new file mode 100644 index 0000000..e69de29 -- 2.2.1