diff options
author | Slack Coder <slackcoder@server.ky> | 2024-12-10 14:06:06 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-01-21 15:36:10 -0500 |
commit | ba81bf24d8df5153830f06deb7c2b780fe5c292f (patch) | |
tree | d8c0aefac933b7ed41e4b8faae75b9feaf0b9f1d /t/Test | |
parent | 82b061208df57c0d1d46b06ffa15ad6846db883b (diff) | |
download | sbotools2-ba81bf24d8df5153830f06deb7c2b780fe5c292f.tar.xz |
GPG verification
Diffstat (limited to 't/Test')
-rwxr-xr-x | t/Test/Execute.pm | 16 | ||||
-rw-r--r-- | t/Test/Sbotools.pm | 3 |
2 files changed, 11 insertions, 8 deletions
diff --git a/t/Test/Execute.pm b/t/Test/Execute.pm index 0d4798f..e319c2e 100755 --- a/t/Test/Execute.pm +++ b/t/Test/Execute.pm @@ -70,14 +70,7 @@ sub run { subtest $name => sub { plan tests => 2; - # 1: Test exit value - if (not defined $exit) { - SKIP: { skip "Expected exit value undefined", 1 } - } else { - is ($return, $exit, "$name - exit value"); - } - - # 2: Test output + # 1: Test output if (not defined $expected) { SKIP: { skip "Expected output undefined", 1 } } elsif (ref $expected eq 'Regexp') { @@ -88,6 +81,13 @@ sub run { } else { is ($output, $expected, "$name - output"); } + + # 2: Test exit value + if (not defined $exit) { + SKIP: { skip "Expected exit value undefined", 1 } + } else { + is ($return, $exit, "$name - exit value"); + } }; } diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm index 8be5536..6f181ea 100644 --- a/t/Test/Sbotools.pm +++ b/t/Test/Sbotools.pm @@ -25,6 +25,7 @@ our @EXPORT_OK = qw/ sboupgrade set_noclean set_distclean + set_gpg_verify set_jobs set_repo set_lo @@ -50,6 +51,7 @@ sub sboupgrade { script('sboupgrade', @_); } sub set_noclean { _set_config('NOCLEAN', @_); } sub set_distclean { _set_config('DISTCLEAN', @_); } +sub set_gpg_verify { _set_config('GPG_KEY', @_); } sub set_jobs { _set_config('JOBS', @_); } sub set_pkg_dir { _set_config('PKG_DIR', @_); } sub set_sbo_home { _set_config('SBO_HOME', @_); } @@ -73,6 +75,7 @@ sub set_repo { my %config; my %settings = ( DISTCLEAN => '-d', + GPG_KEY => '-g', JOBS => '-j', LOCAL_OVERRIDES => '-o', NOCLEAN => '-c', |