aboutsummaryrefslogtreecommitdiff
path: root/t/LO-jobs
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-14 15:23:11 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-14 15:23:11 +0200
commit4a99d355a1d51e5c770725981c5cd86863dc1ccd (patch)
tree24340ccfcf3841f16c742f78dee96e65fc532491 /t/LO-jobs
parent8db2c94dca8aceb558d7903b95d7d60624c246e4 (diff)
downloadsbotools2-4a99d355a1d51e5c770725981c5cd86863dc1ccd.tar.xz
Add tests for JOBS setting. This closes #41.
Diffstat (limited to 't/LO-jobs')
-rw-r--r--t/LO-jobs/nonexistentslackbuild/Makefile8
-rw-r--r--t/LO-jobs/nonexistentslackbuild/README1
-rw-r--r--t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.SlackBuild20
-rw-r--r--t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.info10
-rw-r--r--t/LO-jobs/nonexistentslackbuild/timer1.touch0
-rw-r--r--t/LO-jobs/nonexistentslackbuild/timer2.touch0
6 files changed, 39 insertions, 0 deletions
diff --git a/t/LO-jobs/nonexistentslackbuild/Makefile b/t/LO-jobs/nonexistentslackbuild/Makefile
new file mode 100644
index 0000000..ab04c6c
--- /dev/null
+++ b/t/LO-jobs/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-jobs/nonexistentslackbuild/README b/t/LO-jobs/nonexistentslackbuild/README
new file mode 100644
index 0000000..6d388bb
--- /dev/null
+++ b/t/LO-jobs/nonexistentslackbuild/README
@@ -0,0 +1 @@
+This doesn't exist!
diff --git a/t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.SlackBuild b/t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.SlackBuild
new file mode 100644
index 0000000..9c30654
--- /dev/null
+++ b/t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.SlackBuild
@@ -0,0 +1,20 @@
+#!/bin/bash
+PRGNAM="nonexistentslackbuild"
+VERSION=${VERSION:-1.0}
+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-jobs/nonexistentslackbuild/nonexistentslackbuild.info b/t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.info
new file mode 100644
index 0000000..3454e71
--- /dev/null
+++ b/t/LO-jobs/nonexistentslackbuild/nonexistentslackbuild.info
@@ -0,0 +1,10 @@
+PRGNAM="nonexistentslackbuild"
+VERSION="1.0"
+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-jobs/nonexistentslackbuild/timer1.touch b/t/LO-jobs/nonexistentslackbuild/timer1.touch
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/LO-jobs/nonexistentslackbuild/timer1.touch
diff --git a/t/LO-jobs/nonexistentslackbuild/timer2.touch b/t/LO-jobs/nonexistentslackbuild/timer2.touch
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/LO-jobs/nonexistentslackbuild/timer2.touch