File: scripting_pattern.yaml

package info (click to toggle)
jube 2.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,640 kB
  • sloc: python: 8,415; xml: 838; sh: 180; makefile: 14
file content (46 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: scripting_pattern
outpath: bench_run
comment: A scripting_pattern example

#Configuration
parameterset:
  name: param_set
  parameter: {name: value, type: int, _: "0,1,2"}

#Operation
step:
  name: operation
  use: param_set
  do: echo "$value"

#Pattern to extract
patternset:
  name: pattern_set
  pattern:
    #A normal pattern
    - {name: value_pat, type: int, _: $jube_pat_int}
    #A combination of a pattern and a parameter
    - {name: dep_pat, type: int, mode: python, _: $value_pat+$value}
    #This pattern is not available
    - {name: missing_pat, type: int, _: "pattern_not_available: $jube_pat_int"}
    #The combination will fail (create NaN)
    - {name: missing_dep_pat, type: int, mode: python, _: $missing_pat*$value}
    #Default value for missing pattern
    - {name: missing_pat_def, type: int, default: 0, _: "pattern_not_available: $jube_pat_int"}
    #Combination of default value and parameter
    - {name: missing_def_dep_pat, type: int, mode: python, _: $missing_pat_def*$value}

analyser:
  name: analyse
  use: pattern_set
  analyse:
    step: operation
    file: stdout

#result table creation
result:
  use: analyse
  table:
    name: result
    style: pretty
    column: [value,value_pat,dep_pat,missing_pat,missing_dep_pat,missing_pat_def,missing_def_dep_pat]