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:
parent
2625a29a96
commit
f7d5a8cccc
22 changed files with 273 additions and 125 deletions
22
Examples/test-suite/scilab/swigtest.start
Normal file
22
Examples/test-suite/scilab/swigtest.start
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
lines(0);
|
||||
|
||||
// Get test name (used in swigtest.quit file)
|
||||
[units, typ, names] = file(1);
|
||||
swigtestname = strsubst(fileparts(names, "fname"), "_runme", "");
|
||||
|
||||
// Load library
|
||||
try
|
||||
exec("loader.sce", -1);
|
||||
catch
|
||||
mprintf("***************************\n")
|
||||
mprintf("* LOADER EXECUTION FAILED *\n");
|
||||
mprintf("***************************\n")
|
||||
end
|
||||
|
||||
// Error management function
|
||||
function swigtesterror()
|
||||
mprintf("***************\n")
|
||||
mprintf("* TEST FAILED *\n")
|
||||
mprintf("***************\n")
|
||||
exit
|
||||
endfunction
|
||||
Loading…
Add table
Add a link
Reference in a new issue