diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-14 14:28:13 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-14 14:36:34 +0100 |
commit | b888ada8f817326d317775bf17fb230e2ebca4b0 (patch) | |
tree | fc638b9b1aaa63dfc31d2996068a40a75621ebef | |
parent | 2a0cff55db8bf788e0047b0dae6e2e671484b7dc (diff) | |
download | sbotools2-b888ada8f817326d317775bf17fb230e2ebca4b0.tar.xz |
Test custom repo; see #19
-rwxr-xr-x | t/travis.sh | 20 |
1 files changed, 14 insertions, 6 deletions
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 ] |