]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/regressions/t/41kc-unlock-referral.t
5 BEGIN { require 't/security.pl' };
6 plan_security tests
=> 7;
8 $ENV{HOME
}="/tmp/test$$";
9 ok
(mkdir($ENV{HOME
}), 'setup home');
10 my $source = "$ENV{HOME}/source";
11 my $dest = "$ENV{HOME}/dest";
12 is_output
('security', 'create-keychain', ['-p', 'test', $source],
15 is_output
('security', 'create-keychain', ['-p', 'test', $dest],
19 skip
"systemkeychain brings up UI", 1;
21 is_output
('systemkeychain', '-k', [$dest, '-s', $source],
25 is_output
('security', 'lock-keychain', [$source],
29 skip
"systemkeychain bring up UI", 1;
31 is_output
('security', 'unlock-keychain', ['-u', $source],
33 'unlock source w/ referal');
35 ok
(system("rm -rf '$ENV{HOME}'") eq 0, 'cleanup home');