aboutsummaryrefslogtreecommitdiff
path: root/t/LO
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-02-12 11:43:31 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-02-12 21:46:28 +0100
commit1b1385ad465d1c01f2391b4e92049dc84f8c863b (patch)
tree785d479cb114bdec994f6d4bfa58453440b04c4f /t/LO
parenta02b1e72255c909a1bf94e47ecbf68e429143153 (diff)
downloadsbotools2-1b1385ad465d1c01f2391b4e92049dc84f8c863b.tar.xz
Add tests for slackbuild with dep on a slackware package. See #28
Diffstat (limited to 't/LO')
-rw-r--r--t/LO/nonexistentslackbuild6/README1
-rw-r--r--t/LO/nonexistentslackbuild6/nonexistentslackbuild6.SlackBuild15
-rw-r--r--t/LO/nonexistentslackbuild6/nonexistentslackbuild6.info10
3 files changed, 26 insertions, 0 deletions
diff --git a/t/LO/nonexistentslackbuild6/README b/t/LO/nonexistentslackbuild6/README
new file mode 100644
index 0000000..6d388bb
--- /dev/null
+++ b/t/LO/nonexistentslackbuild6/README
@@ -0,0 +1 @@
+This doesn't exist!
diff --git a/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.SlackBuild b/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.SlackBuild
new file mode 100644
index 0000000..3d62845
--- /dev/null
+++ b/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.SlackBuild
@@ -0,0 +1,15 @@
+#!/bin/bash
+PRGNAM="nonexistentslackbuild6"
+VERSION=${VERSION:-1.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+TMP=${TMP:-/tmp/SBo}
+OUTPUT=${OUTPUT:-/tmp}
+
+mkdir -p $TMP/$PRGNAM-$VERSION
+cp README $TMP/$PRGNAM-$VERSION
+mkdir -p $OUTPUT/package-$PRGNAM/usr/doc/$PRGNAM-$VERSION
+cp README $OUTPUT/package-$PRGNAM/usr/doc/$PRGNAM-$VERSION
+cd $OUTPUT/package-$PRGNAM
+
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-noarch-$BUILD$TAG.tgz
diff --git a/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.info b/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.info
new file mode 100644
index 0000000..30910d2
--- /dev/null
+++ b/t/LO/nonexistentslackbuild6/nonexistentslackbuild6.info
@@ -0,0 +1,10 @@
+PRGNAM="nonexistentslackbuild6"
+VERSION="1.0"
+HOMEPAGE="http://www.example.com"
+DOWNLOAD="http://www.pastemobile.org/perf.dummy"
+MD5SUM="9cba6c70fb57a22a155073d54748b614"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="aaa_base"
+MAINTAINER="Andreas Guldstrand"
+EMAIL="doesnt@matter.org"