diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-01-05 01:50:52 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-01-05 01:58:05 +0100 |
commit | 9b8a94367cd19c5ec67a465c10cd91567dbdc940 (patch) | |
tree | c2a0be7932461c5fc4aeabfdf90e40e5fcf9830e /t/09-multilib.t | |
parent | 27a9343eba60fd2392e06cadbd8f5d151369c9cb (diff) | |
download | sbotools2-9b8a94367cd19c5ec67a465c10cd91567dbdc940.tar.xz |
Add test for multilibsbo with dependency
Diffstat (limited to 't/09-multilib.t')
-rwxr-xr-x | t/09-multilib.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/09-multilib.t b/t/09-multilib.t index e3a0946..86572e3 100755 --- a/t/09-multilib.t +++ b/t/09-multilib.t @@ -12,7 +12,7 @@ use Test::Execute; $ENV{TEST_MULTILIB} //= 0; if ($ENV{TEST_INSTALL} and ($ENV{TEST_MULTILIB} == 2)) { - plan tests => 1; + plan tests => 2; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1 and TEST_MULTILIB=2'; } @@ -22,9 +22,13 @@ $path = "$RealBin/../"; sub cleanup { capture_merged { + system(qw!/sbin/removepkg multilibsbo multilibsbo-compat32 multilibsbo2 multilibsbo2-compat32!); unlink "$RealBin/LO-multilib/multilibsbo/perf.dummy"; + unlink "$RealBin/LO-multilib/multilibsbo2/perf.dummy"; system(qw!rm -rf /tmp/SBo/multilibsbo-1.0!); + system(qw!rm -rf /tmp/SBo/multilibsbo2-1.0!); system(qw!rm -rf /tmp/package-multilibsbo!); + system(qw!rm -rf /tmp/package-multilibsbo2!); }; } @@ -58,6 +62,10 @@ set_lo(); # 1: Testing multilibsbo script (qw/ sboinstall -p multilibsbo /, { input => "y\ny\ny", expected => qr/Cleaning for multilibsbo-compat32-1[.]0[.][.][.]\n/ }); +system(qw!/sbin/removepkg multilibsbo multilibsbo-compat32!); + +# 2: Testing multilibsbo with dependencies +script (qw/ sboinstall -p multilibsbo2 /, { input => "y\ny\ny\ny\ny", expected => qr/Cleaning for multilibsbo2-compat32-1[.]0[.][.][.]\n/ }); # Cleanup END { |