aboutsummaryrefslogtreecommitdiff
path: root/t/18-snap.t
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-12-10 14:06:06 -0500
committerSlack Coder <slackcoder@server.ky>2025-01-21 15:36:10 -0500
commitba81bf24d8df5153830f06deb7c2b780fe5c292f (patch)
treed8c0aefac933b7ed41e4b8faae75b9feaf0b9f1d /t/18-snap.t
parent82b061208df57c0d1d46b06ffa15ad6846db883b (diff)
downloadsbotools2-ba81bf24d8df5153830f06deb7c2b780fe5c292f.tar.xz
GPG verification
Diffstat (limited to 't/18-snap.t')
-rwxr-xr-xt/18-snap.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/18-snap.t b/t/18-snap.t
index 0b2fdb1..2e028a1 100755
--- a/t/18-snap.t
+++ b/t/18-snap.t
@@ -7,7 +7,7 @@ use Test::More;
use Capture::Tiny qw/ capture_merged /;
use FindBin '$RealBin';
use lib $RealBin;
-use Test::Sbotools qw/ sbosnap set_repo set_sbo_home /;
+use Test::Sbotools qw/ sbosnap set_gpg_verify set_repo set_sbo_home /;
use File::Temp 'tempdir';
plan tests => 4;
@@ -23,6 +23,7 @@ Options:
Commands:
fetch: initialize a local copy of the slackbuilds.org tree.
+ import-key [path or url]: import GPG for verifying the slackbuilds.org tree. Defaults to the key shipped with sbotools2.
update: update an existing local copy of the slackbuilds.org tree.
(generally, you may prefer "sbocheck" over "sbosnap update")
@@ -36,6 +37,7 @@ sbosnap 'invalid', { exit => 1, expected => $usage };
# 3: sbosnap update when /usr/sbo/repo is empty
my $tmp = tempdir(CLEANUP => 1);
+set_gpg_verify('FALSE');
set_repo("file://$tmp");
capture_merged { system <<"END"; };
cd $tmp