aboutsummaryrefslogtreecommitdiff
path: root/t/03-travis.t
diff options
context:
space:
mode:
Diffstat (limited to 't/03-travis.t')
-rwxr-xr-xt/03-travis.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/03-travis.t b/t/03-travis.t
index d5bd2d1..4b77313 100755
--- a/t/03-travis.t
+++ b/t/03-travis.t
@@ -26,7 +26,7 @@ SKIP: {
skip 'Not doing online tests without TEST_ONLINE=1', 2 if $ENV{TEST_ONLINE} ne '1';
sbosnap 'fetch', { expected => qr/\APulling SlackBuilds tree\.\.\.\n/ };
- sbofind 'sbotools', { expected => "SBo: sbotools\nPath: /usr/sbo/repo/system/sbotools\n\n" };
+ sbofind 'sbotools', { expected => "SBo: sbotools 1.9\nPath: /usr/sbo/repo/system/sbotools\n\n" };
}
# 4-10: Test alternative REPO
@@ -39,7 +39,7 @@ SKIP: {
sbosnap 'fetch', { expected => qr!Pulling SlackBuilds tree.*Cloning into '/usr/sbo/repo'!s };
ok (-e "/usr/sbo/repo/SLACKBUILDS.TXT", "SLACKBUILDS.TXT exists (REPO)");
ok (! -e "/usr/sbo/repo/SLACKBUILDS.TXT.gz", "SLACKBUILDS.TXT.gz doesn't exist (REPO)");
- sbofind 'sbotools', { expected => "SBo: sbotools\nPath: /usr/sbo/repo/system/sbotools\n\n" };
+ sbofind 'sbotools', { expected => qr"SBo: sbotools .*\nPath: /usr/sbo/repo/system/sbotools\n\n" };
}
# 11-17: Test local overrides
@@ -50,30 +50,30 @@ SKIP: {
skip "Online testing disabled (TEST_ONLINE!=1) and could not create dummy SLACKBUILDS.TXT", 9 if $skip;
sbofind 'nonexistentslackbuild', { expected => sub {
-m!\QLocal: nonexistentslackbuild6
+m!\QLocal: nonexistentslackbuild6 1.0
Path: $RealBin/LO/nonexistentslackbuild6!
and
-m!\QLocal: nonexistentslackbuild5
+m!\QLocal: nonexistentslackbuild5 1.0
Path: $RealBin/LO/nonexistentslackbuild5!
and
-m!\QLocal: nonexistentslackbuild4
+m!\QLocal: nonexistentslackbuild4 1.0
Path: $RealBin/LO/nonexistentslackbuild4!
and
-m!\QLocal: nonexistentslackbuild2
+m!\QLocal: nonexistentslackbuild2 1.0
Path: $RealBin/LO/nonexistentslackbuild2!
and
-m!\QLocal: nonexistentslackbuild7
+m!\QLocal: nonexistentslackbuild7 1.0
Path: $RealBin/LO/nonexistentslackbuild7!
and
-m!\QLocal: nonexistentslackbuild
+m!\QLocal: nonexistentslackbuild 1.0
Path: $RealBin/LO/nonexistentslackbuild!
and
-m!\QLocal: nonexistentslackbuild8
+m!\QLocal: nonexistentslackbuild8 1.0
Path: $RealBin/LO/nonexistentslackbuild8!
} };
sboinstall qw/ -r nonexistentslackbuild /,
- { expected => qr/nonexistentslackbuild added to install queue[.].*perf[.]dummy' saved.*Cleaning for nonexistentslackbuild-1[.]0/s };
+ { expected => qr/nonexistentslackbuild added to install queue[.].*perf[.]dummy.* saved.*Cleaning for nonexistentslackbuild-1[.]0/s };
sboremove qw/ --nointeractive nonexistentslackbuild /, { expected => qr/Removing 1 package\(s\).*nonexistentslackbuild.*All operations have completed/s };
is (system(qw!/sbin/installpkg nonexistentslackbuild-0.9-noarch-1_SBo.tgz!), 0, 'Old version fake installed');
sbocheck { expected => qr/Updating SlackBuilds tree.*Checking for updated SlackBuilds.*nonexistentslackbuild 0[.]9.*needs updating/s };