From cd8da762f1effae9f3ee3b4c25a541bc63f42712 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 26 Jul 2016 10:00:43 +0200 Subject: [PATCH] created script for running long tests similar to runtests.py --- run_long_tests.py | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) create mode 100755 run_long_tests.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()) -- 1.7.1