##// END OF EJS Templates
test-gpg: start gpg-agent under control of the test runner...
Yuya Nishihara -
r29790:94fb0458 default
parent child Browse files
Show More
@@ -349,6 +349,10 b' def has_tla():'
349 def has_gpg():
349 def has_gpg():
350 return matchoutput('gpg --version 2>&1', br'GnuPG')
350 return matchoutput('gpg --version 2>&1', br'GnuPG')
351
351
352 @check("gpg2", "gpg client v2")
353 def has_gpg2():
354 return matchoutput('gpg --version 2>&1', br'GnuPG[^0-9]+2\.')
355
352 @check("unix-permissions", "unix-style permissions")
356 @check("unix-permissions", "unix-style permissions")
353 def has_unix_permissions():
357 def has_unix_permissions():
354 d = tempfile.mkdtemp(dir='.', prefix=tempprefix)
358 d = tempfile.mkdtemp(dir='.', prefix=tempprefix)
@@ -12,6 +12,13 b' Test the GPG extension'
12 $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME
12 $ GNUPGHOME="$TESTTMP/gpg"; export GNUPGHOME
13 $ cp -R "$TESTDIR/gpg" "$GNUPGHOME"
13 $ cp -R "$TESTDIR/gpg" "$GNUPGHOME"
14
14
15 Start gpg-agent, which is required by GnuPG v2
16
17 #if gpg2
18 $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
19 > >> $DAEMON_PIDS
20 #endif
21
15 $ hg init r
22 $ hg init r
16 $ cd r
23 $ cd r
17 $ echo foo > foo
24 $ echo foo > foo
General Comments 0
You need to be logged in to leave comments. Login now