test-run-tests.py 915 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. import argparse
  3. import ConfigParser
  4. import sys
  5. import os
  6. import multiprocessing
  7. import itertools
  8. import copy
  9. import subprocess
  10. from pprint import pprint
  11. from benchmark.benchmarker import Benchmarker
  12. from setup.linux.unbuffered import Unbuffered
  13. from setup.linux import setup_util
  14. from run-tests import StoreSeqAction
  15. parser = argparse.ArgumentParser()
  16. parser.add_argument('--foo', action=StoreSeqAction)
  17. tests = ["1", "1,", "0.23", # Single numbers
  18. "1,5,7", "1,2,-3", "1,1000,12,1,1,1,1,1", # Lists
  19. "1:2:10", "1:2", "10:-2:0", # Sequences
  20. "1,2:1:5" # Complex
  21. ]
  22. for test in tests:
  23. try:
  24. t = "--foo %s" % test
  25. print "Testing %s" % test
  26. print " %s" % parser.parse_args(t.split())
  27. print " Success"
  28. except Exception as e:
  29. print " Exception! %s" % e
  30. continue
  31. # vim: sw=2