Skip to content
Snippets Groups Projects
Commit 21464700 authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Add non reg tests where the -2c option.

121 ok, 110 ko. Basically, ko programs contains arrays arrays and
structures.
parent a86f3a60
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -8,8 +8,9 @@ set id [should_work "Unit tests" "$lus2lic" "-unit"]
wait -i $id
foreach f $ok_files {
set bf [file rootname $f]
set bf /tmp/[file tail $bf]
set basef [file rootname $f]
set bf /tmp/[file tail $basef]
set basef [file tail $basef]
set id1 [should_work "without any option" "$lus2lic" "-o $bf.lic $f"]
wait -i $id1
set id2 [should_work "Generate ec code " "$lus2lic" "-ec -o $bf.ec $f"]
......@@ -25,8 +26,21 @@ foreach f $ok_files {
set id4 [should_work "Try to compare lus2lic -exec and ecexe" "$test_lus2lic_no_node" "$f"]
catch { exp_close -i $id4 }
catch { exp_wait -i $id4 } output
set id5 [should_work "Generate c code " "$lus2lic" "-2c $f -n $basef"]
wait -i $id5
# if { [emptyfile "$bf.c"] } {
# set id6 [should_work "Check that the generated C code compiles " "gcc $bf.c $bf_loop.c"]
# wait -i $id6
# catch { exp_close -i $id6 }
# catch { exp_wait -i $id6 } output
# }
catch { exp_close -i $id5 }
catch { exp_wait -i $id5 } output
}
catch { exp_close -i $id1 }
catch { exp_wait -i $id1 } output
catch { exp_close -i $id2 }
......
testcase ./lus2lic.tests/non-reg.exp completed in 172 seconds
testcase ./lus2lic.tests/non-reg.exp completed in 108 seconds
testcase ./lus2lic.tests/progression.exp completed in 1 seconds
......@@ -208,6 +208,12 @@ si je lance ecexe dessus, j'obtiens un
au step 3
Mais curieusement, via lus2lic -exec, je n'ai pas de soucis.
** TODO pb en mode -esa avec les itérateurs
- State "TODO" from "" [2014-06-05 Thu 10:00]
lus2lic should_work/minus.lus -n minus -esa
lus2lic should_work/normal.lus -n normal -esa
* Pas clair
** WAITING Regarder si on pourrait se passer du PREDEF_CALL (et de passer par le CALL normal)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment