ginkgo: fix stand-alone test directory / install_test (#28412)
This commit is contained in:
parent
3a0aba0835
commit
def8fce250
@ -174,13 +174,21 @@ def test(self):
|
|||||||
if self.spec.satisfies('@:1.3.0'):
|
if self.spec.satisfies('@:1.3.0'):
|
||||||
print("SKIPPED: smoke tests not supported with this Ginkgo version.")
|
print("SKIPPED: smoke tests not supported with this Ginkgo version.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# The installation process installs tests and associated data
|
||||||
|
# in a non-standard subdirectory. Consequently, those files must
|
||||||
|
# be manually copied to the test stage here.
|
||||||
|
install_tree(self.prefix.smoke_tests,
|
||||||
|
self.test_suite.current_test_cache_dir)
|
||||||
|
|
||||||
|
# Perform the test(s) created by setup_build_tests.
|
||||||
files = [('test_install', [r'REFERENCE',
|
files = [('test_install', [r'REFERENCE',
|
||||||
r'correctly detected and is complete']),
|
r'correctly detected and is complete']),
|
||||||
('test_install_cuda', [r'CUDA',
|
('test_install_cuda', [r'CUDA',
|
||||||
r'correctly detected and is complete']),
|
r'correctly detected and is complete']),
|
||||||
('test_install_hip', [r'HIP',
|
('test_install_hip', [r'HIP',
|
||||||
r'correctly detected and is complete'])]
|
r'correctly detected and is complete'])]
|
||||||
smoke_test_path = join_path(self.prefix, 'smoke_tests')
|
|
||||||
for f, expected in files:
|
for f, expected in files:
|
||||||
self.run_test(f, [], expected, skip_missing=True, installed=True,
|
self.run_test(f, [], expected, skip_missing=True, installed=False,
|
||||||
work_dir=smoke_test_path)
|
purpose="test: Running {0}".format(f),
|
||||||
|
work_dir=self.test_suite.current_test_cache_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user