src/testsuite/keygen-2-test
raw| 1 | #! /bin/sh |
| 2 | |
| 3 | # Tests the key generation programs |
| 4 | |
| 5 | echo Testing lsh-keygen RSA key generation |
| 6 | |
| 7 | if [ -z "$srcdir" ] ; then |
| 8 | srcdir=`pwd` |
| 9 | fi |
| 10 | |
| 11 | . $srcdir/functions.sh |
| 12 | |
| 13 | rm -f foo foo.pub |
| 14 | ../lsh-keygen -a rsa -l 777 | ../lsh-writekey -c none -o foo \ |
| 15 | && "$SEXP_CONV" < foo && [ -s foo -a -s foo.pub ] && test_success |
| 16 | |
| 17 | test_done |