Commit 3afc5d2e authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #607 from dagar/ctest

cmake testing
parents 46d6bba3 8cabbf3d
...@@ -46,26 +46,24 @@ install: ...@@ -46,26 +46,24 @@ install:
- git config --global user.name "Your Name" - git config --global user.name "Your Name"
- mkdir ~/pyston-build && cd ~/pyston-build - mkdir ~/pyston-build && cd ~/pyston-build
- make -C $TRAVIS_BUILD_DIR llvm_up - make -C $TRAVIS_BUILD_DIR llvm_up
- cmake -GNinja -DTEST_THREADS=4 $TRAVIS_BUILD_DIR - cmake -GNinja -DTEST_THREADS=4 -DENABLE_EXTRA_TESTS=ON $TRAVIS_BUILD_DIR
- ninja libunwind ext_cpython
before_script:
- mysql -e 'create database mysqldb_test charset utf8;'
script: script:
- echo 'Building Pyston' && echo -en 'travis_fold:start:compiling\\r'
- ccache -z - ccache -z
- PYSTON_RUN_ARGS=G ninja -j4 check-pyston - PYSTON_RUN_ARGS=G ninja -j4 check-deps
- ccache -s - ccache -s
- mysql -e 'create database mysqldb_test charset utf8;' - echo -en 'travis_fold:end:compiling\\r'
- PYSTON_RUN_ARGS=G python $TRAVIS_BUILD_DIR/tools/tester.py -R ./pyston -a=-S -k -t600 --exit-code-only $TRAVIS_BUILD_DIR/test/extra - ctest --output-on-failure
os: os:
- linux - linux
# - osx # - osx
notifications: notifications:
irc:
channels:
- "chat.freenode.net#pyston"
on_success: [change]
webhooks: webhooks:
urls: urls:
- https://webhooks.gitter.im/e/7256425a36658faa8b9b - https://webhooks.gitter.im/e/7256425a36658faa8b9b
......
...@@ -18,6 +18,7 @@ if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release" AND NOT ${CMAKE_BUILD_TYPE} STREQU ...@@ -18,6 +18,7 @@ if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release" AND NOT ${CMAKE_BUILD_TYPE} STREQU
endif() endif()
option(ENABLE_CCACHE "enable caching compiler output" ON) option(ENABLE_CCACHE "enable caching compiler output" ON)
option(ENABLE_EXTRA_TESTS "pyston extra tests" OFF)
option(ENABLE_GIL "threading use GIL" ON) option(ENABLE_GIL "threading use GIL" ON)
option(ENABLE_GOLD "enable the gold linker" ON) option(ENABLE_GOLD "enable the gold linker" ON)
option(ENABLE_GPERFTOOLS "enable the google performance tools" OFF) option(ENABLE_GPERFTOOLS "enable the google performance tools" OFF)
...@@ -230,12 +231,23 @@ add_test(NAME lint COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/lint.py WORKI ...@@ -230,12 +231,23 @@ add_test(NAME lint COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/lint.py WORKI
add_test(NAME check-format COMMAND ${CMAKE_SOURCE_DIR}/tools/check_format.sh ${LLVM_TOOLS_BINARY_DIR}/clang-format WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src) add_test(NAME check-format COMMAND ${CMAKE_SOURCE_DIR}/tools/check_format.sh ${LLVM_TOOLS_BINARY_DIR}/clang-format WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src)
add_test(NAME gc_unittest COMMAND gc_unittest) add_test(NAME gc_unittest COMMAND gc_unittest)
add_test(NAME analysis_unittest COMMAND analysis_unittest) add_test(NAME analysis_unittest COMMAND analysis_unittest)
add_test(NAME pyston_defaults COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -a=-S -k ${CMAKE_SOURCE_DIR}/test/tests)
# we pass -I to cpython tests and skip failing ones b/c they are slooow otherwise macro(add_pyston_test testname directory)
add_test(NAME pyston_defaults_cpython_tests COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -a=-S -k --exit-code-only --skip-failing -t30 ${CMAKE_SOURCE_DIR}/test/cpython) add_test(NAME pyston_${testname}_${directory} COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -k -a=-S ${ARGV2} ${ARGV3} ${ARGV4} ${CMAKE_SOURCE_DIR}/test/${directory})
add_test(NAME pyston_defaults_integration_tests COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -a=-S -k --exit-code-only --skip-failing -t600 ${CMAKE_SOURCE_DIR}/test/integration) endmacro()
add_test(NAME pyston_max_compilation_tier COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -R ./pyston -j${TEST_THREADS} -a=-O -a=-S -k ${CMAKE_SOURCE_DIR}/test/tests)
add_test(NAME pyston_old_parser COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/tester.py -a=-x -R ./pyston -j${TEST_THREADS} -a=-n -a=-S -k ${CMAKE_SOURCE_DIR}/test/tests) # tests testname directory arguments
add_pyston_test(defaults tests --order-by-mtime)
add_pyston_test(old_parser tests -a=-n -a=-x)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
add_pyston_test(max_compilation_tier tests -a=-O -a=-x)
endif()
add_pyston_test(defaults cpython --exit-code-only --skip-failing -t30)
add_pyston_test(defaults integration --exit-code-only --skip-failing -t600)
if(ENABLE_EXTRA_TESTS)
add_pyston_test(defaults extra -t600 --exit-code-only)
endif()
# format # format
file(GLOB_RECURSE FORMAT_FILES ${CMAKE_SOURCE_DIR}/src/*.h ${CMAKE_SOURCE_DIR}/src/*.cpp) file(GLOB_RECURSE FORMAT_FILES ${CMAKE_SOURCE_DIR}/src/*.h ${CMAKE_SOURCE_DIR}/src/*.cpp)
...@@ -246,7 +258,8 @@ add_custom_target(check-format ${CMAKE_SOURCE_DIR}/tools/check_format.sh ${LLVM_ ...@@ -246,7 +258,8 @@ add_custom_target(check-format ${CMAKE_SOURCE_DIR}/tools/check_format.sh ${LLVM_
add_custom_target(lint ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/lint.py WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src) add_custom_target(lint ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/lint.py WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src)
# check # check
add_custom_target(check-pyston COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure DEPENDS pyston copy_stdlib copy_libpyston clang-format ext_cpython ext_pyston unittests sharedmods) add_custom_target(check-deps DEPENDS pyston copy_stdlib copy_libpyston clang-format ext_cpython ext_pyston unittests sharedmods)
add_custom_target(check-pyston COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure DEPENDS check-deps)
# {run,dbg,perf,memcheck,memleaks,cachegrind}_TESTNAME # {run,dbg,perf,memcheck,memleaks,cachegrind}_TESTNAME
file(GLOB RUNTARGETS ${CMAKE_SOURCE_DIR}/test/tests/*.py ${CMAKE_SOURCE_DIR}/microbenchmarks/*.py ${CMAKE_SOURCE_DIR}/minibenchmarks/*.py) file(GLOB RUNTARGETS ${CMAKE_SOURCE_DIR}/test/tests/*.py ${CMAKE_SOURCE_DIR}/microbenchmarks/*.py ${CMAKE_SOURCE_DIR}/minibenchmarks/*.py)
......
...@@ -54,7 +54,6 @@ ETAGS := ctags-exuberant -e ...@@ -54,7 +54,6 @@ ETAGS := ctags-exuberant -e
# to disk space concerns. # to disk space concerns.
FORCE_TRUNK_BINARIES := 0 FORCE_TRUNK_BINARIES := 0
USE_CMAKE := 1
NINJA := ninja NINJA := ninja
CMAKE_DIR_DBG := $(BUILD_DIR)/Debug CMAKE_DIR_DBG := $(BUILD_DIR)/Debug
...@@ -440,17 +439,12 @@ NONSTDLIB_SRCS := $(MAIN_SRCS) $(OPTIONAL_SRCS) $(TOOL_SRCS) $(UNITTEST_SRCS) ...@@ -440,17 +439,12 @@ NONSTDLIB_SRCS := $(MAIN_SRCS) $(OPTIONAL_SRCS) $(TOOL_SRCS) $(UNITTEST_SRCS)
# ext_pyston (building test/test_extension) is required even in cmake mode since # ext_pyston (building test/test_extension) is required even in cmake mode since
# we manually add test/test_extension to the path # we manually add test/test_extension to the path
RUN_DEPS := ext_pyston RUN_DEPS := ext_pyston
ifneq ($(USE_CMAKE),1)
RUN_DEPS := $(RUN_DEPS) sharedmods
endif
# The set of dependencies (beyond the executable) required to do `make check` / `make check_foo`. # The set of dependencies (beyond the executable) required to do `make check` / `make check_foo`.
# The tester bases all paths based on the executable, so in cmake mode we need to have cmake # The tester bases all paths based on the executable, so in cmake mode we need to have cmake
# build all of the shared modules. # build all of the shared modules.
CHECK_DEPS := check-deps:
ifneq ($(USE_CMAKE),1) $(NINJA) -C $(CMAKE_DIR_DBG) check-deps
CHECK_DEPS := ext_pyston ext_python sharedmods
endif
.PHONY: small_all .PHONY: small_all
small_all: pyston_dbg $(RUN_DEPS) small_all: pyston_dbg $(RUN_DEPS)
...@@ -460,7 +454,7 @@ small_all: pyston_dbg $(RUN_DEPS) ...@@ -460,7 +454,7 @@ small_all: pyston_dbg $(RUN_DEPS)
# @# have to do this in a recursive make so that dependency is enforced: # @# have to do this in a recursive make so that dependency is enforced:
# $(MAKE) pyston_all # $(MAKE) pyston_all
# all: pyston_dbg pyston_release pyston_oprof pyston_prof $(OPTIONAL_SRCS:.cpp=.o) ext_python ext_pyston # all: pyston_dbg pyston_release pyston_oprof pyston_prof $(OPTIONAL_SRCS:.cpp=.o) ext_python ext_pyston
all: pyston_dbg pyston_release pyston_gcc unittests $(RUN_DEPS) $(CHECK_DEPS) all: pyston_dbg pyston_release pyston_gcc unittests check-deps $(RUN_DEPS)
ALL_HEADERS := $(wildcard src/*/*.h) $(wildcard src/*/*/*.h) $(wildcard from_cpython/Include/*.h) ALL_HEADERS := $(wildcard src/*/*.h) $(wildcard src/*/*/*.h) $(wildcard from_cpython/Include/*.h)
tags: $(SRCS) $(OPTIONAL_SRCS) $(FROM_CPYTHON_SRCS) $(ALL_HEADERS) tags: $(SRCS) $(OPTIONAL_SRCS) $(FROM_CPYTHON_SRCS) $(ALL_HEADERS)
...@@ -475,16 +469,10 @@ NON_ENTRY_OBJS := $(filter-out src/jit.o,$(OBJS)) ...@@ -475,16 +469,10 @@ NON_ENTRY_OBJS := $(filter-out src/jit.o,$(OBJS))
define add_unittest define add_unittest
$(eval \ $(eval \
ifneq ($(USE_CMAKE),1)
$1_unittest: $(GTEST_DIR)/src/gtest-all.o $(NON_ENTRY_OBJS) $(BUILD_SYSTEM_DEPS) $(UNITTEST_DIR)/$1.o
$(ECHO) Linking $$@
$(VERB) $(CXX) $(NON_ENTRY_OBJS) $(GTEST_DIR)/src/gtest-all.o $(GTEST_DIR)/src/gtest_main.o $(UNITTEST_DIR)/$1.o $(LDFLAGS) -o $$@
else
.PHONY: $1_unittest .PHONY: $1_unittest
$1_unittest: $1_unittest:
$(NINJA) -C $(CMAKE_DIR_DBG) $1_unittest $(NINJAFLAGS) $(NINJA) -C $(CMAKE_DIR_DBG) $1_unittest $(NINJAFLAGS)
ln -sf $(CMAKE_DIR_DBG)/$1_unittest . ln -sf $(CMAKE_DIR_DBG)/$1_unittest .
endif
dbg_$1_unittests: $1_unittest dbg_$1_unittests: $1_unittest
zsh -c 'ulimit -m $(MAX_MEM_KB); time $(GDB) $(GDB_CMDS) --args ./$1_unittest --gtest_break_on_failure $(ARGS)' zsh -c 'ulimit -m $(MAX_MEM_KB); time $(GDB) $(GDB_CMDS) --args ./$1_unittest --gtest_break_on_failure $(ARGS)'
unittests:: $1_unittest unittests:: $1_unittest
...@@ -525,28 +513,12 @@ cpplint: ...@@ -525,28 +513,12 @@ cpplint:
.PHONY: check .PHONY: check
check: check:
@# These are ordered roughly in decreasing order of (chance will expose issue) / (time to run test) @# These are ordered roughly in decreasing order of (chance will expose issue) / (time to run test)
$(MAKE) lint
$(MAKE) check_format
$(MAKE) pyston_dbg $(CHECK_DEPS)
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -k -a=-S $(TESTS_DIR) $(ARGS)
@# we pass -I to cpython tests & skip failing ones because they are sloooow otherwise
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -k -a=-S --exit-code-only --skip-failing -t30 $(TEST_DIR)/cpython $(ARGS)
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -k -a=-S --exit-code-only --skip-failing -t600 $(TEST_DIR)/integration $(ARGS)
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -k -a=-n -a=-x -a=-S $(TESTS_DIR) $(ARGS)
@# skip -O for dbg
$(MAKE) run_unittests ARGS= $(MAKE) pyston_dbg check-deps
( cd $(CMAKE_DIR_DBG) && ctest -V )
$(MAKE) pyston_release $(MAKE) pyston_release
@# It can be useful to test release mode, since it actually exposes different functionality ( cd $(CMAKE_DIR_RELEASE) && ctest -V -R pyston )
@# since we can make different decisions about which internal functions to inline or not.
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_release -j$(TEST_THREADS) -k -a=-S $(TESTS_DIR) $(ARGS)
@# we pass -I to cpython tests and skip failing ones because they are sloooow otherwise
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_release -j$(TEST_THREADS) -k -a=-S --exit-code-only --skip-failing $(TEST_DIR)/cpython $(ARGS)
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_release -j$(TEST_THREADS) -k -a=-S --exit-code-only --skip-failing -t120 $(TEST_DIR)/integration $(ARGS)
@# skip -n for dbg
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_release -j$(TEST_THREADS) -k -a=-O -a=-x -a=-S $(TESTS_DIR) $(ARGS)
echo "All tests passed" echo "All tests passed"
...@@ -554,29 +526,9 @@ check: ...@@ -554,29 +526,9 @@ check:
# Travis-CI do the full test. # Travis-CI do the full test.
.PHONY: quick_check .PHONY: quick_check
quick_check: quick_check:
$(MAKE) pyston_dbg $(CHECK_DEPS) $(MAKE) pyston_dbg check-deps
$(MAKE) check_format ( cd $(CMAKE_DIR_DBG) && ctest -V -R 'check-format|unittests|pyston_defaults_tests|pyston_defaults_cpython' )
$(MAKE) unittests
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -a=-S -k --order-by-mtime $(TESTS_DIR) $(ARGS)
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston_dbg -j$(TEST_THREADS) -a=-S -k --exit-code-only --skip-failing $(TEST_DIR)/cpython $(ARGS)
# A comprehensive test that checks that all three build formats (makefile, makefile->cmake shim, cmake) work.
# This should only be necessary when doing work on the build system; it shouldn't be necessary for normal development.
.PHONY: full_check
full_check:
$(MAKE) clean
rm -rfv $(CMAKE_DIR_DBG)
$(MAKE) llvm_quick llvm_release USE_CMAKE=0
$(MAKE) check_dbg USE_CMAKE=0
\
$(MAKE) clean
rm -rfv $(CMAKE_DIR_DBG)
$(MAKE) check_dbg USE_CMAKE=0
\
$(MAKE) clean
rm -rfv $(CMAKE_DIR_DBG)
$(MAKE) $(CMAKE_SETUP_DBG)
ninja -C $(CMAKE_DIR_DBG) check-pyston
Makefile.local: Makefile.local:
echo "Creating default Makefile.local" echo "Creating default Makefile.local"
...@@ -824,18 +776,10 @@ endef ...@@ -824,18 +776,10 @@ endef
PASS_SRCS := codegen/opt/aa.cpp PASS_SRCS := codegen/opt/aa.cpp
PASS_OBJS := $(PASS_SRCS:.cpp=.standalone.o) PASS_OBJS := $(PASS_SRCS:.cpp=.standalone.o)
ifneq ($(USE_CMAKE),1)
$(call make_compile_config,,$(CXXFLAGS_DBG))
$(call make_compile_config,.release,$(CXXFLAGS_RELEASE))
$(call make_compile_config,.grwl,$(CXXFLAGS_RELEASE) -DTHREADING_USE_GRWL=1 -DTHREADING_USE_GIL=0 -UBINARY_SUFFIX -DBINARY_SUFFIX=_grwl)
$(call make_compile_config,.grwl_dbg,$(CXXFLAGS_DBG) -DTHREADING_USE_GRWL=1 -DTHREADING_USE_GIL=0 -UBINARY_SUFFIX -DBINARY_SUFFIX=_grwl_dbg -UBINARY_STRIPPED_SUFFIX -DBINARY_STRIPPED_SUFFIX=)
$(call make_compile_config,.nosync,$(CXXFLAGS_RELEASE) -DTHREADING_USE_GRWL=0 -DTHREADING_USE_GIL=0 -UBINARY_SUFFIX -DBINARY_SUFFIX=_nosync)
else
%.o: %.cpp $(CMAKE_SETUP_DBG) %.o: %.cpp $(CMAKE_SETUP_DBG)
$(NINJA) -C $(CMAKE_DIR_DBG) src/CMakeFiles/PYSTON_OBJECTS.dir/$(patsubst src/%.o,%.cpp.o,$@) $(NINJAFLAGS) $(NINJA) -C $(CMAKE_DIR_DBG) src/CMakeFiles/PYSTON_OBJECTS.dir/$(patsubst src/%.o,%.cpp.o,$@) $(NINJAFLAGS)
%.release.o: %.cpp $(CMAKE_SETUP_RELEASE) %.release.o: %.cpp $(CMAKE_SETUP_RELEASE)
$(NINJA) -C $(CMAKE_DIR_RELEASE) src/CMakeFiles/PYSTON_OBJECTS.dir/$(patsubst src/%.release.o,%.cpp.o,$@) $(NINJAFLAGS) $(NINJA) -C $(CMAKE_DIR_RELEASE) src/CMakeFiles/PYSTON_OBJECTS.dir/$(patsubst src/%.release.o,%.cpp.o,$@) $(NINJAFLAGS)
endif
$(UNITTEST_SRCS:.cpp=.o): CXXFLAGS += -isystem $(GTEST_DIR)/include $(UNITTEST_SRCS:.cpp=.o): CXXFLAGS += -isystem $(GTEST_DIR)/include
...@@ -927,12 +871,6 @@ cmake_check: ...@@ -927,12 +871,6 @@ cmake_check:
@cmake --version >/dev/null || (echo "cmake not available"; false) @cmake --version >/dev/null || (echo "cmake not available"; false)
@ninja --version >/dev/null || (echo "ninja not available"; false) @ninja --version >/dev/null || (echo "ninja not available"; false)
ifneq ($(USE_CMAKE),1)
$(call link,_dbg,$(OBJS),$(LDFLAGS),$(LLVM_DEPS))
$(call link,_debug,$(OBJS),$(LDFLAGS_DEBUG),$(LLVM_DEBUG_DEPS))
$(call link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
else
.PHONY: cmake_check clang_check .PHONY: cmake_check clang_check
$(CMAKE_SETUP_DBG): $(CMAKE_SETUP_DBG):
@$(MAKE) cmake_check @$(MAKE) cmake_check
...@@ -956,7 +894,7 @@ pyston_dbg: $(CMAKE_SETUP_DBG) ...@@ -956,7 +894,7 @@ pyston_dbg: $(CMAKE_SETUP_DBG)
pyston_release: $(CMAKE_SETUP_RELEASE) pyston_release: $(CMAKE_SETUP_RELEASE)
$(NINJA) -C $(CMAKE_DIR_RELEASE) pyston copy_stdlib copy_libpyston $(CMAKE_SHAREDMODS) ext_cpython $(NINJAFLAGS) $(NINJA) -C $(CMAKE_DIR_RELEASE) pyston copy_stdlib copy_libpyston $(CMAKE_SHAREDMODS) ext_cpython $(NINJAFLAGS)
ln -sf $(CMAKE_DIR_RELEASE)/pyston pyston_release ln -sf $(CMAKE_DIR_RELEASE)/pyston pyston_release
endif
CMAKE_DIR_GCC := $(CMAKE_DIR_DBG_GCC) CMAKE_DIR_GCC := $(CMAKE_DIR_DBG_GCC)
CMAKE_SETUP_GCC := $(CMAKE_DIR_GCC)/build.ninja CMAKE_SETUP_GCC := $(CMAKE_DIR_GCC)/build.ninja
$(CMAKE_SETUP_GCC): $(CMAKE_SETUP_GCC):
...@@ -969,18 +907,10 @@ pyston_gcc: $(CMAKE_SETUP_GCC) ...@@ -969,18 +907,10 @@ pyston_gcc: $(CMAKE_SETUP_GCC)
ln -sf $(CMAKE_DIR_DBG_GCC)/pyston pyston_gcc ln -sf $(CMAKE_DIR_DBG_GCC)/pyston pyston_gcc
.PHONY: format check_format .PHONY: format check_format
ifneq ($(USE_CMAKE),1)
format:
cd src && find \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 $(LLVM_BIN)/clang-format -style=file -i
check_format:
$(ECHO) checking formatting...
$(VERB) cd src && ../tools/check_format.sh $(LLVM_BIN)/clang-format
else
format: $(CMAKE_SETUP_RELEASE) format: $(CMAKE_SETUP_RELEASE)
$(NINJA) -C $(CMAKE_DIR_RELEASE) format $(NINJA) -C $(CMAKE_DIR_RELEASE) format
check_format: $(CMAKE_SETUP_RELEASE) check_format: $(CMAKE_SETUP_RELEASE)
$(NINJA) -C $(CMAKE_DIR_RELEASE) check-format $(NINJA) -C $(CMAKE_DIR_RELEASE) check-format
endif
-include $(wildcard src/*.d) $(wildcard src/*/*.d) $(wildcard src/*/*/*.d) $(wildcard $(UNITTEST_DIR)/*.d) $(wildcard from_cpython/*/*.d) $(wildcard from_cpython/*/*/*.d) -include $(wildcard src/*.d) $(wildcard src/*/*.d) $(wildcard src/*/*/*.d) $(wildcard $(UNITTEST_DIR)/*.d) $(wildcard from_cpython/*/*.d) $(wildcard from_cpython/*/*/*.d)
...@@ -1020,7 +950,7 @@ endef ...@@ -1020,7 +950,7 @@ endef
define make_target define make_target
$(eval \ $(eval \
.PHONY: test$1 check$1 .PHONY: test$1 check$1
check$1 test$1: $(PYTHON_EXE_DEPS) pyston$1 $(CHECK_DEPS) check$1 test$1: $(PYTHON_EXE_DEPS) pyston$1
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston$1 -j$(TEST_THREADS) -a=-S -k $(TESTS_DIR) $(ARGS) $(PYTHON) $(TOOLS_DIR)/tester.py -R pyston$1 -j$(TEST_THREADS) -a=-S -k $(TESTS_DIR) $(ARGS)
@# we pass -I to cpython tests and skip failing ones because they are sloooow otherwise @# we pass -I to cpython tests and skip failing ones because they are sloooow otherwise
$(PYTHON) $(TOOLS_DIR)/tester.py -R pyston$1 -j$(TEST_THREADS) -a=-S -k --exit-code-only --skip-failing -t30 $(TEST_DIR)/cpython $(ARGS) $(PYTHON) $(TOOLS_DIR)/tester.py -R pyston$1 -j$(TEST_THREADS) -a=-S -k --exit-code-only --skip-failing -t30 $(TEST_DIR)/cpython $(ARGS)
...@@ -1097,7 +1027,7 @@ $(call make_search,runpy_%) ...@@ -1097,7 +1027,7 @@ $(call make_search,runpy_%)
$(call make_search,pyrun_%) $(call make_search,pyrun_%)
$(call make_search,pypyrun_%) $(call make_search,pypyrun_%)
nosearch_check_%: %.py pyston_dbg $(CHECK_DEPS) nosearch_check_%: %.py pyston_dbg check-deps
$(MAKE) check_dbg ARGS="$(patsubst %.py,%,$(notdir $<)) -K" $(MAKE) check_dbg ARGS="$(patsubst %.py,%,$(notdir $<)) -K"
$(call make_search,check_%) $(call make_search,check_%)
......
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