From ba81bf24d8df5153830f06deb7c2b780fe5c292f Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Tue, 10 Dec 2024 14:06:06 -0500 Subject: GPG verification --- t/18-snap.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/18-snap.t') 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 -- cgit v1.2.3