From b888ada8f817326d317775bf17fb230e2ebca4b0 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Mon, 14 Dec 2015 14:28:13 +0100 Subject: Test custom repo; see #19 --- t/travis.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 't/travis.sh') diff --git a/t/travis.sh b/t/travis.sh index 0779195..f7285fd 100755 --- a/t/travis.sh +++ b/t/travis.sh @@ -4,17 +4,25 @@ set -e set -x +CWD=$(pwd) PERL=`which perl` I="SBO-Lib/lib" run() { - sudo $PERL "$@" + sudo $PERL -I$I "$@" } env -run -I$I sboconfig -V 14.1 -run -I$I sbosnap fetch -run -I$I sbofind sbotools +run sboconfig -V 14.1 +run sbosnap fetch +run sbofind sbotools cd t -run prep.pl -run test.t +sudo $PERL prep.pl +sudo $PERL test.t +cd $CWD +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 ] -- cgit v1.2.3