# -*-html-*-
#
# This file is part of Pretty Curved Privacy (pcp1).
#
# Copyright (C) 2013 T.Linden.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
# You can contact me by mail: .
#
pcp = ../src/pcp1
passwd = xxx
verbose = 1
include keys.cfg
prepare = rm -f vja; $pcp -V vja -K -I key-alicia-sec -x a
cmd = $pcp -V vja -p -j -x a -O testkeyvjapub.json
expect-file testkeyvjapub.json
cmd = cat testkeyvjapub.json
expect = /"Alicia"/
cmd = $pcp -V vja -s -j -x a -O testkeyvjasec.json
expect-file testkeyvjasec.json
cmd = cat testkeyvjasec.json
expect = /"Alicia"/
prepare = rm -f vjb; $pcp -V vjb -K -I key-bobby-sec -x b
cmd = $pcp -V vjb -K -I testkeyvjapub.json -j
expect /added/
cmd = $pcp -V vjb -l
expect = /Alicia/
prepare = rm -f vjc
cmd = $pcp -V vjc -K -I testkeyvjasec.json -x a -j
expect = /added/
cmd = $pcp -V vjc -l
expect = /Alicia/
cmd = $pcp -V vjb -t -j
expect = /"Alicia"/
cmd = $pcp -V vjb -t -j -i ${idalicia}
expect = /"Alicia"/
cmd = $pcp -V vjb -t -j -i ${idbobby}
expect = /"Bobby"/