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:
parent
7c0ef6b047
commit
9a0ac2fa59
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue