automated tests for the compiler

Mildred Ki'Lya mildred593 at online.fr
Fri Oct 9 23:22:15 UTC 2009


Hi,

Just to tel you that I created a script on the compiler repository
(run-tests.sh) that automatically run tests i the tests directory. The
tests must be described in a subdirectory each using a make.lip file.

Just look at it:
http://git.debian.org/?p=lisaac/compiler.git;a=tree;f=tests

The report is something like:

Add to PATH: /home/mildred/Projects/Lisaac/compiler/bin
Add to PATH: /home/mildred/Projects/Lisaac/compiler

************************** tests/ambiguous_protoname 
**************************
Test if the error message contains non ambiguous prototype names
Test also if the compiler choose the nearer prototype in case of
conflicting prototype names

 - Compilation: 1
 - Expected:    Slot `toto' not found in `AMBIGUOUS_PROTONAME.PROTO'.

Depending pass: ..--SEMANTIC---------
Slot `toto' not found in `DIR2.PROTO'.
Line 15 column 11 in
MAIN(/home/mildred/Projects/Lisaac/compiler/tests/ambiguous_protoname/main.li):
    a0.toto;
           ^
                                    error:
1                                   
********************************************************************************


***************************** tests/boolean_test3 
*****************************
Test that ( + b:BOOLEAN; b == TRUE) compiles

 - Compilation: ok
                                      
ok                                      
********************************************************************************


************************* tests/strict_type_parameter 
*************************
Test if a Strict parameter type gives you the dynamic type

 - Compilation: ok
 - Execution:   1
 - Expected:    dynamic_type = STRING_CONSTANT

dynamic_type = ABSTRACT_STRING
                                    error:
1                                   
********************************************************************************


*** FAILURE ***
 - tests/ambiguous_protoname
 - tests/strict_type_parameter


Mildred

-- 
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr>           GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20091010/7631b322/attachment.pgp>


More information about the Lisaac-devel mailing list