Skip to content

Commit

Permalink
#221 Add options for force-checkout, force-compile, and `force-d…
Browse files Browse the repository at this point in the history
…ockerfile`
  • Loading branch information
singhd789 committed Dec 26, 2024
1 parent 6e35a7a commit b3a2482
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fre/make/tests/compilation/test_run_fremake_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@
def test_run_fremake_serial_compile():
''' run fre make with run-fremake subcommand and build the null model experiment with gnu'''
os.environ["TEST_BUILD_DIR"] = SERIAL_TEST_PATH
run_fremake_script.fremake_run(YAMLPATH, PLATFORM, TARGET, False, 1, False, True, VERBOSE)
run_fremake_script.fremake_run(YAMLPATH, PLATFORM, TARGET, False, 1, False, True, VERBOSE, False, False, False)
assert Path(f"{SERIAL_TEST_PATH}/fremake_canopy/test/{EXPERIMENT}/{PLATFORM[0]}-{TARGET[0]}/exec/{EXPERIMENT}.x").exists()

# same test with a parallel build
def test_run_fremake_multijob_compile():
''' test run-fremake parallel compile with gnu'''
os.environ["TEST_BUILD_DIR"] = MULTIJOB_TEST_PATH
run_fremake_script.fremake_run(YAMLPATH, PLATFORM, TARGET, True, 4, False, True, VERBOSE)
run_fremake_script.fremake_run(YAMLPATH, PLATFORM, TARGET, True, 4, False, True, VERBOSE, False, False, False)
assert Path(f"{MULTIJOB_TEST_PATH}/fremake_canopy/test/{EXPERIMENT}/{PLATFORM[0]}-{TARGET[0]}/exec/{EXPERIMENT}.x").exists()

# containerized build
@pytest.mark.skip(reason="podman fails to pull image base on CI runner")
def test_run_fremake_container_build():
''' checks image creation for the container build'''
run_fremake_script.fremake_run(YAMLPATH, CONTAINER_PLATFORM, TARGET, False, 1, True, True, VERBOSE)
run_fremake_script.fremake_run(YAMLPATH, CONTAINER_PLATFORM, TARGET, False, 1, True, True, VERBOSE, False, False, False)
assert Path("null_model_full-debug.sif").exists()

0 comments on commit b3a2482

Please sign in to comment.