octave: export function swig_octave_prereq() for easily testing Octave version

This commit is contained in:
Karl Wette 2016-02-07 18:20:56 +01:00
commit b93b1871a9
2 changed files with 23 additions and 4 deletions

View file

@ -61,9 +61,8 @@ testme
testme
clear all
# octave 3.0.5 randomly crashes on the remaining tests, so skip them
api_version = sscanf(octave_config_info("api_version"), "api-v%i");
if api_version < 37
# octave 3.0.5 randomly crashes on the remaining tests
if !swig_octave_prereq(3,2,0)
exit
endif