Add a test for library existence

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2011-01-04 15:52:24 +00:00
commit 9a0ac2fa59

View file

@ -4,6 +4,14 @@ lines(0);
[units, typ, names] = file(1);
swigtestname = strsubst(fileparts(names, "fname"), "_runme", "");
// Does the library exists? If not then exit!
if ~isfile("lib" + fileparts(names, "fname") + "lib" + getdynlibext()) then
mprintf("**************************\n")
mprintf("* LIBRARY DOES NOT EXIST *\n");
mprintf("**************************\n")
exit
end
// Load library
try
exec("loader.sce", -1);