@@ -31,8 +31,8 @@ GTEST_DIR := $(DEPS_DIR)/gtest-1.7.0
3131
3232USE_DEBUG_LIBUNWIND := 0
3333
34- MAX_MEM_KB := 500000
35- MAX_DBG_MEM_KB := 500000
34+ MAX_MEM_KB := 1500000
35+ MAX_DBG_MEM_KB := 1500000
3636
3737TEST_THREADS := 1
3838
@@ -411,10 +411,10 @@ $1_unittest:
411411 $(NINJA ) -C $(CMAKE_DIR_DBG ) $1_unittest $(NINJAFLAGS )
412412 ln -sf $(CMAKE_DIR_DBG ) /$1_unittest .
413413dbg_$1_unittests: $1_unittest
414- zsh -c 'ulimit -m $(MAX_MEM_KB ) ; time $(GDB ) $(GDB_CMDS ) --args ./$1_unittest --gtest_break_on_failure $(ARGS ) '
414+ zsh -c 'ulimit -v $(MAX_MEM_KB ) ; time $(GDB ) $(GDB_CMDS ) --args ./$1_unittest --gtest_break_on_failure $(ARGS ) '
415415unittests:: $1_unittest
416416run_$1_unittests: $1_unittest
417- zsh -c 'ulimit -m $(MAX_MEM_KB ) ; time ./$1_unittest $(ARGS ) '
417+ zsh -c 'ulimit -v $(MAX_MEM_KB ) ; time ./$1_unittest $(ARGS ) '
418418run_unittests:: run_$1_unittests
419419)
420420endef
@@ -759,23 +759,23 @@ define make_target
759759$(eval \
760760.PHONY: test$1 check$1
761761check$1 test$1: $(PYTHON_EXE_DEPS ) pyston$1
762- $(PYTHON ) $(TOOLS_DIR ) /tester.py -R pyston$1 -j$(TEST_THREADS ) -a=-S -k $(TESTS_DIR ) $(ARGS )
762+ $(PYTHON ) $(TOOLS_DIR ) /tester.py -q - R pyston$1 -j$(TEST_THREADS ) -a=-S -k $(TESTS_DIR ) $(ARGS )
763763 @# we pass -I to cpython tests and skip failing ones because they are sloooow otherwise
764- $(PYTHON ) $(TOOLS_DIR ) /tester.py -R pyston$1 -j$(TEST_THREADS ) -a=-S -k --exit-code-only --skip-failing -t50 $(TEST_DIR ) /cpython $(ARGS )
765- $(PYTHON ) $(TOOLS_DIR ) /tester.py -R pyston$1 -j$(TEST_THREADS ) -k -a=-S --exit-code-only --skip-failing -t600 $(TEST_DIR ) /integration $(ARGS )
766- $(PYTHON ) $(TOOLS_DIR ) /tester.py -R pyston$1 -j$(TEST_THREADS ) -a=-n -a=-S -t50 -k $(TESTS_DIR ) $(ARGS )
767- $(PYTHON ) $(TOOLS_DIR ) /tester.py -R pyston$1 -j$(TEST_THREADS ) -a=-O -a=-S -k $(TESTS_DIR ) $(ARGS )
764+ $(PYTHON ) $(TOOLS_DIR ) /tester.py -q - R pyston$1 -j$(TEST_THREADS ) -a=-S -k --exit-code-only --skip-failing -t50 $(TEST_DIR ) /cpython $(ARGS )
765+ $(PYTHON ) $(TOOLS_DIR ) /tester.py -q - R pyston$1 -j$(TEST_THREADS ) -k -a=-S --exit-code-only --skip-failing -t600 $(TEST_DIR ) /integration $(ARGS )
766+ $(PYTHON ) $(TOOLS_DIR ) /tester.py -q - R pyston$1 -j$(TEST_THREADS ) -a=-n -a=-S -t50 -k $(TESTS_DIR ) $(ARGS )
767+ $(PYTHON ) $(TOOLS_DIR ) /tester.py -q - R pyston$1 -j$(TEST_THREADS ) -a=-L -a=-S -k $(TESTS_DIR ) $(ARGS )
768768
769769.PHONY: run$1 dbg$1
770770run$1: pyston$1 $$(RUN_DEPS )
771771 PYTHONPATH=test/test_extension:$${PYTHONPATH} ./pyston$1 $$(ARGS )
772772dbg$1: pyston$1 $$(RUN_DEPS )
773- PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -m $$(MAX_DBG_MEM_KB ) ; $$(GDB ) $$(GDB_CMDS ) --args ./pyston$1 $$(ARGS ) '
773+ PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -v $$(MAX_DBG_MEM_KB ) ; $$(GDB ) $$(GDB_CMDS ) --args ./pyston$1 $$(ARGS ) '
774774nosearch_run$1_% : % .py pyston$1 $$(RUN_DEPS )
775- $(VERB ) PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -m $$(MAX_MEM_KB ) ; time ./pyston$1 $$(ARGS ) $$< '
775+ $(VERB ) PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -v $$(MAX_MEM_KB ) ; time ./pyston$1 $$(ARGS ) $$< '
776776$$(call make_search,run$1_% )
777777nosearch_dbg$1_% : % .py pyston$1 $$(RUN_DEPS )
778- $(VERB ) PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -m $$(MAX_DBG_MEM_KB ) ; $$(GDB ) $$(GDB_CMDS ) --args ./pyston$1 $$(ARGS ) $$< '
778+ $(VERB ) PYTHONPATH=test/test_extension:$${PYTHONPATH} zsh -c 'ulimit -v $$(MAX_DBG_MEM_KB ) ; $$(GDB ) $$(GDB_CMDS ) --args ./pyston$1 $$(ARGS ) $$< '
779779$$(call make_search,dbg$1_% )
780780
781781ifneq ($$(ENABLE_VALGRIND ) ,0)
@@ -905,7 +905,7 @@ opreportcg:
905905
906906.PHONY : watch_% watch wdbg_%
907907watch_% :
908- @ ( ulimit -t 60; ulimit -m $( MAK_MEM_KB) ; \
908+ @ ( ulimit -t 60; ulimit -v $( MAK_MEM_KB) ; \
909909 TARGET=$(dir $@ )$(patsubst watch_% ,% ,$(notdir $@ ) ) ; \
910910 clear; $(MAKE ) $$ TARGET $(WATCH_ARGS ) ; true ; \
911911 while inotifywait -q -e modify -e attrib -e move -e move_self -e create -e delete -e delete_self \
@@ -921,7 +921,7 @@ wdbg_%:
921921 $(MAKE ) $(patsubst wdbg_% ,watch_dbg_% ,$@ ) GDB_POST_CMDS=" --ex quit"
922922
923923.PHONY : head_%
924- HEAD : = 40
924+ HEAD ? = 40
925925HEAD_SKIP := 6
926926head_% :
927927 @ bash -c " set -o pipefail; script -e -q -c '$( MAKE) $( dir $@ ) $( patsubst head_%,%,$( notdir $@ ) ) ' /dev/null | tail -n+$( HEAD_SKIP) | head -n$( HEAD) "
@@ -953,7 +953,7 @@ test_cpp_ll:
953953.PHONY : bench_exceptions
954954bench_exceptions :
955955 $(CLANGPP_EXE ) $(TEST_DIR ) /bench_exceptions.cpp -o bench_exceptions -O3 -std=c++11
956- zsh -c ' ulimit -m $(MAX_MEM_KB); time ./bench_exceptions'
956+ zsh -c ' ulimit -v $(MAX_MEM_KB); time ./bench_exceptions'
957957 rm bench_exceptions
958958
959959TEST_EXT_MODULE_NAMES := basic_test descr_test slots_test type_test api_test
0 commit comments