__main__.py 407 B

1234567891011121314151617181920
  1. #
  2. # Python unit test runner
  3. #
  4. # Author : Sander Mathijs van Veen <smvv@kompiler.org>
  5. # License: GPL version 3, see also the file `LICENSE'.
  6. #
  7. import sys
  8. import unittest
  9. from testrunner import TextTestRunner, main
  10. if len(sys.argv) < 2:
  11. print 'Usage: %s tests/test_COMPONENT.py' % sys.argv[0]
  12. sys.exit(1)
  13. # TODO parse verbosity option '-v', given in argv.
  14. verbose = 0
  15. main(sys.argv[1:], verbose)