Repository navigation
Expand file tree
/
Copy pathusage.t
More file actions
69 lines (53 loc) · 2.2 KB
/
Copy pathusage.t
File metadata and controls
69 lines (53 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Set up prysk alias and example tests:
$ . "$TESTDIR"/setup.sh
$ COLUMNS=80
Usage:
$ prysk -h
[Uu]sage: prysk \[OPTIONS\] TESTS\.\.\. (re)
positional arguments:
TESTS Path(s) to the tests to be executed
(optional arguments|options): (re)
-h, --help show this help message and exit
-V, --version show program's version number and exit
-q, --quiet don't print diffs (default: False)
-v, --verbose show filenames and test status (default: False)
-i, --interactive interactively merge changed test output (default:
False)
-d, --debug write script output directly to the terminal (default:
False)
-y, --yes answer yes to all questions (default: False)
-n, --no answer no to all questions (default: False)
-E, --preserve-env don't reset common environment variables (default:
False)
--keep-tmpdir keep temporary directories (default: False)
--shell PATH shell to use for running tests (default: /bin/sh)
--shell-opts OPTS arguments to invoke shell with (default: None)
--indent NUM number of spaces to use for indentation (default: 2)
--color {always,never,auto}
Mode which shall be used for coloring the output
(default: auto)
--xunit-file PATH path to write xUnit XML output (default: None)
--dos2unix convert DOS/Windows line endings to UNIX line endings
(default: False)
--escape7bit escape all non-7-bit bytes (not just non-
printable/invalid UTF-8) (default: False)
$ prysk -V
[0-9]+\.[0-9]+\.[0-9]+ (re)
$ prysk
[Uu]sage: prysk \[OPTIONS\] TESTS\.\.\. (re)
prysk: error: the following arguments are required: TESTS
[2]
$ touch nop.t
$ prysk -y -n not.t
options --yes and --no are mutually exclusive
[2]
$ prysk non-existent also-not-here
no such file: non-existent
[2]
$ mkdir empty
$ prysk empty
no tests found
[2]
$ prysk --shell=./badsh nop.t
shell not found: ./badsh
[2]