--- Running: test --test0 -a
getopt_long returned 1, argument test0=NULL
Option -a with value NULL
--- Running: test --test1 -a
getopt_long returned 0, set flag to 2, argument test1=NULL
Option -a with value NULL
--- Running: test --test2 -a
getopt_long returned 3, argument test2=NULL
Option -a with value NULL
--- Running: test --test2=arg -a
getopt_long returned 3, argument test2=arg
Option -a with value NULL
--- Running: test --test3 -a
getopt_long returned 4, argument test3=-a
--- Running: test --test3=arg -a
getopt_long returned 4, argument test3=arg
Option -a with value NULL
--- Running: test --test3 arg -a
getopt_long returned 4, argument test3=arg
Option -a with value NULL