From: Christian Herdtweck Date: Tue, 26 Jul 2016 08:00:43 +0000 (+0200) Subject: created script for running long tests similar to runtests.py X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=cd8da762f1effae9f3ee3b4c25a541bc63f42712;p=python-delta-tar created script for running long tests similar to runtests.py --- diff --git a/run_long_tests.py b/run_long_tests.py new file mode 100755 index 0000000..a3093a8 --- /dev/null +++ b/run_long_tests.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python3 + +""" Run the longer tests, that are too long for unittests + +Currently, there are 2 such tests: +- test_volume_size_accuracy +- test_volume_split (runs forever) + +.. codeauthor:: Intra2net AG +""" + +import sys + +from testing import test_volume_size_accuracy +from testing import test_volume_split + + +def main(): + """ Main function, called when running file as script + + see module doc for more info + """ + + fast_fail = False + print_everything = False + + n_errs = test_volume_size_accuracy.run_all_tests(fast_fail, + print_everything) + if fast_fail and n_errs > 0: + return n_errs + n_errs += test_volume_split.run_forever(fast_fail, print_everything) + + return n_errs + + +if __name__ == '__main__': + sys.exit(main())