mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Move regression tests into separate directory
This commit is contained in:
parent
39cd77a756
commit
c3af1c915b
394 changed files with 302 additions and 302 deletions
|
|
@ -531,7 +531,7 @@ endif()
|
|||
include(CTest)
|
||||
|
||||
# Get a list of all the tests to run
|
||||
file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_*.py)
|
||||
file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.py)
|
||||
|
||||
# Loop through all the tests
|
||||
foreach(test ${TESTS})
|
||||
|
|
@ -552,20 +552,20 @@ foreach(test ${TESTS})
|
|||
endif()
|
||||
|
||||
# Add serial test
|
||||
add_test(NAME ${TEST_NAME}
|
||||
add_test(NAME ${TEST_PATH}
|
||||
WORKING_DIRECTORY ${TEST_PATH}
|
||||
COMMAND $<TARGET_FILE:openmc>)
|
||||
else()
|
||||
# Check serial/parallel
|
||||
if (${MPI_ENABLED})
|
||||
# Preform a parallel test
|
||||
add_test(NAME ${TEST_NAME}
|
||||
add_test(NAME ${TEST_PATH}
|
||||
WORKING_DIRECTORY ${TEST_PATH}
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} --exe $<TARGET_FILE:openmc>
|
||||
--mpi_exec ${MPI_DIR}/mpiexec)
|
||||
else()
|
||||
# Perform a serial test
|
||||
add_test(NAME ${TEST_NAME}
|
||||
add_test(NAME ${TEST_PATH}
|
||||
WORKING_DIRECTORY ${TEST_PATH}
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} --exe $<TARGET_FILE:openmc>)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -587,7 +587,7 @@ def slab_mg(reps=None, as_macro=True):
|
|||
|
||||
# Define the materials file
|
||||
model.xs_data = xs
|
||||
model.materials.cross_sections = "../1d_mgxs.h5"
|
||||
model.materials.cross_sections = "../../1d_mgxs.h5"
|
||||
|
||||
# Define surfaces.
|
||||
# Assembly/Problem Boundary
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import os
|
|||
import sys
|
||||
import glob
|
||||
import hashlib
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import CMFDTestHarness
|
||||
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import CMFDTestHarness
|
||||
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
2
tests/test_density/test_density.py → tests/regression_tests/confidence_intervals/test.py
Normal file → Executable file
2
tests/test_density/test_density.py → tests/regression_tests/confidence_intervals/test.py
Normal file → Executable file
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
|
|
@ -6,7 +6,7 @@ import sys
|
|||
|
||||
import pandas as pd
|
||||
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness, PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
11
tests/regression_tests/energy_grid/test.py
Normal file
11
tests/regression_tests/energy_grid/test.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
harness = TestHarness('statepoint.10.h5')
|
||||
harness.main()
|
||||
|
|
@ -21,7 +21,7 @@ that use linear-linear interpolation.
|
|||
import glob
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
|
||||
|
|
@ -5,7 +5,6 @@ import sys
|
|||
|
||||
import numpy as np
|
||||
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from openmc import Material
|
||||
from openmc.data import NATURAL_ABUNDANCE, atomic_mass
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
import glob
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
from openmc import StatePoint
|
||||
|
||||
|
|
@ -4,7 +4,7 @@ import glob
|
|||
import hashlib
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import *
|
||||
|
||||
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import sys
|
||||
import glob
|
||||
sys.path.insert(0, os.pardir)
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import PyAPITestHarness
|
||||
import openmc
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue