Skip to content

Commit 24b53eb

Browse files
authored
Merge pull request #1 from deniskristak/feature/specsfile-private
Feature/specsfile private
2 parents 9e240c1 + f659426 commit 24b53eb

3 files changed

Lines changed: 10 additions & 51 deletions

File tree

test/framework/options.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5480,35 +5480,15 @@ def test_wrong_specsfile_structure(self):
54805480
# todo: put most complicated stuff in yaml
54815481
# todo: use only such EC that are present for testing
54825482
# tolerate no errors
5483-
# every sw finds EC <=> success
54845483
def test_correctly_parsed_specsfile(self):
54855484
"""Test for --specsfile <specsfile.yaml> -> success case"""
54865485
topdir = os.path.dirname(os.path.abspath(__file__))
54875486
toy_specsfile = os.path.join(topdir, 'specsfiles', 'test_specsfile_successful.yaml')
5487+
args = ['--specsfile', toy_specsfile, '--robot', '--dry-run']
5488+
stdout, err = self.eb_main(args, do_build=True, return_error=True, testing=True)
54885489

5489-
args = ['--specsfile', toy_specsfile]
5490-
5491-
self.mock_stdout(True)
5492-
self.mock_stderr(True)
5493-
# todo co je to do_build= ? co je testing= ?
5494-
self.eb_main(args, do_build=True, raise_error=True, testing=False)
5495-
stdout = self.get_stdout()
5496-
self.mock_stdout(False)
5497-
self.mock_stderr(False)
5498-
5499-
print("DENIS: " + str(stdout))
5500-
5501-
# msg_regexs = [
5502-
# re.compile(r"^== Build succeeded for 1 out of 1", re.M),
5503-
# re.compile(r"^\*\*\* DRY RUN using 'EB_FFTW' easyblock", re.M),
5504-
# re.compile(r"^== building and installing FFTW/3.3.8-gompi-2018b\.\.\.", re.M),
5505-
# re.compile(r"^building... \[DRY RUN\]", re.M),
5506-
# re.compile(r"^== COMPLETED: Installation ended successfully \(took .* sec\)", re.M),
5507-
# ]
5508-
5509-
# for msg_regex in msg_regexs:
5510-
# self.assertTrue(msg_regex.search(stdout), "Pattern '%s' found in: %s" % (msg_regex.pattern, stdout))
5511-
5490+
p = re.compile(r"[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/g\/GCCcore\/GCCcore-4.9.3.eb \(module: GCCcore\/4.9.3\)$[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/b\/binutils\/binutils-2.25-GCCcore-4.9.3.eb \(module: binutils\/2.25-GCCcore-4.9.3\)$[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/b\/binutils\/binutils-2.26-GCCcore-4.9.3.eb \(module: binutils\/2.26-GCCcore-4.9.3\)$[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/g\/GCC\/GCC-4.9.2.eb \(module: GCC\/4.9.2\)$[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/g\/gzip\/gzip-1.6-GCC-4.9.2.eb \(module: gzip\/1.6-GCC-4.9.2\)$[\S\s]*easybuild\/easybuild-framework\/test\/framework\/easyconfigs\/test_ecs\/b\/bzip2\/bzip2-1.0.6-GCC-4.9.2.eb \(module: bzip2\/1.0.6-GCC-4.9.2\)$[\S\s]*", re.MULTILINE)
5491+
self.assertTrue( p.match(stdout) is not None )
55125492

55135493

55145494
def suite():
31.3 MB
Binary file not shown.
Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
11
easybuild_version: 4.3.0
22
robot: True
33
software:
4-
Bioconductor:
4+
binutils:
55
toolchains:
6-
foss-2020a:
6+
GCCcore-4.9.3:
77
versions:
8-
3.11:
9-
versionsuffix: '-R-4.0.0'
10-
exclude-labels: arch:aarch64
11-
EasyBuild:
8+
[2.25, 2.26]
9+
bzip2:
1210
toolchains:
13-
SYSTEM:
14-
versions: [4.2.1]
15-
GROMACS:
16-
toolchains:
17-
foss-2019a:
18-
exclude-labels: system:gpu
19-
versions:
20-
2020.1:
21-
2019.3:
22-
from_pr: 1234
23-
fosscuda-2020a:
24-
include-labels: system:gpu
25-
versions: [2020.1]
26-
OpenFOAM:
27-
toolchains:
28-
foss-2020a:
29-
versions: [8, v2006]
30-
R:
31-
toolchains:
32-
foss-2020a:
33-
versions: [4.0.0]
11+
GCC-4.9.2:
12+
versions: [1.0.6]

0 commit comments

Comments
 (0)