1---
2.this_is_a_job:
3 group: "GRPSERIAL"
4 tag: ["a", "b"]
5 build:
6 # source files to include (if needed)
7 files: "@SRCPATH@/*.c"
8 autotools:
9 params: ['--disable-bootstrap']
10 cmake:
11 vars: ['CMAKE_VERBOSE_MAKEFILE=ON']
12 make:
13 target: all
14 sources:
15 # program binary (if needed)
16 binary: "a.out"
17 # dependency scheme
18 depends_on: ["this_is_another_test"]
19 # extra cflags
20 cflags: "extra cflags"
21 # extra ldflags
22 ldflags: "extra ldflags"
23 # directory where program should be built
24 cwd: "dir/to/build"
25 # variants describing the job
26 variants:
27 - openmp
28 - accel
29 attributes:
30 command_wrap: true
31
32 run: &run_part
33 program: "./a.out"
34 attributes:
35 command_wrap: true
36 path_resolution: false
37 iterate:
38 # runtime iterators
39 n_mpi:
40 values: [2, 4]
41 n_omp:
42 values: [1, 2]
43 program:
44 # name will be used as part of final test-name
45 give_it_a_name:
46 numeric: true
47 type: "argument"
48 values: ["-iter 1000", "-fast"]
49 subtitle: "lol"
50 # directory where program should be built
51 cwd: "dir/to/build"
52 # dependency scheme
53 depends_on: ["this_is_another_run_test_in_the_same_file"]
54 package_manager:
55 spack:
56 - protobuf@3.1.1
57 - gcc@7.3.0
58 module:
59 - protobuf
60 - gnu/gcc/7.3.0
61 artifact:
62 # relative to $BUILDPATH
63 obj1: "./path/1"
64 obj2: "./path/2"
65
66 metrics:
67 metric1:
68 key: "regex"
69 metric2:
70 key: "regex"
71
72 # this is a copy/paste from pav2
73 validate:
74 expect_exit: 0
75 time:
76 mean: 10.0
77 tolerance: 2.0
78 kill_after: 20
79 match:
80 label:
81 expr: '^\d+(\.\d+) received$'
82 expect: true|false
83 label2: 'Total Elapsed: \d+\.\d+ sec.$'
84 analysis:
85 method: "<method>"
86 script:
87 path: "/path/to/script"
88
89#########################################################
90
91# depicts an inheritance mechanism.
92real_test:
93 build:
94 make:
95 target: all
96 run:
97 <<: *run_part