Executing SBML Runner tests from CMD

19 views
Skip to first unread message

Иван Борисов

unread,
Mar 26, 2020, 8:42:48 AM3/26/20
to sbml-interoperability
Hi,

I am developing a package for simulatition of sbml models.
Is there a common way to execute SBML tests from test suite in a command line mode without SBML Runner GUI?

Ivan


Frank T. Bergmann

unread,
Mar 26, 2020, 8:50:34 AM3/26/20
to sbml-interoperability
Hello Ivan, 

I had the same problem in the past, and used some java classes, to add the simulator to the list of registered wrappers, run the tests i want to run, and (optionally remove the wrapper again). The code for this is in our github repository: 


best
Frank

Иван Борисов

unread,
Mar 26, 2020, 9:33:20 AM3/26/20
to sbml-interoperability

Hello Frank,

Thanks for sharing your solution!
And do you know if some  (for example) linux terminal mode execution exists for SBML Runner ?

Ivan

Frank T. Bergmann

unread,
Mar 26, 2020, 10:27:39 AM3/26/20
to sbml-interoperability
Indeed, if you look at: 


the line: 

```
COMMAND "${JAVA_EXECUTABLE}"
-cp "${CLASSPATH}"
runSupportedParallel "${NAME}"
${NUM_TRHEADS} ${SBML_LEVEL} ${SBML_VERSION}
WORKING_DIRECTORY "${SRC_DIR}"
```

is doing what you want: 

so you will simply run the runSupportedParallel class with the arguments: 

* name of the registered wrapper
* number of threads to use
* sbml level
* sbml version 

For this to work the `testsuite-core.jar`, `simple-xml-2.6.4.jar` and the folder containing the class file have to be in the classpath. 

best
Frank

Иван Борисов

unread,
Mar 26, 2020, 10:51:34 AM3/26/20
to sbml-interoperability
Frank,

I see, thank you!

Ivan
Reply all
Reply to author
Forward
0 new messages