Stephen Compall wrote:
Paolo Bonzini wrote:
In addition, I wrote some unit tests but didn't have the patience to put them in SUnit format.

smalltalk--backstage--2.2
patch-21
    split zlib tests into new file
patch-22
    convert zlib tests to SUnit

Attached is zlibtests.st.

I committed a similar patch. What I do is putting zlibtests.st in packages.xml.in like this:

  <package>
    <name>ZLib</name>
    <sunit>ZlibStreamTest.*</sunit>

    <filein>PipeStream.st</filein>
    <filein>zlib.st</filein>
    <filein>zlibtests.st</filein>
    <module>zlib</module>
    <directory>examples</directory>

    <file>PipeStream.st</file>
    <file>zlib.st</file>
    <file>zlibtests.st</file>
  </package>

which also takes care of distributing the file in the .tar.gz. (It is suboptimal to load the tests in the image, but I cannot do this until I get round to using Mike's XML parser in the PackageLoader).

Then, thanks to the new testing infrastructure I can simply add

AT_OPTIONAL_PACKAGE_TEST([ZLib])

to testsuite.at.

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to