From: Martin Storsjö Date: Thu, 24 Nov 2011 11:02:02 +0000 (+0100) Subject: * testsuite/sexp-conv-test: Use $EMULATOR when running test X-Git-Tag: converted-master-branch-to-git~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09da241e16295d4e63f37eceed7860b2a465b753;p=thirdparty%2Fnettle.git * 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 --- diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in index 6a28d675..2638c09e 100644 --- a/testsuite/Makefile.in +++ b/testsuite/Makefile.in @@ -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 diff --git a/testsuite/sexp-conv-test b/testsuite/sexp-conv-test index a3470ab2..5b59cb71 100755 --- a/testsuite/sexp-conv-test +++ b/testsuite/sexp-conv-test @@ -14,7 +14,7 @@ print_nl () { test_advanced () { print_raw "$1" test.in - if ../tools/sexp-conv -s advanced test1.out ; then + if $EMULATOR ../tools/sexp-conv -s advanced 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 test1.out ; then + if $EMULATOR ../tools/sexp-conv -s hex 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 test1.out ; then + if $EMULATOR ../tools/sexp-conv -s transport 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 test1.out ; then + if $EMULATOR ../tools/sexp-conv -s canonical test1.out ; then true else exit 1