spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 4 | 4 | |
FAIL | 1 | 1 | |
total | 5 | 5 | |
case | ysh | ysh-cpp | description |
0 | pass | pass | Argparse bool option and positional |
1 | FAIL | FAIL | Argparse basic help message |
details | details | ||
2 | pass | pass | Parse args using a JSON argspec |
3 | pass | pass | Args spec definitions |
4 | pass | pass | Args spec definitions driving argument parser |
8 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
ysh | 1 Argparse basic help message [ysh stdout] Expected 'usage: program-name [-h] [-v] src dst\n\nReference Implementation\n\npositional arguments:\n src\n dst\n\noptions:\n -h, --help show this help message and exit\n -v, --verbose Verbose\n' Got '' [ysh status] Expected 0, got 1 stdout: stderr: arg -v --verbose (Bool, help = "Verbose") ^~~~ [ stdin ]:9: fatal: Undefined variable 'Bool' eval (block) | while read line { ^~~~ stdlib/args.ysh:55: errexit PID 15997: command.Pipeline failed with status 1 |
ysh-cpp | 1 Argparse basic help message [ysh-cpp stdout] Expected 'usage: program-name [-h] [-v] src dst\n\nReference Implementation\n\npositional arguments:\n src\n dst\n\noptions:\n -h, --help show this help message and exit\n -v, --verbose Verbose\n' Got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: arg -v --verbose (Bool, help = "Verbose") ^~~~ [ stdin ]:9: fatal: Undefined variable 'Bool' eval (block) | while read line { ^~~~ stdlib/args.ysh:55: errexit PID 16086: command.Pipeline failed with status 1 |