# HG changeset patch # User Radhakrishnan <radhakrish...@multicorewareinc.com> # Date 1547115936 -19800 # Thu Jan 10 15:55:36 2019 +0530 # Node ID 31030ee1157296f573fcf906c84ccf1ae1ebbe31 # Parent 15da6f7b2ce5cc122530dcfaabc7032371708679 Add support to run save-load tests in regression seperately
save-load tests command lines in x265 are seperated from regression-test.txt and stored in a new file "save-load-tests.txt". Run "regression-test.py --save-load-test" for testing only save-load feature. diff -r 15da6f7b2ce5 -r 31030ee11572 regression-test.py --- a/regression-test.py Thu Dec 27 17:24:44 2018 +0530 +++ b/regression-test.py Thu Jan 10 15:55:36 2019 +0530 @@ -12,7 +12,10 @@ import utils # setup will call sys.exit() if it determines the tests are unable to continue -utils.setup(sys.argv, 'regression-tests.txt', '', False) +if "--save-load-tests" in sys.argv: + utils.setup(sys.argv, 'save-load-tests.txt', '', False) +else: + utils.setup(sys.argv, 'regression-tests.txt', '', False) from conf import my_builds, my_machine_name, my_sequences, my_x265_source from utils import logger, find_executable diff -r 15da6f7b2ce5 -r 31030ee11572 utils.py --- a/utils.py Thu Dec 27 17:24:44 2018 +0530 +++ b/utils.py Thu Jan 10 15:55:36 2019 +0530 @@ -518,7 +518,7 @@ import getopt longopts = ['builds=', 'help', 'no-make', 'no-bench', 'only=', 'rebuild', - 'save-changed', 'skip=', 'tests='] + 'save-changed', 'skip=', 'tests=', 'save-load-test'] optlist, args = getopt.getopt(argv[1:], 'hb:t:', longopts) for opt, val in optlist: # restrict the list of target builds to just those specified by -b @@ -542,6 +542,10 @@ run_bench = False elif opt == '--rebuild': rebuild = True + elif opt == "--save-load-test": + if argv[0] != "regression-test.py": + print '\n --save-load-test supported only with regression-test.py' + sys.exit(1) elif opt in ('-h', '--help'): print sys.argv[0], '[OPTIONS]\n' print '\t-h/--help show this help'
# HG changeset patch # User Radhakrishnan <radhakrishnan@multicorewareinc.com> # Date 1547115936 -19800 # Thu Jan 10 15:55:36 2019 +0530 # Node ID 31030ee1157296f573fcf906c84ccf1ae1ebbe31 # Parent 15da6f7b2ce5cc122530dcfaabc7032371708679 Add support to run save-load tests in regression seperately save-load tests command lines in x265 are seperated from regression-test.txt and stored in a new file "save-load-tests.txt". Run "regression-test.py --save-load-test" for testing only save-load feature. diff -r 15da6f7b2ce5 -r 31030ee11572 regression-test.py --- a/regression-test.py Thu Dec 27 17:24:44 2018 +0530 +++ b/regression-test.py Thu Jan 10 15:55:36 2019 +0530 @@ -12,7 +12,10 @@ import utils # setup will call sys.exit() if it determines the tests are unable to continue -utils.setup(sys.argv, 'regression-tests.txt', '', False) +if "--save-load-tests" in sys.argv: + utils.setup(sys.argv, 'save-load-tests.txt', '', False) +else: + utils.setup(sys.argv, 'regression-tests.txt', '', False) from conf import my_builds, my_machine_name, my_sequences, my_x265_source from utils import logger, find_executable diff -r 15da6f7b2ce5 -r 31030ee11572 utils.py --- a/utils.py Thu Dec 27 17:24:44 2018 +0530 +++ b/utils.py Thu Jan 10 15:55:36 2019 +0530 @@ -518,7 +518,7 @@ import getopt longopts = ['builds=', 'help', 'no-make', 'no-bench', 'only=', 'rebuild', - 'save-changed', 'skip=', 'tests='] + 'save-changed', 'skip=', 'tests=', 'save-load-test'] optlist, args = getopt.getopt(argv[1:], 'hb:t:', longopts) for opt, val in optlist: # restrict the list of target builds to just those specified by -b @@ -542,6 +542,10 @@ run_bench = False elif opt == '--rebuild': rebuild = True + elif opt == "--save-load-test": + if argv[0] != "regression-test.py": + print '\n --save-load-test supported only with regression-test.py' + sys.exit(1) elif opt in ('-h', '--help'): print sys.argv[0], '[OPTIONS]\n' print '\t-h/--help show this help'
_______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel