Skip to content

Commit

Permalink
Release-1-9-5v
Browse files Browse the repository at this point in the history
Release 1.9.5v
  • Loading branch information
styczynski authored Nov 5, 2017
2 parents 97ee58e + 06b6558 commit f33b7db
Show file tree
Hide file tree
Showing 14 changed files with 333 additions and 55 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ language: generic
install:
- npm install
script:
- chmod u+x ./utest.sh && cd self_test && bash ../utest.sh
- chmod u+x ./utest.sh
- chmod u+x ./self_test/autodetection_cli/someprogram.sh
- cd self_test && bash ../utest.sh --ttools stime --tno-spinner
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ You can read more about dynamic variables in *variables* section.

| Switch | Parameters | Description |
|-----------------------------------|------------|--------------|
| **--tdebug** | | Disables removing any files (so the utest probably won't do any harm) and enables --tlog flag. |
| **--tlog** | | Enable logging into utest.log file in the current directory. |
| **--ttools** | *[tools]* | Sets additional debug tools.<br>`[tools]` is the coma-separated array of tools names.<br>Tools names can be as the following:<br><ul><li><b>size</b> - prints the size of input file in bytes.</li><li><b>time</b> - prints time statistic using Unix time command.</li><li><b>stime</b> - measures time using bash date command (not as precise as time tool).</li><li><b>vmemcheck</b> - uses valgrind memcheck tools to search for application leaks.</li><li><b>vmassif</b> - uses valgrind massif and prints peak memory usage.</li></ul> |
| **--tscript** | *[script]* | Sets output testing command as `[script]`<br>Script path is path to the executed script/program.<br>There exists few built-in testing scripts:<br><ul><li>Use <b>--tscript ignore</b> to always assume output is OK.</li> |
| **--tscript-err** | *[script]* | Sets stderr output testing command as `[script]`<br>Script path is path to the executed script/program.<br>There exists few built-in testing scripts:<br><ul><li>Use <b>--tscript-err ignore</b> to always assume stderr is OK.</li> |
Expand Down Expand Up @@ -414,4 +416,4 @@ Simple enough, right?

[screenshot 1]: https://raw.githubusercontent.com/styczynski/bash-universal-tester/master/static/screenshots/screenshot1.png

[link download latest]: https://github.com/styczynski/bash-universal-tester/archive/1.9.4.zip
[link download latest]: https://github.com/styczynski/bash-universal-tester/archive/1.9.5.zip
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bash-universal-tester",
"version": "1.9.4",
"version": "1.9.5",
"description": "Universal testing script for bash",
"keywords": "bash, testing, tester, utest, bash-test, testing, script",
"homepage": "https://github.com/styczynski/bash-universal-tester",
Expand All @@ -10,6 +10,13 @@
"email" : "piotrsty1@gmail.com",
"url" : "http://styczynski.ml"
},
"repository" : {
"type" : "git",
"url" : "https://github.com/styczynski/bash-universal-tester"
},
"scripts": {
"start": "bash ./utest.sh"
},
"bin": {
"utest": "./utest.sh"
},
Expand Down
3 changes: 3 additions & 0 deletions self_test/autodetection_cli/autodetection_cli.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self_test:
cwd: %{input_file_folder}
command: ../../utest.sh --tc --tno-spinner \\\"./someprogram.sh\\\"
Empty file.
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test1.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
123
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test2
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
123
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test3.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sometest3
1 change: 1 addition & 0 deletions self_test/autodetection_cli/files/test3.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
123
3 changes: 3 additions & 0 deletions self_test/autodetection_cli/someprogram.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

printf "123\n"
11 changes: 11 additions & 0 deletions self_test/autodetection_cli/test.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Autodected './files' as best test directory. Using it.

Performing tests...
Call ./someprogram.sh (short name: someprogram_sh)


[1/3] test1.in [OK]
[2/3] test2.in [OK]
[3/3] test3.in [OK]

Done testing. All 3 tests passes.
Loading

0 comments on commit f33b7db

Please sign in to comment.