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