commit - fix test script

From: Jesper Skov (jskov@zoftcorp.dk)
Date: Mon Apr 29 2002 - 12:10:31 EDT

  • Next message: Dom Lachowicz: "Re: use gnu gettext"

    thinktwice:> ./RUN.pl hello.cmd
    Running test hello
     PASS:<CMP line 5>
     PASS:<CMP line 6>

    Much better. The script looks like this:

    # Small test of the RUN.pl script. Meta-test, if you will.
    new
    inserttext "Hello World"
    *CMP(1.abw)
    *CMP(2.txt)

    Which creates a new document, inserts the string "Hello World" and
    compares the .abw and .txt exported files with the hello.dat.1.abw and
    hello.dat.2.txt files.

    If they had differed, there'd been a FAIL:<> printed out instead,
    showing which line of the test a CMP failed.

    I'll be adding some more tests over the next weeks. And hopefully I can
    persuade Frank to fix autoconf so that 'make tests' will run these
    tests.

    Still much hacking to do though before it will be a really useful tool
    though.

    Cheers,
    Jesper

    Fix testing script
    CVS:
    ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: RUN.pl hello.cmd hello.dat.1.abw hello.dat.2.txt
    CVS:
    ----------------------------------------------------------------------



    This archive was generated by hypermail 2.1.4 : Mon Apr 29 2002 - 12:12:25 EDT