SchemeUnit unit tests running in SISC

Andrew Wilcox <schematics-dev-1nkB91yrSd/a/[email protected]> Wed, 4 May 2005 15:33:52 -0700 (PDT)
Newsgroups gmane.lisp.scheme.plt.schematics
Message-ID <[email protected]>
I reached a milestone today in the SchemeUnit port to SISC: SchemeUnit
unit tests are now running in SISC.

These include assert-test, assert-util-test, keyword-test, and
test-test.

Modules ported to SISC are text-ui, schemeunit, test, and the modules
they depend on.

Not ported are util and graphical-ui.

There are various caveats at this point.  SISC does not have source
code location information, so text-ui prints "unknown" for failed test
cases.  The port uses SRFI-34 Exception Handling for Programs, which
is loosely coupled to SISC's own exception handling system.  It works,
but it's not yet clear to me whether it will be useful to users who
want to test that their SISC code is throwing particular SISC
exceptions.

The port requires a couple of fixes to SISC to work.  One fix
involving SISC modules is already included in SISC 1.11.0-alpha.  The
other fix related to SRFI-35 has been checked into the SISC's CVS, but
hasn't been packaged in an SISC release yet.  Thus to run this code
you need to get SISC 1.11.0-alpha and then apply the following patch:

--- orig/src/sisc/libs/srfi/srfi-35.scm
+++ mod/src/sisc/libs/srfi/srfi-35.scm
@@ -15,8 +15,12 @@
     (condition type-field-alist->condition)
     &condition
     &message
+     message-condition?
+     condition-message
     &serious
-     &error)
+     serious-condition?
+     &error
+     error?)
  (import srfi-1)
  (import srfi-9)
  (import srfi-23)


The steps are:

   Fetch the SISC 1.11.0-alpha source from
   http://prdownloads.sourceforge.net/sisc/sisc-1.11.0-alpha.jar

   Use "jar xf sisc-1.11.0-alpha.jar"

   Apply the above patch

   Run "ant" to compile SISC.


The code may be browsed here:

  http://code.andrewwilcox.name/browse/dev/src/schemeunit/

and is available within a GNU Arch project named

    code-1nkB91yrSd/a/[email protected]/dev--a--0

inside the src/schemeunit directory.

This archive is published at:

    http://code.andrewwilcox.name/2005

and may be accessed from GNU Arch with commands such as:

    tla register-archive http://code.andrewwilcox.name/2005
    tla get code-1nkB91yrSd/a/[email protected]/dev--a--0

Andrew Wilcox


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20