tests/test-gpg.t
changeset 29873 80ba176bad62
parent 29791 28591876fa63
child 45030 f58928715d0c
equal deleted inserted replaced
29872:58db005d870e 29873:80ba176bad62
    10   > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb
    10   > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb
    11   > EOF
    11   > EOF
    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, and migrate secret keys
    15 Start gpg-agent, which is required by GnuPG v2
       
    16 
       
    17 #if gpg21
       
    18   $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
       
    19   > >> $DAEMON_PIDS
       
    20 #endif
       
    21 
       
    22 and migrate secret keys
    16 
    23 
    17 #if gpg2
    24 #if gpg2
    18   $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
       
    19   > >> $DAEMON_PIDS
       
    20   $ gpg --no-permission-warning --no-secmem-warning --list-secret-keys \
    25   $ gpg --no-permission-warning --no-secmem-warning --list-secret-keys \
    21   > > /dev/null 2>&1
    26   > > /dev/null 2>&1
    22 #endif
    27 #endif
    23 
    28 
    24   $ hg init r
    29   $ hg init r