Skip to content

Commit

Permalink
Change to cloning sbml test suite from github & run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Nov 2, 2023
1 parent 804c1dd commit fbbd00b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,13 @@ jobs:
pwd
mvn install
mvn dependency:tree
- name: Run SBML test suite
run: |
git clone https://github.com/sbmlteam/sbml-test-suite.git
mvn assembly:assembly -DdescriptorId=jar-with-dependencies"
java -Xmx400M -classpath target/*jar-with-dependencies.jar org.neuroml.importer.sbml.SBMLImporter -runSBMLTestSuite
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ src/test/resources/tmp

biomodels
Errors.txt
/sbml-test-suite/
7 changes: 3 additions & 4 deletions runSBMLTestSuite.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash


if [ ! -d "sbmlTestSuite" ]; then
if [ ! -d "sbml-test-suite" ]; then

echo ""
echo "A copy of the SBML Test Suite needs to be checked out from Sourceforge. Try:"
echo "A copy of the SBML Test Suite needs to be checked out from GitHub. Try:"
echo ""
echo " mkdir sbmlTestSuite"
echo " svn checkout https://svn.code.sf.net/p/sbml/code/trunk/test-suite/cases sbmlTestSuite/cases"
echo " git clone https://github.com/sbmlteam/sbml-test-suite.git"
echo ""
exit 1

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/neuroml/importer/sbml/SBMLImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ public static void main(String[] args) throws Exception



File sbmlTestSuiteDir = new File("sbmlTestSuite/cases/semantic/");
File sbmlTestSuiteDir = new File("sbml-test-suite/cases/semantic/");

boolean useSbmlTestSuite = sbmlTestSuiteDir.exists() && forceSBMLTestSuite;

Expand Down Expand Up @@ -1292,7 +1292,7 @@ public static void main(String[] args) throws Exception
while(testCase.length()<5) testCase ="0"+testCase;


sbmlFile = new File("sbmlTestSuite/cases/semantic/"+testCase+"/"+testCase+"-sbml-"+version+".xml");
sbmlFile = new File("sbml-test-suite/cases/semantic/"+testCase+"/"+testCase+"-sbml-"+version+".xml");
if (!sbmlFile.exists()){
E.info(" ---- File not found: "+sbmlFile.getAbsolutePath()+"!! ---- \n\n");
notFound++;
Expand Down

0 comments on commit fbbd00b

Please sign in to comment.