3 #=======================================================================
7 # Create new *.t file in the current directory. Specify a name without
8 # the .t extension and a file with some common option tests will be
11 # Author: Øyvind A. Holm <sunny@sunbase.org>
12 # License: GNU General Public License version 2 or later.
13 #=======================================================================
27 " -n "$progname" -- "$@
")"
28 test "$?" = "0" ||
exit 1
36 -h|
--help) opt_help
=1; shift ;;
37 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
38 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
39 --version) echo $progname $VERSION; exit 0 ;;
41 *) echo $progname: Internal error
>&2; exit 1 ;;
44 opt_verbose
=$
(($opt_verbose - $opt_quiet))
46 if test "$opt_help" = "1"; then
47 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
50 Create new *.t file in the current directory. Specify a name without the
51 .t extension and a file with some common option tests will be created.
53 Usage: $progname [options] testname
60 Be more quiet. Can be repeated to increase silence.
62 Increase level of verbosity. Can be repeated.
64 Print version information.
71 if test -z "$name"; then
72 echo $progname: Missing
test file name
>&2
75 std perl-tests-tab
$name.t
-t progname
=$name