diff options
Diffstat (limited to 't')
31 files changed, 326 insertions, 1 deletions
diff --git a/t/13-local-check.t b/t/13-local-check.t index 3d79a9f..50ac947 100755 --- a/t/13-local-check.t +++ b/t/13-local-check.t @@ -10,7 +10,7 @@ use lib $RealBin; use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sbosnap sbocheck sboinstall sbofind restore_perf_dummy /; if ($ENV{TEST_INSTALL} and $ENV{TRAVIS}) { - plan tests => 4; + plan tests => 9; } else { plan skip_all => "Only run these tests if TEST_INSTALL=1 and we're running under Travis CI"; } @@ -19,11 +19,26 @@ sub cleanup { capture_merged { system(qw!/sbin/removepkg nonexistentslackbuild!); system(qw!/sbin/removepkg nonexistentslackbuild5!); + system(qw!/sbin/removepkg nonexistentslackbuildwithareallyverylongnameasyoucansee!); + system(qw!/sbin/removepkg s!); + system(qw!/sbin/removepkg nonexistentslackbuildwithareallyverylo!); + system(qw!/sbin/removepkg nonexistentslackbuildwithareallyverylon!); + system(qw!/sbin/removepkg nonexistentslackbuildwithareallyverylong!); unlink "$RealBin/LO/nonexistentslackbuild/perf.dummy"; system(qw!rm -rf /tmp/SBo/nonexistentslackbuild-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild5-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuildwithareallyverylongnameasyoucansee-1.0!); + system(qw!rm -rf /tmp/SBo/s-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuildwithareallyverylo-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuildwithareallyverylon-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuildwithareallyverylon-1.0g!); system(qw!rm -rf /tmp/package-nonexistentslackbuild!); system(qw!rm -rf /tmp/package-nonexistentslackbuild5!); + system(qw!rm -rf /tmp/package-nonexistentslackbuildwithareallyverylongnameasyoucansee!); + system(qw!rm -rf /tmp/package-s!); + system(qw!rm -rf /tmp/package-nonexistentslackbuildwithareallyverylo!); + system(qw!rm -rf /tmp/package-nonexistentslackbuildwithareallyverylon!); + system(qw!rm -rf /tmp/package-nonexistentslackbuildwithareallyverylong!); system(qw!rm -rf!, "$RealBin/gitrepo"); }; } @@ -59,6 +74,56 @@ sboinstall 'nonexistentslackbuild', { input => "y\ny", test => 0 }; sboinstall 'nonexistentslackbuild5', { input => "y\ny", test => 0 }; sbocheck { expected => sub { /nonexistentslackbuild/ and not /nonexistentslackbuild5/ } }; +# 5-7: sbocheck should make lines match up as best it can +sboinstall 'nonexistentslackbuildwithareallyverylongnameasyoucansee', { input => "y\ny", test => 0 }; +sboinstall 's', { input => "y\ny", test => 0 }; +sbocheck { expected => sub { /Updating SlackBuilds tree/ and not /nonexistentslackbuildwithareallyverylongnameasyoucansee/ } }; + +capture_merged { system <<"GIT"; }; + cd "$RealBin/gitrepo" + + mkdir -p test/nonexistentslackbuildwithareallyverylongnameasyoucansee test/s + cp "$RealBin"/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/* test/nonexistentslackbuildwithareallyverylongnameasyoucansee + cp "$RealBin"/LO2/s/* test/s + git add "test"; git commit -m 'updates'; +GIT + +sbocheck { expected => qr/\Qs 1.0 < override outdated (1.1 from SBo)/ }; + +capture_merged { system <<"GIT"; }; + cd "$RealBin/gitrepo" + + mkdir -p test/nonexistentslackbuildwithareallyverylo + cp "$RealBin"/LO2/nonexistentslackbuildwithareallyverylo/* test/nonexistentslackbuildwithareallyverylo + git add "test"; git commit -m '2nd update' +GIT + +sboinstall 'nonexistentslackbuildwithareallyverylo', { input => "y\ny", test => 0 }; +sbocheck { expected => qr/\Qs 1.0 < override outdated (1.1 from SBo)/ }; + +capture_merged { system <<"GIT"; }; + cd "$RealBin/gitrepo" + + mkdir -p test/nonexistentslackbuildwithareallyverylon + cp "$RealBin"/LO2/nonexistentslackbuildwithareallyverylon/* test/nonexistentslackbuildwithareallyverylon + git add "test"; git commit -m '3rd update' +GIT + +sboinstall 'nonexistentslackbuildwithareallyverylon', { input => "y\ny", test => 0 }; +sbocheck { expected => qr/\Qs 1.0 < override outdated (1.1 from SBo)/ }; + +capture_merged { system <<"GIT"; }; + cd "$RealBin/gitrepo" + + mkdir -p test/nonexistentslackbuildwithareallyverylong + cp "$RealBin"/LO2/nonexistentslackbuildwithareallyverylong/* test/nonexistentslackbuildwithareallyverylong + git add "test"; git commit -m '4th update' +GIT + +sboinstall 'nonexistentslackbuildwithareallyverylong', { input => "y\ny", test => 0 }; +sbocheck { expected => qr/\Qs 1.0 < override outdated (1.1 from SBo)/ }; + + # Cleanup END { cleanup(); diff --git a/t/LO/nonexistentslackbuildwithareallyverylo/README b/t/LO/nonexistentslackbuildwithareallyverylo/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylo/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild b/t/LO/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild new file mode 100644 index 0000000..6324143 --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylo" +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/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info b/t/LO/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info new file mode 100644 index 0000000..f6127c7 --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylo" +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/nonexistentslackbuildwithareallyverylon/README b/t/LO/nonexistentslackbuildwithareallyverylon/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylon/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild b/t/LO/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild new file mode 100644 index 0000000..4d43dee --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylon" +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/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info b/t/LO/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info new file mode 100644 index 0000000..cff5562 --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylon" +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/nonexistentslackbuildwithareallyverylong/README b/t/LO/nonexistentslackbuildwithareallyverylong/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylong/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild b/t/LO/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild new file mode 100644 index 0000000..1836df2 --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylong" +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/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info b/t/LO/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info new file mode 100644 index 0000000..a1a0a18 --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylong" +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/nonexistentslackbuildwithareallyverylongnameasyoucansee/README b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild new file mode 100644 index 0000000..efdd0ab --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylongnameasyoucansee" +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/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info new file mode 100644 index 0000000..22617ed --- /dev/null +++ b/t/LO/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylongnameasyoucansee" +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/s/README b/t/LO/s/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO/s/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO/s/s.SlackBuild b/t/LO/s/s.SlackBuild new file mode 100644 index 0000000..c8cade7 --- /dev/null +++ b/t/LO/s/s.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="s" +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/s/s.info b/t/LO/s/s.info new file mode 100644 index 0000000..da4649d --- /dev/null +++ b/t/LO/s/s.info @@ -0,0 +1,10 @@ +PRGNAM="s" +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/LO2/nonexistentslackbuildwithareallyverylo/README b/t/LO2/nonexistentslackbuildwithareallyverylo/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylo/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild b/t/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild new file mode 100644 index 0000000..34fcabe --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylo" +VERSION=${VERSION:-1.1} +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/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info b/t/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info new file mode 100644 index 0000000..8536d33 --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylo/nonexistentslackbuildwithareallyverylo.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylo" +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/LO2/nonexistentslackbuildwithareallyverylon/README b/t/LO2/nonexistentslackbuildwithareallyverylon/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylon/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild b/t/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild new file mode 100644 index 0000000..0359d87 --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylon" +VERSION=${VERSION:-1.1} +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/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info b/t/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info new file mode 100644 index 0000000..76bf896 --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylon/nonexistentslackbuildwithareallyverylon.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylon" +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/LO2/nonexistentslackbuildwithareallyverylong/README b/t/LO2/nonexistentslackbuildwithareallyverylong/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylong/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild b/t/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild new file mode 100644 index 0000000..b9ad16d --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylong" +VERSION=${VERSION:-1.1} +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/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info b/t/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info new file mode 100644 index 0000000..88924b3 --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylong/nonexistentslackbuildwithareallyverylong.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylong" +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/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/README b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild new file mode 100644 index 0000000..ffecd24 --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="nonexistentslackbuildwithareallyverylongnameasyoucansee" +VERSION=${VERSION:-1.1} +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/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info new file mode 100644 index 0000000..9af1aae --- /dev/null +++ b/t/LO2/nonexistentslackbuildwithareallyverylongnameasyoucansee/nonexistentslackbuildwithareallyverylongnameasyoucansee.info @@ -0,0 +1,10 @@ +PRGNAM="nonexistentslackbuildwithareallyverylongnameasyoucansee" +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/LO2/s/README b/t/LO2/s/README new file mode 100644 index 0000000..6d388bb --- /dev/null +++ b/t/LO2/s/README @@ -0,0 +1 @@ +This doesn't exist! diff --git a/t/LO2/s/s.SlackBuild b/t/LO2/s/s.SlackBuild new file mode 100644 index 0000000..3831fe6 --- /dev/null +++ b/t/LO2/s/s.SlackBuild @@ -0,0 +1,15 @@ +#!/bin/bash +PRGNAM="s" +VERSION=${VERSION:-1.1} +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/LO2/s/s.info b/t/LO2/s/s.info new file mode 100644 index 0000000..7113ac8 --- /dev/null +++ b/t/LO2/s/s.info @@ -0,0 +1,10 @@ +PRGNAM="s" +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" |