Skip to content

Commit 10dd058

Browse files
committed
Fix configuration + readme
1 parent 7d39593 commit 10dd058

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,16 @@ prog2:
249249

250250
```
251251

252+
### Single test configuration
253+
252254
You can also configure environment for **single test case**!
253255
Just put `xyz.config.yaml` file next to your input file `xyz.in`.
254256

255257
All options of config file for single test are listed below:
256258

257259
```yaml
258260

259-
totest_sh:
261+
prog2:
260262
args: %input_file_name some additional args
261263
in: override_input_file.in
262264

test/inp0.config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
prog2:
22
command: echo THIS IS OVERRIDEN
3-
args: INPUT %input_file_name
3+
args: INPUT %input_file_name
4+
testing_script_out: ignore

utest.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ function load_single_test_configuration_file {
898898
# Load global config
899899
load_prop_variable "${global_config_prefix}" "command" "param_prog"
900900
load_prop_variable "${global_config_prefix}" "args" "input_prog_flag_acc"
901-
load_prop_variable "${global_config_prefix}" "in" "input_file_path"
901+
load_prop_variable "${global_config_prefix}" "input" "input_file_path"
902902

903903
load_prop_variable_arr "${global_config_prefix}" "pipes_out_" "flag_pipe_output"
904904
load_prop_variable_arr "${global_config_prefix}" "pipes_out_err_" "flag_pipe_err_output"
@@ -931,7 +931,16 @@ function load_single_test_configuration_file {
931931
load_prop_variable "" "param_prog" "param_prog_call_name" "false"
932932
load_prop_variable "${config_prefix}" "command" "param_prog"
933933

934-
load_prop_variable "${config_prefix}" "in" "input_file_path"
934+
935+
load_prop_variable "${config_prefix}" "input" "input_file_path"
936+
937+
load_prop_variable "${config_prefix}" "good_output" "flag_good_out_path" "false"
938+
load_prop_variable "${config_prefix}" "good_err" "flag_good_err_path" "false"
939+
940+
load_prop_variable "${config_prefix}" "need_error_files" "flag_always_need_good_err" "false"
941+
942+
load_prop_variable "${config_prefix}" "testing_script_out" "flag_test_out_script"
943+
load_prop_variable "${config_prefix}" "testing_script_err" "flag_test_err_script"
935944

936945

937946
#printf "elelele\n"

0 commit comments

Comments
 (0)