Improve Scilab test suite with start/quit scripts + remove useless display.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2010-10-14 09:15:59 +00:00
commit f7d5a8cccc
22 changed files with 273 additions and 125 deletions

View file

@ -1,15 +1,23 @@
exec loader.sce;
exec("swigtest.start", -1);
small = new_SmallStruct();
SmallStruct_jill_set(small, 200);
try
small = new_SmallStruct();
SmallStruct_jill_set(small, 200);
big = new_BigStruct();
BigStruct_jack_set(big, 300);
big = new_BigStruct();
BigStruct_jack_set(big, 300);
Jill = SmallStruct_jill_get(small);
if Jill <> 200 then pause, end
Jill = SmallStruct_jill_get(small);
catch
swigtesterror();
end
if Jill <> 200 then swigtesterror(); end
Jack = BigStruct_jack_get(big);
if Jack <> 300 then pause, end
try
Jack = BigStruct_jack_get(big);
catch
swigtesterror();
end
if Jack <> 300 then swigtesterror(); end
exit
exec("swigtest.quit", -1);