sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 25402dbdf304e25e6bbf92a6efda5f855c80303b
parent 362b6c71c2aebca8ffeef1718e7cd50e9563d65b
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sun, 10 Jul 2016 00:14:16 +0200

16-clean.t: test sboupgrade -d TRUE

Diffstat:
Mt/16-clean.t | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/t/16-clean.t b/t/16-clean.t @@ -11,7 +11,7 @@ use Test::Sbotools qw/ make_slackbuilds_txt set_distclean set_noclean set_lo sbo use SBO::Lib; use File::Temp 'tempdir'; -plan tests => 16; +plan tests => 17; my $sboname = "nonexistentslackbuild"; my $perf = "/usr/sbo/distfiles/perf.dummy"; @@ -93,3 +93,12 @@ set_lo "$RealBin/LO2"; sboupgrade qw/ -c TRUE nonexistentslackbuild /, { input => "y\ny", test => 0 }; ok (-e "/tmp/SBo/$sboname-1.1", "$sboname-1.1 exists when NOCLEAN set to true in sboupgrade."); cleanup(); + +# 17: sboupgrade -d TRUE +set_lo "$RealBin/LO"; +sboinstall qw/ -r nonexistentslackbuild /, { test => 0 }; +set_lo "$RealBin/LO2"; +sboupgrade qw/ -d TRUE nonexistentslackbuild /, { input => "y\ny", test => 0 }; +ok (!-e $perf, "perf.dummy cleaned after upgrade with -d."); +restore_perf_dummy(); +cleanup();