aboutsummaryrefslogtreecommitdiff
path: root/t/LO-jobs2
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-13 17:20:22 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-13 17:20:22 +0200
commit623ebe7962412958787e5cb1982b72289bdae649 (patch)
treec30bc37603cc7b2a221ffd361981ce526e92d5bf /t/LO-jobs2
parent966d17fe70d85be62edb331e7f40bf9b896b3fc8 (diff)
downloadsbotools2-623ebe7962412958787e5cb1982b72289bdae649.tar.xz
14-jobs.t: add test for sboupgrade -j 2
Diffstat (limited to 't/LO-jobs2')
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/Makefile8
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/README1
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.SlackBuild20
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.info10
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/timer1.touch0
-rw-r--r--t/LO-jobs2/nonexistentslackbuild/timer2.touch0
6 files changed, 39 insertions, 0 deletions
diff --git a/t/LO-jobs2/nonexistentslackbuild/Makefile b/t/LO-jobs2/nonexistentslackbuild/Makefile
new file mode 100644
index 0000000..ab04c6c
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/Makefile
@@ -0,0 +1,8 @@
+timers: timer1 timer2
+ rm timer1 timer2
+
+timer1: timer1.touch
+ sleep 3 && touch timer1
+
+timer2: timer2.touch
+ sleep 3 && touch timer2
diff --git a/t/LO-jobs2/nonexistentslackbuild/README b/t/LO-jobs2/nonexistentslackbuild/README
new file mode 100644
index 0000000..6d388bb
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/README
@@ -0,0 +1 @@
+This doesn't exist!
diff --git a/t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.SlackBuild b/t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.SlackBuild
new file mode 100644
index 0000000..d1bf76c
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.SlackBuild
@@ -0,0 +1,20 @@
+#!/bin/bash
+PRGNAM="nonexistentslackbuild"
+VERSION=${VERSION:-1.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+TMP=${TMP:-/tmp/SBo}
+OUTPUT=${OUTPUT:-/tmp}
+
+mkdir -p $TMP/$PRGNAM-$VERSION
+cp README Makefile timer1.touch timer2.touch $TMP/$PRGNAM-$VERSION
+cd $TMP/$PRGNAM-$VERSION
+
+time \
+make
+
+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-jobs2/nonexistentslackbuild/nonexistentslackbuild.info b/t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.info
new file mode 100644
index 0000000..4b04e13
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/nonexistentslackbuild.info
@@ -0,0 +1,10 @@
+PRGNAM="nonexistentslackbuild"
+VERSION="1.1"
+HOMEPAGE="http://www.example.com"
+DOWNLOAD="http://pink-mist.github.io/sbotools/testing/perf.dummy"
+MD5SUM="9cba6c70fb57a22a155073d54748b614"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Andreas Guldstrand"
+EMAIL="doesnt@matter.org"
diff --git a/t/LO-jobs2/nonexistentslackbuild/timer1.touch b/t/LO-jobs2/nonexistentslackbuild/timer1.touch
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/timer1.touch
diff --git a/t/LO-jobs2/nonexistentslackbuild/timer2.touch b/t/LO-jobs2/nonexistentslackbuild/timer2.touch
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/LO-jobs2/nonexistentslackbuild/timer2.touch