Debian Codegraph @

src/testsuite/conv-3-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-3-test: Testing ssh-conv and sexp-conv with hex output"
21
22 ($srcdir/../ssh-conv --decode-with ../lsh-decode-key | \
23 "$SEXP_CONV" -s hex |tee test.out1) <<EOF
24 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEApUmWhj0f4TD/XcDW88zcKo1ZYBn09jT0RzP1aoPwKuzFbvupfbvKjPB3SC6r8cXTH0OY60EdfcQs1YmteIJNMEnWEvV9ZHPJYanU6dVSlajnbKwEhqrFMLlRuS4UKJQ67A5NFt0WV9DjYaLIzY5RmPJYci/C8bo+Pawj8r/j1As= [email protected]
25 EOF
26
27 cat >test.out2 <<EOF
28 (public-key (rsa-pkcs1-sha1 (n #00a54996863d1fe130ff5dc0d6f3ccdc2a8d5960
29 19f4f634f44733f56a83f02aecc56efba97dbbca
30 8cf077482eabf1c5d31f4398eb411d7dc42cd589
31 ad78824d3049d612f57d6473c961a9d4e9d55295
32 a8e76cac0486aac530b951b92e1428943aec0e4d
33 16dd1657d0e361a2c8cd8e5198f258722fc2f1ba
34 3e3dac23f2bfe3d40b#)
35 (e "#")))
36 EOF
37
38 compare_output "conv-3-test"