Commit 76a230e0 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoît Perrot  <benoit@lrde.epita.fr>

	Update test suite machinery.
	
	* tests/nolimips-check:
	Rename PSYFLAGS to NOLFLAGS.
	* tests/generate-ref.mk:
	Distribute reference output files.
	* tests/common.mk,
	* tests/lexical/Makefile.am, tests/lexical/check-lexical,
	* tests/runtime/Makefile.am, tests/runtime/check-runtime,
	* tests/syntax/Makefile.am, tests/syntax/check-syntax, 
	* tests/good/Makefile.am, tests/good/check-good,
	* tests/solve/Makefile.am, tests/solve/check-solve,
	* tests/unlimited/Makefile.am, tests/unlimited/check-unlimited,
	Use automake's TESTS_ENVIRONMENT variable to set Nolimips' flags.
	
parent 6bac5334
2004-06-27 Benot Perrot <benoit@lrde.epita.fr>
Update test suite machinery.
* tests/nolimips-check:
Rename PSYFLAGS to NOLFLAGS.
* tests/generate-ref.mk:
Distribute reference output files.
* tests/common.mk,
* tests/lexical/Makefile.am, tests/lexical/check-lexical,
* tests/runtime/Makefile.am, tests/runtime/check-runtime,
* tests/syntax/Makefile.am, tests/syntax/check-syntax,
* tests/good/Makefile.am, tests/good/check-good,
* tests/solve/Makefile.am, tests/solve/check-solve,
* tests/unlimited/Makefile.am, tests/unlimited/check-unlimited,
Use automake's TESTS_ENVIRONMENT variable to set Nolimips' flags.
2004-06-25 Benot Perrot <benoit@lrde.epita.fr>
Make Nolimips compile on OS X.
......
......@@ -2,7 +2,7 @@
REF_FILES = $(ASM_FILES:.s=.ref)
OUT_FILES = $(ASM_FILES:.s=.out)
CLEANFILES = *~ $(REF_FILES) $(OUT_FILES)
CLEANFILES = *~ $(OUT_FILES)
### Machinery
EXTRA_DIST = check-$(MODULE)
......@@ -11,5 +11,7 @@ check_SCRIPTS = check-$(MODULE)
TESTS_ENVIRONMENT = \
top_builddir="$(top_builddir)" \
top_srcdir="$(top_srcdir)" \
srcdir="$(srcdir)"
srcdir="$(srcdir)" \
NOLFLAGS="$(NOLFLAGS)" \
NOLIMIPS="$(top_builddir)/src/nolimips"
TESTS = check-$(MODULE)
......@@ -5,6 +5,8 @@ NOLIMIPS = nolimips
if test ! -f $$input; then \
input=/dev/null; \
fi; \
$(NOLIMIPS) $(PSYFLAGS) $< <$$input >$@
$(NOLIMIPS) $(NOLFLAGS) $< <$$input >$@
BUILT_SOURCES := $(BUILT_SOURCES) $(REF_FILES)
EXTRA_DIST += $(REF_FILES)
MAINTAINERCLEANFILES = $(REF_FILES)
\ No newline at end of file
......@@ -19,9 +19,10 @@ INPUT_FILES = \
dist_noinst_DATA = $(ASM_FILES) $(INPUT_FILES)
NOLFLAGS = --nop-after-branch --execute
### Machinery
MODULE=good
include ../common.mk
PSYFLAGS=--nop-after-branch --execute
include ../generate-ref.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS="--nop-after-branch --execute" \
$top_srcdir/tests/nolimips-check 0 good
......@@ -7,6 +7,8 @@ ASM_FILES = \
dist_noinst_DATA = $(ASM_FILES)
NOLFLAGS = --parse
### Machinery
MODULE = lexical
include ../common.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS=--parse \
$top_srcdir/tests/nolimips-check 2 lexical
......@@ -33,7 +33,7 @@ for STDASM in $SRCDIR/*.s; do
echo -n "> Testing $ASM:"
$NOLIMIPS $PSYFLAGS $STDASM <$STDIN >$STDOUT 2>&1
$NOLIMIPS $NOLFLAGS $STDASM <$STDIN >$STDOUT 2>&1
if test $? -ne $EXIT_STATUS; then
fail
......
......@@ -5,6 +5,8 @@ ASM_FILES = \
dist_noinst_DATA = $(ASM_FILES)
NOLFLAGS = --nop-after-branch --execute
### Machinery
MODULE = runtime
include ../common.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS="--nop-after-branch --execute" \
$top_srcdir/tests/nolimips-check 5 runtime
......@@ -5,6 +5,8 @@ ASM_FILES = \
dist_noinst_DATA = $(ASM_FILES)
NOLFLAGS = --prg-solve
### Machinery
MODULE = solve
include ../common.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS=--prg-solve \
$top_srcdir/tests/nolimips-check 4 solve
......@@ -5,6 +5,8 @@ ASM_FILES = \
dist_noinst_DATA = $(ASM_FILES)
NOLFLAGS = --parse
### Machinery
MODULE = syntax
include ../common.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS=--parse \
$top_srcdir/tests/nolimips-check 3 syntax
......@@ -4,9 +4,10 @@ ASM_FILES = \
dist_noinst_DATA = $(ASM_FILES)
NOLFLAGS = --unlimited-regs --nop-after-branch --execute
### Machinery
MODULE=unlimited
include ../common.mk
PSYFLAGS=--unlimited-regs --nop-after-branch --execute
include ../generate-ref.mk
#!/bin/sh
NOLIMIPS=$top_builddir/src/nolimips \
PSYFLAGS="--unlimited-regs --nop-after-branch --execute" \
$top_srcdir/tests/nolimips-check 0 unlimited
Supports Markdown
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