Commit 1c868042 authored by Niels Möller's avatar Niels Möller

* testsuite/Makefile.am (CLEANFILES): Delete test.canonical.

* testsuite/delegate-test: Don't use cmp -, use a temporary file
instead.
* testsuite/reduce-test: Likewise.

Rev: src/spki/testsuite/Makefile.am:1.24
Rev: src/spki/testsuite/delegate-test:1.6
Rev: src/spki/testsuite/reduce-test:1.3
parent 0877f49d
......@@ -20,7 +20,7 @@ include .dist_cdsa
EXTRA_DIST = testutils.c testutils.h $(TS_SH) \
run-tests setup-env $(dist_cdsa) key-1 key-1.pub key-2 key-2.pub
CLEANFILES = test.in test.out test.acl
CLEANFILES = test.in test.out test.acl test.canonical
# Files and directories used by the test cases.
distclean-local:
......
......@@ -12,7 +12,8 @@ die () {
check_sexp () {
file="$1"
shift
../../nettle/tools/sexp-conv -s canonical | cmp "$file" - || die "$@"
../../nettle/tools/sexp-conv -s canonical > test.canonical || die "sexp-conv failed"
cmp "$file" test.canonical || die "$@"
}
TAG1='(3:tag(1:*))'
......
......@@ -14,7 +14,8 @@ die () {
check_sexp () {
file="$1"
shift
../../nettle/tools/sexp-conv -s canonical | cmp "$file" - || die "$@"
../../nettle/tools/sexp-conv -s canonical > test.canonical || die "sexp-conv failed"
cmp "$file" test.canonical || die "$@"
}
conv >test.acl <<EOF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment