eigenexa: convert to new stand-alone test process (#35745)
This commit is contained in:
		| @@ -52,8 +52,8 @@ def cache_test_sources(self): | |||||||
|         """Save off benchmark files for stand-alone tests.""" |         """Save off benchmark files for stand-alone tests.""" | ||||||
|         self.cache_extra_test_sources("benchmark") |         self.cache_extra_test_sources("benchmark") | ||||||
| 
 | 
 | ||||||
|     def test(self): |     def test_benchmarks(self): | ||||||
|         """Perform stand-alone/smoke tests using pre-built benchmarks.""" |         """run benchmark checks""" | ||||||
|         # NOTE: This package would ideally build the test program using |         # NOTE: This package would ideally build the test program using | ||||||
|         #   the installed software *each* time the tests are run since |         #   the installed software *each* time the tests are run since | ||||||
|         #   this package installs a library. |         #   this package installs a library. | ||||||
| @@ -61,6 +61,7 @@ def test(self): | |||||||
|         test_cache_dir = join_path(self.test_suite.current_test_cache_dir, "benchmark") |         test_cache_dir = join_path(self.test_suite.current_test_cache_dir, "benchmark") | ||||||
|         test_data_dir = self.test_suite.current_test_data_dir |         test_data_dir = self.test_suite.current_test_data_dir | ||||||
| 
 | 
 | ||||||
|  |         with working_dir(test_data_dir): | ||||||
|             opts = [ |             opts = [ | ||||||
|                 "run-test.sh", |                 "run-test.sh", | ||||||
|                 self.spec["mpi"].prefix.bin.mpirun, |                 self.spec["mpi"].prefix.bin.mpirun, | ||||||
| @@ -71,10 +72,6 @@ def test(self): | |||||||
|                 join_path(test_cache_dir, "IN"), |                 join_path(test_cache_dir, "IN"), | ||||||
|             ] |             ] | ||||||
|             env["OMP_NUM_THREADS"] = "1" |             env["OMP_NUM_THREADS"] = "1" | ||||||
|         self.run_test( |             sh = which("sh") | ||||||
|             "sh", |             out = sh(*opts, output=str.split, error=str.split) | ||||||
|             options=opts, |             assert "EigenExa Test Passed !" in out | ||||||
|             expected="EigenExa Test Passed !", |  | ||||||
|             purpose="test: running benchmark checks", |  | ||||||
|             work_dir=test_data_dir, |  | ||||||
|         ) |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tamara Dahlgren
					Tamara Dahlgren