File: export_keys.t

package info (click to toggle)
libgnupg-interface-perl 0.52-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,268 kB
  • ctags: 474
  • sloc: perl: 3,621; makefile: 10; sh: 1
file content (37 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/perl -w
#
# $Id: export_keys.t,v 1.6 2001/05/03 06:00:06 ftobin Exp $
#

use strict;
use English qw( -no_match_vars );

use lib './t';
use MyTest;
use MyTestSpecific;

TEST
{
    reset_handles();

    my $pid = $gnupg->export_keys( handles      => $handles,
                                   command_args => '0x93AFC4B1B0288A104996B44253AE596EF950DA9C' );
    close $stdin;
    waitpid $pid, 0;

    return $CHILD_ERROR == 0;
};


TEST
{
    reset_handles();

    $handles->stdout( $texts{temp}->fh() );
    $handles->options( 'stdout' )->{direct} = 1;

    my $pid = $gnupg->export_keys( handles            => $handles,
                                   command_args => '0x93AFC4B1B0288A104996B44253AE596EF950DA9C' );
    waitpid $pid, 0;
    return $CHILD_ERROR == 0;
};