aboutsummaryrefslogtreecommitdiff
path: root/t/travis.sh
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 15:19:58 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 15:19:58 +0100
commitb29c00408e4d0a77a692522a7b31cad0044d8b24 (patch)
tree6151d0aa8edd480da0d23daa643ea08e55e30893 /t/travis.sh
parent79f4cbf50a27abba9c968d8af563c310e60a22ba (diff)
downloadsbotools2-b29c00408e4d0a77a692522a7b31cad0044d8b24.tar.xz
Add tests for local overrides (sbocheck, install, upgrade); see #19
Diffstat (limited to 't/travis.sh')
-rwxr-xr-xt/travis.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/travis.sh b/t/travis.sh
index 08180ee..0bb31aa 100755
--- a/t/travis.sh
+++ b/t/travis.sh
@@ -20,6 +20,8 @@ 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
@@ -27,3 +29,16 @@ 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 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