Skip to content

Commit 149af54

Browse files
author
Vasileios Karakasis
committed
Update advanced tutorial listings
1 parent 4fc5b12 commit 149af54

File tree

3 files changed

+37
-34
lines changed

3 files changed

+37
-34
lines changed

docs/listings/maketest_mixin.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[ReFrame Setup]
2-
version: 3.10.0-dev.2+4cd9d2e9
2+
version: 3.10.0-dev.3+4fc5b12c
33
command: './bin/reframe -c tutorials/advanced/makefiles/maketest_mixin.py -l'
44
launched by: user@host
5-
working directory: '/Users/user/Repositories/reframe'
6-
settings file: 'tutorials/config/settings.py'
7-
check search path: '/Users/user/Repositories/reframe/tutorials/advanced/makefiles/maketest_mixin.py'
8-
stage directory: '/Users/user/Repositories/reframe/stage'
9-
output directory: '/Users/user/Repositories/reframe/output'
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '/home/user/Repositories/reframe/tutorials/config/settings.py'
7+
check search path: '/home/user/Repositories/reframe/tutorials/advanced/makefiles/maketest_mixin.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
1010

1111
[List of matched checks]
1212
- MakeOnlyTestAlt %elem_type=double
@@ -15,4 +15,4 @@
1515
- MakefileTestAlt %elem_type=float
1616
Found 4 check(s)
1717

18-
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-xv130jbu.log'
18+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-4w95t2wt.log'

docs/listings/stream_params.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[ReFrame Setup]
2-
version: 3.10.0-dev.2+4cd9d2e9
2+
version: 3.10.0-dev.3+4fc5b12c
33
command: './bin/reframe -c tutorials/advanced/parameterized/stream.py -l'
44
launched by: user@host
5-
working directory: '/Users/user/Repositories/reframe'
6-
settings file: 'tutorials/config/settings.py'
7-
check search path: '/Users/user/Repositories/reframe/tutorials/advanced/parameterized/stream.py'
8-
stage directory: '/Users/user/Repositories/reframe/stage'
9-
output directory: '/Users/user/Repositories/reframe/output'
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '/home/user/Repositories/reframe/tutorials/config/settings.py'
7+
check search path: '/home/user/Repositories/reframe/tutorials/advanced/parameterized/stream.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
1010

1111
[List of matched checks]
1212
- StreamMultiSysTest %num_bytes=536870912
@@ -22,4 +22,4 @@
2222
- StreamMultiSysTest %num_bytes=524288
2323
Found 11 check(s)
2424

25-
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-93hsoek9.log'
25+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-ka9llk6d.log'

tools/gendoclistings.py

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def print_usage():
1515

1616
ListingInfo = collections.namedtuple(
1717
'ListingInfo',
18-
['command', 'filename', 'tags', 'filters', 'env', 'xfail']
18+
['command', 'tags', 'filters', 'env', 'xfail']
1919
)
2020

2121

