Skip to content
Snippets Groups Projects
Commit 09da241e authored by Martin Storsjö's avatar Martin Storsjö Committed by Niels Möller
Browse files

* testsuite/sexp-conv-test: Use $EMULATOR when running test

programs. Also ignore \r for output in the non-canonical output
formats.

* testsuite/Makefile.in (check): Pass $(EMULATOR) in the
environment of run-tests.

Rev: nettle/testsuite/Makefile.in:1.15
Rev: nettle/testsuite/sexp-conv-test:1.4
parent 39c32d9f
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) \
# The PATH update is for locating dlls on w*ndows.
check: $(TS_ALL) $(srcdir)/run-tests
LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \
$(srcdir)/run-tests $(TS_ALL)
EMULATOR="$(EMULATOR)" $(srcdir)/run-tests $(TS_ALL)
Makefile: $(srcdir)/Makefile.in ../config.status
......
......@@ -14,7 +14,7 @@ print_nl () {
test_advanced () {
print_raw "$1" test.in
if ../tools/sexp-conv -s advanced <test.in >test1.out ; then
if $EMULATOR ../tools/sexp-conv -s advanced <test.in | tr -d '\r' >test1.out ; then
true
else
exit 1
......@@ -30,7 +30,7 @@ test_advanced () {
test_advanced_hex () {
print_raw "$1" test.in
if ../tools/sexp-conv -s hex <test.in >test1.out ; then
if $EMULATOR ../tools/sexp-conv -s hex <test.in | tr -d '\r' >test1.out ; then
true
else
exit 1
......@@ -46,7 +46,7 @@ test_advanced_hex () {
test_transport () {
print_raw "$1" test.in
if ../tools/sexp-conv -s transport <test.in >test1.out ; then
if $EMULATOR ../tools/sexp-conv -s transport <test.in | tr -d '\r' >test1.out ; then
true
else
exit 1
......@@ -62,7 +62,7 @@ test_transport () {
test_canonical () {
print_raw "$1" test.in
if ../tools/sexp-conv -s canonical <test.in >test1.out ; then
if $EMULATOR ../tools/sexp-conv -s canonical <test.in >test1.out ; then
true
else
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment