tests/test-gpg.t
changeset 29791 28591876fa63
parent 29790 94fb0458a791
child 29873 80ba176bad62
equal deleted inserted replaced
29790:94fb0458a791 29791:28591876fa63
    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
    15 Start gpg-agent, which is required by GnuPG v2, and migrate secret keys
    16 
    16 
    17 #if gpg2
    17 #if gpg2
    18   $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
    18   $ gpg-connect-agent -q --subst /serverpid '/echo ${get serverpid}' /bye \
    19   > >> $DAEMON_PIDS
    19   > >> $DAEMON_PIDS
       
    20   $ gpg --no-permission-warning --no-secmem-warning --list-secret-keys \
       
    21   > > /dev/null 2>&1
    20 #endif
    22 #endif
    21 
    23 
    22   $ hg init r
    24   $ hg init r
    23   $ cd r
    25   $ cd r
    24   $ echo foo > foo
    26   $ echo foo > foo