Skip to content

Commit

Permalink
Added unittests to the nightly run
Browse files Browse the repository at this point in the history
  • Loading branch information
roigcarlo committed Feb 22, 2016
1 parent 2d0655e commit dcd3a60
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions benchmarking/run_all_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import sys
import benchmarking
import subprocess

sys.path.append(".")

Expand Down Expand Up @@ -39,47 +40,47 @@
import fluid_dynamics_run_all_benchmarks
Text += fluid_dynamics_run_all_benchmarks.Run()
except:
pass
pass

# DEM application
try:
os.chdir(ApplicationsRoot + "DEM_application/test_examples")
import DEM_run_all_benchmarks
Text += DEM_run_all_benchmarks.Run()
except:
pass
pass

# Structural application
try:
os.chdir(ApplicationsRoot + "structural_application/test_examples")
import structural_benchmarks
Text += structural_benchmarks.Run()
except:
pass
pass

# Incompressible fluid application
try:
os.chdir(ApplicationsRoot + "incompressible_fluid_application/test_examples")
import incompressible_benchmarks
Text += incompressible_benchmarks.Run()
except:
pass
pass

# Convection-Diffusion application
try:
os.chdir(ApplicationsRoot + "convection_diffusion_application/test_examples")
import convection_diffusion_benchmarks
Text += convection_diffusion_benchmarks.Run()
except:
pass
pass

# FSI application
try:
os.chdir(ApplicationsRoot + "FSIapplication/test_examples")
import FSI_benchmarks
Text += FSI_benchmarks.Run()
except:
pass
pass

# PFEM application
#try:
Expand All @@ -103,15 +104,15 @@
import meshing_benchmarks
Text += meshing_benchmarks.Run()
except:
pass
pass

# Trilinos application
try:
os.chdir(ApplicationsRoot + "trilinos_application/test_examples")
import trilinos_benchmarks
Text += trilinos_benchmarks.Run()
except:
pass
pass

# SwimmingDem application
try:
Expand All @@ -121,6 +122,17 @@
except:
pass

# Kratos unittest
try:
os.chdir(KratosRoot)
subprocess.call([
'python',
'kratos/python_scripts/run_tests.py',
'-lnightly'
])
except:
pass

# Add other directories here

# print Text
Expand Down

0 comments on commit dcd3a60

Please sign in to comment.