git @ Cat's Eye Technologies Eightebed / 887aaba
Exit with code 1 if any doctests failed. Add test driver script. Cat's Eye Technologies 8 years ago
2 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
7373 options.compile = True
7474 if options.test:
7575 import doctest
76 doctest.testmod(rooibos)
77 doctest.testmod(context)
78 doctest.testmod(tests)
79 sys.exit(0)
76 (f1, smth) = doctest.testmod(rooibos)
77 (f2, smth) = doctest.testmod(context)
78 (f3, smth) = doctest.testmod(tests)
79 if f1 + f2 + f3 == 0:
80 sys.exit(0)
81 else:
82 sys.exit(1)
8083 if options.interactive:
8184 cmdline(options)
8285 sys.exit(0)
0 #!/bin/sh
1
2 src/8ebed2c.py -t -v