10-version.t (864B)
1 #!/usr/bin/env perl 2 3 use 5.16.0; 4 use strict; 5 use warnings FATAL => 'all'; 6 use Test::More; 7 use Capture::Tiny qw/ capture_merged /; 8 use FindBin '$RealBin'; 9 use lib $RealBin; 10 use lib "$RealBin/../SBO-Lib/lib"; 11 use Test::Sbotools qw/ make_slackbuilds_txt sbocheck sboclean sboconfig sbofind sboinstall sboremove sbosnap sboupgrade /; 12 use SBO::Lib; 13 14 plan tests => 8; 15 16 make_slackbuilds_txt(); 17 18 my $version = $SBO::Lib::VERSION; 19 my $ver_text = <<"VERSION"; 20 sbotools version $version 21 VERSION 22 23 # 1-8: test -v output of sbo* scripts 24 sbocheck '-v', { expected => $ver_text }; 25 sboclean '-v', { expected => $ver_text }; 26 sboconfig '-v', { expected => $ver_text }; 27 sbofind '-v', { expected => $ver_text }; 28 sboinstall '-v', { expected => $ver_text }; 29 sboremove '-v', { expected => $ver_text }; 30 sbosnap '-v', { expected => $ver_text }; 31 sboupgrade '-v', { expected => $ver_text }; 32