common_config:
  proc: [1, 2]
  time_limit: 60
  memory_limit: 500

test_cases:
- files: 01_input_invalid_format.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]  # file must exists in ref_out folder!
        substr: "ERROR.yaml-cpp"
    - regex:
        files: [job_output.log]  # same file can be checked several times
        regex: "[Ee]rror at line 13, column 11: end of map flow not found"

- files: 02_input_missing_file.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Program Error: Can not open file"

- files: 03_input_invalid_data_type.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "The value should be 'YAML real', but we found"

- files: 04_input_invalid_array_size.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Do not fit the size 4 of the Array"
        
- files: 05_input_value_out_of_bounds.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Value out of bounds."

- files: 06_input_missing_obligatory_key.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Missing obligatory key 'mesh_file'"

- files: 07_input_wrong_selection_value.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Wrong value 'FieldInterpolatedP1' of the Selection"

- files: 08_input_missing_abstract_descendant.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Can not determine type of the Abstract."

- files: 09_input_unknown_region_set.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "User Error: Operation with unknown region set"

- files: 10_assert_missing_time_key.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]  # file must exists in ref_out folder!
        substr: "Missing the key 'time', obligatory for the transient problems."
    - regex:
        files: [job_output.log]  # same file can be checked several times
        regex: "Program [Ee]rror: Violated assert!"
            
- files: 11_size_of_solubility_vec.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "User Error: The size of the input array 'solubility' does not match the number of substances"
            
- files: 12_assert_duplicate_key_time.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]  # file must exists in ref_out folder!
        substr: "Duplicate key 'time', time in flow equation is already initialized from parent class!"
    - regex:
        files: [job_output.log]  # same file can be checked several times
        regex: "Program [Ee]rror: Violated assert!"
            
- files: 13_reg_from_ele.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "User defined region 'zdroj' (id 9) by 'From_Elements' cannot have elements of different dimensions."

- files: 14_duplicit_records.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Duplicit Tag: 'balance'"
    - regex:
        files: [job_output.log]
        substr: "/problem/flow_equation"
        
- files: 15_bparser_invalid_shape.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Invalid result shape"
#    - regex:
#        files: [job_output.log]
#        substr: "/problem/flow_equation/input_fields/0/conductivity"
        
- files: 16_bparser_invalid_user_shape.yaml
  death_test: true
  check_rules:
    - regex:
        files: [job_output.log]
        substr: "Invalid result shape"
#    - regex:
#        files: [job_output.log]
#        substr: "/problem/flow_equation/user_fields/0"
