Skip to content

Commit f33b7db

Browse files
authored
Release-1-9-5v
Release 1.9.5v
2 parents 97ee58e + 06b6558 commit f33b7db

14 files changed

+333
-55
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ language: generic
22
install:
33
- npm install
44
script:
5-
- chmod u+x ./utest.sh && cd self_test && bash ../utest.sh
5+
- chmod u+x ./utest.sh
6+
- chmod u+x ./self_test/autodetection_cli/someprogram.sh
7+
- cd self_test && bash ../utest.sh --ttools stime --tno-spinner

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ You can read more about dynamic variables in *variables* section.
147147

148148
| Switch | Parameters | Description |
149149
|-----------------------------------|------------|--------------|
150+
| **--tdebug** | | Disables removing any files (so the utest probably won't do any harm) and enables --tlog flag. |
151+
| **--tlog** | | Enable logging into utest.log file in the current directory. |
150152
| **--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> |
151153
| **--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> |
152154
| **--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> |
@@ -414,4 +416,4 @@ Simple enough, right?
414416

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

417-
[link download latest]: https://github.com/styczynski/bash-universal-tester/archive/1.9.4.zip
419+
[link download latest]: https://github.com/styczynski/bash-universal-tester/archive/1.9.5.zip

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bash-universal-tester",
3-
"version": "1.9.4",
3+
"version": "1.9.5",
44
"description": "Universal testing script for bash",
55
"keywords": "bash, testing, tester, utest, bash-test, testing, script",
66
"homepage": "https://github.com/styczynski/bash-universal-tester",
@@ -10,6 +10,13 @@
1010
"email" : "[email protected]",
1111
"url" : "http://styczynski.ml"
1212
},
13+
"repository" : {
14+
"type" : "git",
15+
"url" : "https://github.com/styczynski/bash-universal-tester"
16+
},
17+
"scripts": {
18+
"start": "bash ./utest.sh"
19+
},
1320
"bin": {
1421
"utest": "./utest.sh"
1522
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self_test:
2+
cwd: %{input_file_folder}
3+
command: ../../utest.sh --tc --tno-spinner \\\"./someprogram.sh\\\"

self_test/autodetection_cli/autodetection_cli.in

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sometest3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
printf "123\n"

self_test/autodetection_cli/test.out

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Autodected './files' as best test directory. Using it.
2+
3+
Performing tests...
4+
Call ./someprogram.sh (short name: someprogram_sh)
5+
6+
7+
[1/3] test1.in [OK]
8+
[2/3] test2.in [OK]
9+
[3/3] test3.in [OK]
10+
11+
Done testing. All 3 tests passes.

0 commit comments

Comments
 (0)