Skip to content

Commit

Permalink
fixing automatic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
landinjm committed Nov 19, 2024
1 parent 862c21a commit 6fd801f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/automatic_tests/application_debug_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def compile_and_run(app_name, new_parameter_file, test_dir):
# Run the application
print(f"Running {app_dir} with parameter file {new_parameter_file}")
run_result = subprocess.run(
["mpirun", "-n", "1", "./main", "-i", new_parameter_file],
["mpirun", "-n", "1", "./main-debug", "-i", new_parameter_file],
check=True,
capture_output=True,
text=True,
Expand Down
7 changes: 4 additions & 3 deletions tests/automatic_tests/run_automatic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def compile_and_run_simulation(application_path):
os.chdir(application_path)

# Remove old files
remove_file("main")
remove_file("main-release")
remove_file("main-debug")
remove_file("CMakeCache.txt")
remove_file("integratedFields.txt")
for solution_file in glob.glob("solution-*.vtu"):
Expand All @@ -93,7 +94,7 @@ def compile_and_run_simulation(application_path):
["cmake", "."], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)
subprocess.call(
["make", "release"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
["make", "-j2"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)

# Print successful compilation to screen
Expand All @@ -103,7 +104,7 @@ def compile_and_run_simulation(application_path):
# Run application with timer
start = time.time()
subprocess.call(
["mpirun", "-n", "1", "./main"],
["mpirun", "-n", "1", "./main-release"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
Expand Down

0 comments on commit 6fd801f

Please sign in to comment.