From 68f2c84967166ae1bac96551a2c7fe210910d657 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Tue, 15 Dec 2015 09:18:58 +0100 Subject: prove-ify tests --- t/travis.sh | 59 ----------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100755 t/travis.sh (limited to 't/travis.sh') diff --git a/t/travis.sh b/t/travis.sh deleted file mode 100755 index aa64f4b..0000000 --- a/t/travis.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -# Set up tests to run under Travis -set -e -set -x - -CWD=$(pwd) -PERL=`which perl` -I="SBO-Lib/lib" -run() { - sudo $PERL -I$I "$@" -} - -env - -run sboconfig -V 14.1 -run sbosnap fetch -run sbofind sbotools -cd t -sudo $PERL prep.pl -sudo $PERL test.t -cd $CWD - -# Test alternative repo -sudo rm -rf /usr/sbo -[ ! -e /usr/sbo/repo/SLACKBUILDS.TXT ] -run sboconfig -r https://github.com/Ponce/slackbuilds.git -run sbosnap fetch -[ -e /usr/sbo/repo/SLACKBUILDS.TXT ] -[ ! -e /usr/sbo/repo/SLACKBUILDS.TXT.gz ] -run sbofind sbotools - -# Test local overrides -run sboconfig -o $CWD/t/LO -run sbofind nonexistentslackbuild -run sboinstall -r nonexistentslackbuild -ls -la /var/log/packages -run sboremove --nointeractive nonexistentslackbuild -ls -la /var/log/packages - -sudo /sbin/installpkg nonexistentslackbuild-0.9-noarch-1_SBo.tgz -run sbocheck -WC=$(wc -l /var/log/sbocheck.log) -[ "$WC" = "1 /var/log/sbocheck.log" ] -run sboupgrade -r nonexistentslackbuild - -# Test missing dep -( - run sboinstall nonexistentslackbuild2 <