From 97683acf70b2e1d9c903ca4b16dc9df9e9b97903 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 28 Sep 2003 11:22:30 +0000 Subject: [PATCH] * r4rstest.scm is the original test again, we add extra tests at build time in a generated file. * Fixed a $(srcdir) / $(builddir) confusion. git-svn-id: svn://svn.zoy.org/elk/trunk@219 55e467fa-43c5-0310-a8a2-de718669efc6 --- examples/tests/Makefile.am | 12 ++++++++---- examples/tests/r4rstest.scm | 1 - 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/tests/Makefile.am b/examples/tests/Makefile.am index df1faf9..b3fdd19 100644 --- a/examples/tests/Makefile.am +++ b/examples/tests/Makefile.am @@ -1,5 +1,5 @@ -CLEANFILES = $(allstamps) tmp1 tmp2 tmp3 +CLEANFILES = $(allstamps) mytest.scm tmp1 tmp2 tmp3 allstamps = stamp-r4rs @@ -8,8 +8,12 @@ all-local: $(allstamps) endif stamp-r4rs: $(top_builddir)/src/elk - rm -f $@ - -$(top_builddir)/src/elk -p .:$(top_srcdir)/scm -l r4rstest.scm - rm -f tmp1 tmp2 tmp3 + rm -f $@ mytest.scm + + sed -e 's/r4rstest/mytest/g' < $(srcdir)/r4rstest.scm > mytest.scm + echo '(test-cont) (test-sc4) (test-delay)' >> mytest.scm + + -$(top_builddir)/src/elk -p .:$(top_srcdir)/scm -l mytest.scm + rm -f mytest.scm tmp1 tmp2 tmp3 printf "" > $@ diff --git a/examples/tests/r4rstest.scm b/examples/tests/r4rstest.scm index 49a3c07..56e94ef 100644 --- a/examples/tests/r4rstest.scm +++ b/examples/tests/r4rstest.scm @@ -1226,5 +1226,4 @@ (newline) (display "(test-cont) (test-sc4) (test-delay)") (newline) -(test-cont) (test-sc4) (test-delay) "last item in file"