diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 16:26:40 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 16:26:40 +0200 |
commit | c1e7155333f1a86f90a7843e87bb1aa9145acdda (patch) | |
tree | 7bbfce970c2c5700493f35503e4c1abe5fc44111 /t/Test/Sbotools.pm | |
parent | 301e8781a3d80c371bf3f68e9b6cfd27ddd161ad (diff) | |
download | sbotools2-c1e7155333f1a86f90a7843e87bb1aa9145acdda.tar.xz |
Add testing for cleaning builds.
Diffstat (limited to 't/Test/Sbotools.pm')
-rw-r--r-- | t/Test/Sbotools.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm index 8319802..ec0abfc 100644 --- a/t/Test/Sbotools.pm +++ b/t/Test/Sbotools.pm @@ -7,6 +7,7 @@ use Exporter 'import'; use Test::More; use Test::Execute; use FindBin '$RealBin'; +use lib "$RealBin/../SBO-Lib/lib"; # From Test::Execute $path = "$RealBin/../"; @@ -29,6 +30,7 @@ our @EXPORT_OK = qw/ set_pkg_dir set_sbo_home make_slackbuilds_txt + restore_perf_dummy /; local $Test::Builder::Level = $Test::Builder::Level + 1; @@ -89,6 +91,13 @@ sub make_slackbuilds_txt { if (not -e $fname) { $made = 1; system('mkdir', '-p', '/usr/sbo/repo'); system('touch', $fname); } } +sub restore_perf_dummy { + if (!-e '/usr/sbo/distfiles/perf.dummy') { + system('mkdir', '-p', '/usr/sbo/distfiles'); + system('cp', "$RealBin/travis-deps/perf.dummy", '/usr/sbo/distfiles'); + } +} + # Restore original values when exiting END { if (%config) { |