Debian Codegraph @

src/testsuite/write-key-2-test

raw
1 #! /bin/sh
2
3 # Tests the key generation programs
4
5 echo Testing lsh-writekey with no argument
6
7 if [ -z "$srcdir" ] ; then
8 srcdir=`pwd`
9 fi
10
11 . $srcdir/functions.sh
12
13 rm -rf temphome && mkdir temphome
14 HOME="`pwd`/temphome" ../lsh-writekey -c none < $srcdir/key-1.private \
15 && [ -s "temphome/.lsh/identity" -a -s "temphome/.lsh/identity.pub" ] && test_success
16
17 test_done