Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
b3893e56
Commit
b3893e56
authored
Oct 22, 2002
by
Niels Möller
Browse files
New test program.
Rev: src/nettle/examples/sexp-conv-test:1.1
parent
bb916d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/sexp-conv-test
0 → 100755
View file @
b3893e56
#! /bin/sh
if
[
-z
"
$srcdir
"
]
;
then
srcdir
=
`
pwd
`
fi
test_conv
()
{
# FIXME: echo -n not portable
echo
-n
"
$1
"
>
test.in
if
./sexp-conv <test.in
>
test1.out
;
then
true
else
exit
1
fi
echo
-n
"
$2
"
>
test2.out
if
cmp test1.out test2.out
;
then
true
else
exit
1
;
fi
}
test_conv
"3:foo"
"foo"
-a
test_conv
"4:3des"
'"3des"'
-a
test_conv
"(3:foo [bar]foo)"
"(3:foo[3:bar]3:foo)"
-c
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment