regress: port cmdline tests