Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
styczynski authored Oct 20, 2017
1 parent 0530ed0 commit 83f3d94
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,25 @@ And sometimes gives suggestions what program you may want to test.

To test input folder (only .in and .out):

`utest <prog> <folder>`
utest <prog> <folder>

### Basic in + out + ignore err (err is not checked anytime)

To test input folder (only .in and .out):

`utest --tierr <prog> <folder>`
utest --tierr <prog> <folder>

### Basic in + out + err (missing .err file cause error)

To test input folder (.in, .out, and .err files):

`utest --tnerr <prog> <folder>`
utest --tnerr <prog> <folder>

### Basic in + out + err (missing .err files are ignored)

To test input folder (.in, .out, and .err files):

`utest --tgerr <folder> <prog> <folder>`
utest --tgerr <folder> <prog> <folder>

### Globbing input files

Expand All @@ -85,7 +85,7 @@ tests
We want to feed utest with input files nested in subdirectories.
For that purpose just use:

`utest <prog> "./tests/**/*.in"`
utest <prog> "./tests/**/*.in"

**Note that globbing must be provided in quotes otherwise it will be parsed by shell and won't work!**

Expand All @@ -110,7 +110,7 @@ We must tell utest where to find output files.
We use `--tgout` flag that utilizes dynamic variable to generate output path.
You can read more about dynamic variables in *variables* section.

`utest <prog> --tgout "%input_file_folder/out" "./tests/**/input.txt"`
utest <prog> --tgout "%input_file_folder/out" "./tests/**/input.txt"

**Note that globbing must be provided in quotes otherwise it will be parsed by shell and won't work!**

Expand Down Expand Up @@ -138,6 +138,9 @@ You can read more about dynamic variables in *variables* section.
| **--tsty-format** | | Make tester use <i>!error!</i>, <i>!info!</i> etc. output format |
| **--tterm-format** | | Make tester use (default) <i>term</i> color formatting |
| **--tc**<br>**--tnone-format** | | Make tester use <i>clean</i> (only-text) formatting |
| **--tpipe-in** |*[command]* | Use preprocessing of input. See <b>Piping</b> section |
| **--tpipe-out** |*[command]* | Use postprocessing of output. See <b>Piping</b> section |
| **--tpipe-out-err** |*[command]* | Use postprocessing of output error stream. See <b>Piping</b> section |
| **--ts** | | Skips always oks |
| **--tierr** | | Always ignore stderr output |
| **--tgout** | *[dir]* | Sets <i>(good)</i> .out input directory<br>(default is the same as dir/inputs will be still found in dir location/use when .out and .in are in separate locations) |
Expand Down

0 comments on commit 83f3d94

Please sign in to comment.