Changeset 27388 in project


Ignore:
Timestamp:
09/07/12 23:09:35 (9 years ago)
Author:
felix winkelmann
Message:

updated tests

Location:
release/4/spock/stuff
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • release/4/spock/stuff/Makefile

    r27294 r27388  
    1010SPOCK_DIR = `csi -p "(repository-path)"`/spock
    1111
    12 .PHONY: check checkprograms checklibrary threads
     12.PHONY: check checkprograms checklibrary threads makelibrary makeprograms
    1313
    1414
    1515check: checklibrary checkprograms
    1616
    17 checklibrary: test.scm
     17checklibrary: makelibrary
    1818        @echo "======================================== library tests (debug)"
     19        $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime-debug.js -f tests/library-test-debug.js
     20        @echo "======================================== library tests (debug + strict)"
     21        $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime-debug.js -f tests/library-test-strict.js
     22        @echo "======================================== library tests (default)"
     23        $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime.js -f tests/library-test.js
     24
     25makelibrary: test.scm
    1926        @$(SPOCK) $(SPOCK_OPTIONS) -debug test.scm library-tests.scm test-end.scm \
    2027          -o tests/library-test-debug.js
    21         $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime-debug.js -f tests/library-test-debug.js
    22         @echo "======================================== library tests (debug + strict)"
    2328        @$(SPOCK) $(SPOCK_OPTIONS) -debug -strict test.scm library-tests.scm test-end.scm \
    2429          -o tests/library-test-strict.js
    25         $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime-debug.js -f tests/library-test-strict.js
    26         @echo "======================================== library tests (default)"
    2730        @$(SPOCK) $(SPOCK_OPTIONS) test.scm library-tests.scm test-end.scm \
    2831          -o tests/library-test.js
    29         $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime.js -f tests/library-test.js
    3032
    31 checkprograms: test.scm
     33checkprograms: makeprograms
    3234        @for x in `ls tests/*.scm`; do \
    3335          tests/runtest.sh $(SPOCK) $$x $(SPOCK_OPTIONS) -debug \
    3436            -o tests/`basename $$x .scm`.js || exit 1; \
    3537          $(TIME) $(JS) -f $(SPOCK_DIR)/spock-runtime-debug.js -f tests/`basename $$x .scm`.js || exit 1; \
     38        done
     39
     40makeprograms: test.scm
     41        @for x in `ls tests/*.scm`; do \
     42          tests/runtest.sh $(SPOCK) $$x $(SPOCK_OPTIONS) -debug \
     43            -o tests/`basename $$x .scm`.js || exit 1; \
    3644        done
    3745
  • release/4/spock/stuff/tests/test.html

    r27294 r27388  
    33<html>
    44  <head>
    5     <script src="spock-runtime.js" type="text/javascript">
     5    <script src="spock-runtime-min.js" type="text/javascript">
    66    </script>
    77    <script type="text/javascript">
  • release/4/spock/stuff/threads.html

    r27294 r27388  
    1313  <body>
    1414    <canvas id="canvas" width="600" height="600"></canvas>
    15     <script src="spock-runtime.js"></script>
     15    <script src="spock-runtime-min.js"></script>
    1616    <script src="threads.js"></script>
    1717  </body>
Note: See TracChangeset for help on using the changeset viewer.