Debian Codegraph @

src/testsuite/conv-2-test

raw
1 #! /bin/sh
2
3 # Tests the conversion programs
4
5 if [ -z "$srcdir" ] ; then
6 srcdir=`pwd`
7 fi
8
9 . $srcdir/functions.sh
10
11 # Keep silent unless -v is used.
12
13 if [ x$1 != x-v ]; then
14 exec 2>/dev/null
15 fi
16
17 # All output is diagnostic
18 exec 1>&2
19
20 echo "conv-2-test: Testing ssh-conv and sexp-conv"
21
22 ($srcdir/../ssh-conv --decode-with ../lsh-decode-key | "$SEXP_CONV" |tee test.out1) <<EOF
23 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEApUmWhj0f4TD/XcDW88zcKo1ZYBn09jT0RzP1aoPwKuzFbvupfbvKjPB3SC6r8cXTH0OY60EdfcQs1YmteIJNMEnWEvV9ZHPJYanU6dVSlajnbKwEhqrFMLlRuS4UKJQ67A5NFt0WV9DjYaLIzY5RmPJYci/C8bo+Pawj8r/j1As= [email protected]
24 EOF
25
26 cat >test.out2 <<EOF
27 (public-key (rsa-pkcs1-sha1 (n |AKVJloY9H+Ew/13A1vPM3CqNWWAZ9PY09Ecz9WqD
28 8CrsxW77qX27yozwd0guq/HF0x9DmOtBHX3ELNWJ
29 rXiCTTBJ1hL1fWRzyWGp1OnVUpWo52ysBIaqxTC5
30 UbkuFCiUOuwOTRbdFlfQ42GiyM2OUZjyWHIvwvG6
31 Pj2sI/K/49QL|)
32 (e "#")))
33 EOF
34
35 compare_output "conv-2-test"