Commit b0c5cc2f authored by Kevin Modzelewski's avatar Kevin Modzelewski

Update the quick_check make target

A quick (40s) sanity test to run before sending it off to travis-ci
for the full test.
parent 2899fa38
...@@ -525,17 +525,9 @@ check: ...@@ -525,17 +525,9 @@ check:
quick_check: quick_check:
$(MAKE) pyston_dbg $(MAKE) pyston_dbg
$(call checksha,./pyston_dbg -q $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d) $(MAKE) check_format
$(call checksha,./pyston_dbg -qn $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d) $(MAKE) unittests
$(call checksha,./pyston_dbg -qO $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d) $(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -a=-S -k --order-by-mtime $(TESTS_DIR) $(ARGS)
$(MAKE) pyston
$(call checksha,./pyston -q $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
$(call checksha,./pyston -qn $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
$(call checksha,./pyston -qO $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
$(MAKE) pyston_prof
$(call checksha,./pyston_prof -q $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
$(call checksha,./pyston_prof -qn $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
$(call checksha,./pyston_prof -qO $(TESTS_DIR)/raytrace_small.py,0544f4621dd45fe94205219488a2576b84dc044d)
Makefile.local: Makefile.local:
echo "Creating default Makefile.local" echo "Creating default Makefile.local"
......
...@@ -428,6 +428,8 @@ parser.add_argument('-e', '--exit-code-only', action='store_true', ...@@ -428,6 +428,8 @@ parser.add_argument('-e', '--exit-code-only', action='store_true',
help="only check exit code; don't run CPython to get expected output to compare against") help="only check exit code; don't run CPython to get expected output to compare against")
parser.add_argument('--skip-failing', action='store_true', parser.add_argument('--skip-failing', action='store_true',
help="skip tests expected to fail") help="skip tests expected to fail")
parser.add_argument('--order-by-mtime', action='store_true',
help="order test execution by modification time, instead of file size")
parser.add_argument('test_dir') parser.add_argument('test_dir')
parser.add_argument('pattern', nargs='*') parser.add_argument('pattern', nargs='*')
...@@ -504,7 +506,10 @@ def main(orig_dir): ...@@ -504,7 +506,10 @@ def main(orig_dir):
IMAGE = '/usr/local/bin/pypy' IMAGE = '/usr/local/bin/pypy'
if not patterns: if not patterns:
tests.sort(key=fileSize) if opts.order_by_mtime:
tests.sort(key=lambda fn:os.stat(fn).st_mtime, reverse=True)
else:
tests.sort(key=fileSize)
for fn in tests: for fn in tests:
check_stats = fn not in IGNORE_STATS check_stats = fn not in IGNORE_STATS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment