guile/test-suite/Makefile.am

217 lines
6.4 KiB
Text
Raw Normal View History

2004-01-06 21:47:09 +00:00
## Process this file with automake to produce Makefile.in.
##
## Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
## 2010, 2011 Software Foundation, Inc.
2004-01-06 21:47:09 +00:00
##
## This file is part of GUILE.
##
## GUILE is free software; you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as
## published by the Free Software Foundation; either version 3, or
## (at your option) any later version.
2004-01-06 21:47:09 +00:00
##
## GUILE is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Lesser General Public License for more details.
2004-01-06 21:47:09 +00:00
##
## You should have received a copy of the GNU Lesser General Public
## License along with GUILE; see the file COPYING.LESSER. If not,
## write to the Free Software Foundation, Inc., 51 Franklin Street,
## Fifth Floor, Boston, MA 02110-1301 USA
2004-01-06 21:47:09 +00:00
SUBDIRS = standalone vm
2003-03-25 02:14:06 +00:00
SCM_TESTS = tests/00-initial-env.test \
tests/alist.test \
tests/and-let-star.test \
tests/arbiters.test \
tests/arrays.test \
static opcodes; refactor program/objcode division; use new assembly pipeline * gdbinit: Untested attempts to get the stack fondling macros to deal with the new program representation. * libguile/frames.c (scm_vm_frame_arguments, scm_vm_frame_source) (scm_vm_frame_local_ref, scm_vm_frame_local_set_x): SCM_PROGRAM_DATA is a struct scm_objcode*. * libguile/instructions.h: * libguile/instructions.c: Hide the instruction table and the struct scm_instruction structure; all access to instructions now goes through procedures. This is because instructions are no longer in a packed array indexed by opcode. Also, declare a mask that all instructions should fit in. * libguile/objcodes.h: * libguile/objcodes.c: Rewrite so that object code directly maps its arity and length from its bytecode. This makes it unnecessary to keep this information in programs, allowing programs to be simple conses between the code (objcodes) and data (the object table and the closure variables). * libguile/programs.c (scm_make_program): Rework so that make-program takes objcode, an object table, and externals as arguments. It's much clearer this way, and we avoid malloc(). * libguile/stacks.c (is_vm_bootstrap_frame): Update for program/objcode changes. * libguile/vm-engine.c (vm_run): Initialize the jump table on the first run, with the opcodes declared in the instruction sources, and with bad instructions raising an error instead of wandering off into the Unknown. * libguile/vm-engine.h (FETCH_LENGTH): Always represent lengths as 3 bytes. The old code was too error-prone. (NEXT_JUMP): Mask the instruction with SCM_VM_INSTRUCTION_MASK. (NEW_FRAME): Update for program/objcode changes. * libguile/vm-expand.h (VM_DEFINE_FUNCTION, VM_DEFINE_INSTRUCTION) (VM_DEFINE_LOADER): Update so that we explicitly specify opcodes, so that we have a stable bytecode API. * libguile/vm-i-loader.c: Update license to LGPLv2+. Explicitly declare opcodes. (load-integer): Use an int instead of a long as the accumulator; still need to revisit this code at some point, I think. (load-program): Simplify, thankfully!! Just creates the objcode slice and rolls with it. * libguile/vm-i-scheme.c: Number the opcodes explicitly. * libguile/vm-i-system.c: Update license to LGPLv2+. Explicitly declare opcodes. (make-closure): Update for new program API. * libguile/vm.c (vm_make_boot_program): Update for new program/objcode API. Still a bit ugly. (scm_load_compiled_with_vm): Update for new program/objcode API. * module/language/assembly.scm (byte-length): Fix byte-length calculation for loaders, and load-program. (code-pack, code-unpack): Start to move things from (system vm conv) here. (object->code, code->object): More things from conv.scm. * module/language/glil.scm (<glil-program>): Add a new field, closure-level. (make-glil-program, compute-closure-level): Calculate the "closure level" when making a glil program. This is the maximum depth of external binding refs in this closure. (unparse-glil): Fix label serialization. * module/language/glil/compile-assembly.scm (make-meta): Prepend #f for the meta's object table, though maybe in the future we can avoid creating assembly in the first place. (assoc-ref-or-acons, object-index-and-alist): GRRR! Caught again by the different sets of arguments to assoc and assoc-ref! (glil->assembly): Attempt to make the <glil-program> case more readable, and fix the bugs. Sorry I don't know how to comment this change any more than this. (glil->assembly): For <glil-module> serialize the whole key, not just the name. (dump-object): subprogram-code is already a list. Serialize integers as strings, not u8vectors. Fix the order of lists and vectors. * module/language/glil/spec.scm (glil): Switch orders, so we prefer glil -> assembly -> objcode. Actually glil->objcode doesn't work any more, needs to be removed I think. * module/language/objcode/spec.scm (objcode->value): s/objcode->program/make-program/. * module/language/scheme/inline.scm: Add acons inline. * module/system/vm/conv.scm (make-byte-decoder): Skip the first 8 bytes, they are header. Handle subprograms properly. Still needs help though. (decode-length): Lengths are always 3 bytes now. * module/system/vm/disasm.scm: Superficial changes to keep things working. I'd like to fix this better in the future. * module/system/vm/frame.scm (bootstrap-frame?): Fixes for program-bytecode. * module/system/vm/program.scm: Export make-program. It's program-objcode now, no more program-bytecode. * module/system/vm/vm.scm (vm-load): Use make-program. * test-suite/tests/asm-to-bytecode.test: New test, very minimal. * module/system/vm/objcode.scm: Export word-size, byte-order, and write-objcode.
2009-01-29 21:09:04 +01:00
tests/asm-to-bytecode.test \
tests/bit-operations.test \
tests/bitvectors.test \
tests/brainfuck.test \
tests/bytevectors.test \
tests/c-api.test \
tests/chars.test \
tests/coding.test \
tests/common-list.test \
tests/control.test \
2004-01-07 18:17:04 +00:00
tests/continuations.test \
tests/coverage.test \
tests/curried-definitions.test \
tests/ecmascript.test \
tests/elisp.test \
tests/elisp-compiler.test \
tests/elisp-reader.test \
tests/eval.test \
tests/eval-string.test \
tests/exceptions.test \
tests/filesys.test \
tests/fluids.test \
tests/foreign.test \
tests/format.test \
tests/fractions.test \
2006-10-09 23:40:48 +00:00
tests/ftw.test \
tests/future.test \
tests/gc.test \
tests/getopt-long.test \
tests/goops.test \
tests/guardians.test \
tests/hash.test \
tests/hooks.test \
2006-11-18 18:14:55 +00:00
tests/i18n.test \
tests/import.test \
tests/interp.test \
tests/keywords.test \
tests/list.test \
tests/load.test \
tests/match.test \
tests/match.test.upstream \
2006-04-16 23:37:40 +00:00
tests/modules.test \
tests/multilingual.nottest \
tests/net-db.test \
tests/numbers.test \
tests/optargs.test \
tests/options.test \
tests/parameters.test \
tests/print.test \
tests/procprop.test \
tests/procs.test \
tests/poe.test \
tests/popen.test \
tests/popen-child.scm \
tests/ports.test \
tests/posix.test \
2004-01-06 21:45:48 +00:00
tests/q.test \
tests/r4rs.test \
tests/r5rs_pitfall.test \
tests/r6rs-arithmetic-bitwise.test \
tests/r6rs-arithmetic-fixnums.test \
tests/r6rs-arithmetic-flonums.test \
tests/r6rs-base.test \
tests/r6rs-conditions.test \
tests/r6rs-control.test \
tests/r6rs-enums.test \
tests/r6rs-eval.test \
tests/r6rs-exceptions.test \
tests/r6rs-files.test \
tests/r6rs-hashtables.test \
tests/r6rs-lists.test \
tests/r6rs-ports.test \
tests/r6rs-records-inspection.test \
tests/r6rs-records-procedural.test \
tests/r6rs-records-syntactic.test \
tests/r6rs-unicode.test \
tests/rnrs-libraries.test \
tests/ramap.test \
tests/rdelim.test \
tests/reader.test \
tests/receive.test \
tests/regexp.test \
tests/session.test \
tests/signals.test \
tests/socket.test \
tests/srcprop.test \
tests/srfi-1.test \
tests/srfi-6.test \
tests/srfi-10.test \
tests/srfi-11.test \
tests/srfi-13.test \
tests/srfi-14.test \
tests/srfi-19.test \
tests/srfi-26.test \
tests/srfi-27.test \
2004-06-20 14:21:07 +00:00
tests/srfi-31.test \
2003-04-30 00:06:33 +00:00
tests/srfi-34.test \
2007-08-11 10:08:10 +00:00
tests/srfi-35.test \
tests/srfi-37.test \
tests/srfi-38.test \
2005-01-01 22:45:32 +00:00
tests/srfi-39.test \
tests/srfi-42.test \
tests/srfi-45.test \
tests/srfi-60.test \
tests/srfi-67.test \
2007-12-03 12:36:12 +00:00
tests/srfi-69.test \
2008-04-26 19:34:37 +02:00
tests/srfi-88.test \
tests/srfi-4.test \
tests/srfi-9.test \
2009-12-20 23:11:34 +01:00
tests/statprof.test \
tests/strings.test \
2006-06-13 07:48:42 +00:00
tests/structs.test \
2009-12-20 23:11:34 +01:00
tests/sxml.fold.test \
tests/sxml.match.test \
tests/sxml.simple.test \
2009-12-20 23:11:34 +01:00
tests/sxml.ssax.test \
tests/sxml.transform.test \
tests/sxml.xpath.test \
tests/symbols.test \
tests/syncase.test \
tests/syntax.test \
2009-12-20 23:11:34 +01:00
tests/texinfo.test \
tests/texinfo.docbook.test \
tests/texinfo.serialize.test \
tests/texinfo.string-utils.test \
tests/threads.test \
tests/time.test \
tests/tree-il.test \
tests/version.test \
tests/vlist.test \
tests/weaks.test \
tests/web-http.test \
tests/web-request.test \
tests/web-response.test \
tests/web-uri.test
EXTRA_DIST = \
guile-test \
lib.scm \
$(SCM_TESTS) \
tests/rnrs-test-a.scm
ChangeLog-2008
2010-03-31 00:41:28 +02:00
# Test suite of Dominique Boucher's `lalr-scm'.
# From http://code.google.com/p/lalr-scm/.
LALR_TESTS = \
lalr/test-glr-associativity.scm \
lalr/test-glr-basics-01.scm \
lalr/test-glr-basics-02.scm \
lalr/test-glr-basics-03.scm \
lalr/test-glr-basics-04.scm \
lalr/test-glr-basics-05.scm \
lalr/test-glr-script-expression.scm \
lalr/test-glr-single-expressions.scm \
\
lalr/test-lr-associativity-01.scm \
lalr/test-lr-basics-01.scm \
lalr/test-lr-basics-02.scm \
lalr/test-lr-basics-03.scm \
lalr/test-lr-basics-04.scm \
lalr/test-lr-basics-05.scm \
lalr/test-lr-error-recovery-01.scm \
lalr/test-lr-error-recovery-02.scm \
lalr/test-lr-no-clause.scm \
lalr/test-lr-script-expression.scm \
lalr/test-lr-single-expressions.scm
# Tests not listed in `run-guile-test.sh' and which should not be run.
LALR_EXTRA = \
lalr/test-lr-associativity-02.scm \
lalr/test-lr-associativity-03.scm \
lalr/test-lr-associativity-04.scm
# Test framework.
LALR_EXTRA += \
lalr/common-test.scm \
lalr/glr-test.scm \
lalr/run-guile-test.sh
TESTS = $(LALR_TESTS)
TESTS_ENVIRONMENT = \
@LOCALCHARSET_TESTS_ENVIRONMENT@ \
$(top_builddir)/meta/guile --no-auto-compile
2010-03-31 00:41:28 +02:00
EXTRA_DIST += $(LALR_EXTRA) $(LALR_TESTS) tests/sxml-match-tests.ss