spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 8 | 8 | |
FAIL | 1 | 1 | |
total | 9 | 9 | |
case | ysh | ysh-cpp | description |
0 | pass | pass | args.ysh example usage |
1 | pass | pass | Bool flag, positional args, more positional |
2 | pass | pass | Test multiple ARGVs against a parser |
3 | FAIL | FAIL | Basic help message |
details | details | ||
4 | pass | pass | Compare parseArgs() vs Python argparse |
5 | pass | pass | Define spec and print it |
6 | pass | pass | Default values |
7 | pass | pass | Duplicate argument/flag names |
8 | pass | pass | Error cases |
16 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
ysh | 3 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 127 stdout: stderr: description ''' ^~~~~~~~~~~ [ stdin ]:4: 'description' not found (OILS-ERR-100) [ stdin ]:4: errexit PID 31816: command.Simple failed with status 127 |
ysh-cpp | 3 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 127 stdout: stderr: description ''' ^~~~~~~~~~~ [ stdin ]:4: 'description' not found (OILS-ERR-100) [ stdin ]:4: errexit PID 31831: command.Simple failed with status 127 |