@@ -48,39 +48,34 @@ def replace_hostname(s):
4848
LISTINGS = {
4949
'hello1': ListingInfo(
5050
'./bin/reframe -c tutorials/basics/hello/hello1.py -r',
51-
'docs/listings/hello1.txt',
5251
{'local', 'tutorial-basics'},
5352
DEFAULT_FILTERS,
5453
env={'RFM_COLORIZE': 'n'},
5554
xfail=False
5655
),
5756
'run-report': ListingInfo(
5857
f'cat {os.getenv("HOME")}/.reframe/reports/run-report.json',
59-
'docs/listings/run-report.json',
6058
{'local', 'tutorial-basics'},
6159
DEFAULT_FILTERS,
6260
env=None,
6361
xfail=False
6462
),
6563
'hello2': ListingInfo(
6664
'./bin/reframe -c tutorials/basics/hello/hello2.py -r',
67-
'docs/listings/hello2.txt',
6865
{'local', 'tutorial-basics'},
6966
DEFAULT_FILTERS,
7067
env={'RFM_COLORIZE': 'n'},
7168
xfail=True
7269
),
7370
'hello2_catalina': ListingInfo(
7471
'./bin/reframe -C tutorials/config/settings.py --system=catalina -c tutorials/basics/hello/hello2.py -r',
75-
'docs/listings/hello2_catalina.txt',
7672
{'local', 'tutorial-basics'},
7773
DEFAULT_FILTERS,
7874
env={'RFM_COLORIZE': 'n'},
7975
xfail=False
8076
),
8177
'hellomp1': ListingInfo(
8278
'./bin/reframe --system=catalina -c tutorials/basics/hellomp/hellomp1.py -r',
83-
'docs/listings/hellomp1.txt',
8479
{'local', 'tutorial-basics'},
8580
DEFAULT_FILTERS,
8681
env={
@@ -91,7 +86,6 @@ def replace_hostname(s):
9186
),
9287
'hellomp2': ListingInfo(
9388
'./bin/reframe --system=catalina -c tutorials/basics/hellomp/hellomp2.py -r',
94-
'docs/listings/hellomp2.txt',
9589
{'local', 'tutorial-basics'},
9690
DEFAULT_FILTERS,
9791
env={
@@ -102,7 +96,6 @@ def replace_hostname(s):
10296
),
10397
'alltests_daint': ListingInfo(
10498
'./bin/reframe -c tutorials/basics/ -R -n "HelloMultiLangTest|HelloThreadedExtended2Test|StreamWithRefTest" --performance-report -r',
105-
'docs/listings/alltests_daint.txt',
10699
{'remote', 'tutorial-basics'},
107100
DEFAULT_FILTERS,
108101
env={
@@ -113,7 +106,6 @@ def replace_hostname(s):
113106
),
114107
'stream4_daint': ListingInfo(
115108
'./bin/reframe -c tutorials/basics/stream/stream4.py -r --performance-report',
116-
'docs/listings/stream4_daint.txt',
117109
{'remote', 'tutorial-basics'},
118110
DEFAULT_FILTERS,
119111
env={
@@ -124,7 +116,6 @@ def replace_hostname(s):
124116
),
125117
'osu_bench_deps': ListingInfo(
126118
'./bin/reframe -c tutorials/deps/osu_benchmarks.py -r',
127-
'docs/listings/osu_bench_deps.txt',
128119
{'remote', 'tutorial-deps'},
129120
DEFAULT_FILTERS,
130121
env={
@@ -135,7 +126,6 @@ def replace_hostname(s):
135126
),
136127
'osu_latency_list': ListingInfo(
137128
'./bin/reframe -c tutorials/deps/osu_benchmarks.py -n OSULatencyTest -l',
138-
'docs/listings/osu_latency_list.txt',
139129
{'remote', 'tutorial-deps'},
140130
DEFAULT_FILTERS,
141131
env={
@@ -146,7 +136,6 @@ def replace_hostname(s):
146136
),
147137
'osu_latency_unresolved_deps': ListingInfo(
148138
'./bin/reframe -c tutorials/deps/osu_benchmarks.py -n OSULatencyTest --system=daint:gpu -l',
149-
'docs/listings/osu_latency_unresolved_deps.txt',
150139
{'remote', 'tutorial-deps'},
151140
DEFAULT_FILTERS,
152141
env={
@@ -157,7 +146,6 @@ def replace_hostname(s):
157146
),
158147
'osu_bench_list_concretized': ListingInfo(
159148
'./bin/reframe -c tutorials/deps/osu_benchmarks.py -lC',
160-
'docs/listings/osu_bench_list_concretized.txt',
161149
{'remote', 'tutorial-deps'},
162150
DEFAULT_FILTERS,
163151
env={
@@ -168,7 +156,6 @@ def replace_hostname(s):
168156
),
169157
'osu_bench_list_concretized_gnu': ListingInfo(
170158
'./bin/reframe -c tutorials/deps/osu_benchmarks.py -n OSULatencyTest -L -p builtin -p gnu',
171-
'docs/listings/osu_bench_list_concretized_gnu.txt',
172159
{'remote', 'tutorial-deps'},
173160
DEFAULT_FILTERS,
174161
env={
@@ -179,15 +166,13 @@ def replace_hostname(s):
179166
),
180167
'param_deps_list': ListingInfo(
181168
'./bin/reframe -c tutorials/deps/parameterized.py -l',
182-
'docs/listings/param_deps_list.txt',
183169
{'local', 'tutorial-deps'},
184170
DEFAULT_FILTERS,
185171
env=None,
186172
xfail=False
187173
),
188174
'osu_bench_fixtures_list': ListingInfo(
189175
'./bin/reframe -c tutorials/fixtures/osu_benchmarks.py -l',
190-
'docs/listings/osu_bench_fixtures_list.txt',
191176
{'remote', 'tutorial-fixtures'},
192177
DEFAULT_FILTERS,
193178
env={
@@ -197,7 +182,6 @@ def replace_hostname(s):
197182
),
198183
'osu_bandwidth_concretized_daint': ListingInfo(
199184
'./bin/reframe -c tutorials/fixtures/osu_benchmarks.py -n osu_bandwidth_test -lC',
200-
'docs/listings/osu_bandwidth_concretized_daint.txt',
201185
{'remote', 'tutorial-fixtures'},
202186
DEFAULT_FILTERS,
203187
env={
@@ -208,7 +192,6 @@ def replace_hostname(s):
208192
),
209193
'osu_bandwidth_concretized_daint_pgi': ListingInfo(
210194
'./bin/reframe -c tutorials/fixtures/osu_benchmarks.py -n osu_bandwidth_test -lC -p pgi',
211-
'docs/listings/osu_bandwidth_concretized_daint_pgi.txt',
212195
{'remote', 'tutorial-fixtures'},
213196
DEFAULT_FILTERS,
214197
env={
@@ -219,14 +202,33 @@ def replace_hostname(s):
219202
),
220203
'osu_bench_fixtures_run': ListingInfo(
221204
'./bin/reframe -c tutorials/fixtures/osu_benchmarks.py -r',
222-
'docs/listings/osu_bench_fixtures_run.txt',
223205
{'remote', 'tutorial-fixtures'},
224206
DEFAULT_FILTERS,
225207
env={
226208
'RFM_CONFIG_FILE': os.path.join(os.getcwd(), 'tutorials/config/settings.py'),
227209
'RFM_COLORIZE': 'n'
228210
},
229211
xfail=False
212+
),
213+
'stream_params': ListingInfo(
214+
'./bin/reframe --system=catalina -c tutorials/advanced/parameterized/stream.py -l',
215+
{'local', 'tutorial-advanced'},
216+
DEFAULT_FILTERS,
217+
env={
218+
'RFM_CONFIG_FILE': os.path.join(os.getcwd(), 'tutorials/config/settings.py'),
219+
'RFM_COLORIZE': 'n'
220+
},
221+
xfail=False
222+
),
223+
'maketest_mixin': ListingInfo(
224+
'./bin/reframe --system=catalina -c tutorials/advanced/makefiles/maketest_mixin.py -l',
225+
{'local', 'tutorial-advanced'},
226+
DEFAULT_FILTERS,
227+
env={
228+
'RFM_CONFIG_FILE': os.path.join(os.getcwd(), 'tutorials/config/settings.py'),
229+
'RFM_COLORIZE': 'n'
230+
},
231+
xfail=False
230232
)
231233
}
232234

@@ -261,5 +263,6 @@ def replace_hostname(s):
261263
output = f(output)
262264

263265
# Write the listing
264-
with open(info.filename, 'w') as fp:
266+
filename = os.path.join('docs/listings', f'{name}.txt')
267+
with open(filename, 'w') as fp:
265268
fp.write(output)

0 commit comments

Comments
 (0)