Results for ysh-stdlib-args.test.sh

statusyshysh-cpp
pass 44
FAIL 11
total55
caseyshysh-cppdescription
0pass pass Argparse bool option and positional
1FAIL FAIL Argparse basic help message
detailsdetails
2pass pass Parse args using a JSON argspec
3pass pass Args spec definitions
4pass 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

Details on runs that didn't PASS

ysh1 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-cpp1 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