tests/py-compile-usage.test


Log

Author Commit Date CI Message
Stefano Lattarini 5b44ce39 2012-02-23T13:07:57 tests: quote 'like this', not `like this', as per GCS recommendation This patch converts the automake testsuite and related files, to the use of new quoting format 'like this' or "like this" rather than `like this'. This is done for consistency with the new recommendations in the GNU Coding Standards, and, well, because I've come to actually prefer the '...' and "..." quoting formats over the `...' one. * tests/README: Update quoting format throughout. Remove some "excessive" use of quoting, and throw in minor rewording where appropriate. * tests/Makefile.am: Likewise, for comments. * tests/CheckListOfTests.am: Likewise. * tests/defs-static.in: Likewise. * tests/defs: Likewise. * tests/trivial-test-driver: Likewise. * Many tests/*.tap, tests/*.test and tests/*.sh files: Likewise, and for the diagnostic and informational messages as well. * tests/gen-testsuite-part: Likewise, and for the generated tests as well.
Stefano Lattarini 641a5a4b 2012-02-16T10:46:23 maint: run "make update-copyright"
Stefano Lattarini d344ff97 2011-09-18T19:53:11 py-compile tests: more faithful 'installcheck' support * tests/py-compile-basedir.test: Use the `$am_scriptsdir' variable instead of `$testsrcdir/../lib', to test more faithfully under "make installcheck". More uses of the `fatal_' subroutine to diagnose hard errors. * tests/py-compile-basic.test: Likewise. * tests/py-compile-basic2.test: Likewise. * tests/py-compile-destdir.test: Likewise. * tests/py-compile-env.test: Likewise. * tests/py-compile-option-terminate.test: Likewise. * tests/py-compile-usage.test: Likewise.
Stefano Lattarini b2b17e15 2011-09-18T19:25:38 tests: remove redundant settings of `errexit' shell flag * tests/aclocal-acdir.test: Do not set the `errexit' shell flag, as it is already set by `tests/defs'. * tests/aclocal-print-acdir.test: Likewise. * tests/distcheck-missing-m4.test: Likewise. * tests/distcheck-outdated-m4.test: Likewise. * tests/java-clean.test: Likewise. * tests/java-compile-install.test: Likewise. * tests/java-compile-run-flat.test: Likewise. * tests/java-compile-run-nested.test: Likewise. * tests/java-mix.test: Likewise. * tests/java-no-duplicate.test: Likewise. * tests/java-nobase.test: Likewise. * tests/java-rebuild.test: Likewise. * tests/java-sources.test: Likewise. * tests/java-uninstall.test: Likewise. * tests/javaflags.test: Likewise. * tests/nobase-nodist.test: Likewise. * tests/py-compile-basedir.test: Likewise. * tests/py-compile-basic.test: Likewise. * tests/py-compile-basic2.test: Likewise. * tests/py-compile-destdir.test: Likewise. * tests/py-compile-env.test: Likewise. * tests/py-compile-option-terminate.test: Likewise. * tests/py-compile-usage.test: Likewise. Since we are at it, add an extra blank line, for clarity.
Stefano Lattarini cd16ceb3 2011-06-08T22:10:08 py-compile: complain on unrecognized options * lib/py-compile: Complain on unrecognized options. Don't be too lax in matching `--help' and `--version' options. * tests/py-compile-usage.test: Extend accordingly. * NEWS: Update.
Stefano Lattarini 429b748c 2011-06-08T22:00:38 py-compile: normalize error and help messages * lib/py-compile: Now error messages do not begin with a capital letter, nor end with a period, as per GNU standards. Prepend the error messages with the name of the script, not with its path. When an invalid usage is recognized, always display the customary message "Try `py-compile --help' ..." on a line of its own. ($me): New variable, containing the name of the program, i.e., `py-compile'. Use it throughout. (usage_error): New function, used to display error messages about invalid usage. * tests/py-compile-usage.test: Extend and tighten accordingly.
Stefano Lattarini a716df2e 2011-06-08T21:37:51 python tests: add "unit tests" on py-compile * tests/py-compile-basic.test: New test. * tests/py-compile-basic2.test: New test. * tests/py-compile-basedir.test: Likewise. * tests/py-compile-destdir.test: Likewise. * tests/py-compile-env.test: Likewise. * tests/py-compile-usage.test: Likewise. * tests/Makefile.am (TESTS): Update. Tested with python 2.0.1, 2.4.6, 2.6.6, 2.7.1, and 3.1.3.