Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
8cabbf3d
Commit
8cabbf3d
authored
Jun 13, 2015
by
Daniel Agar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake simplify tester tests with macro
parent
bf38e672
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
CMakeLists.txt
CMakeLists.txt
+11
-13
Makefile
Makefile
+1
-1
No files found.
CMakeLists.txt
View file @
8cabbf3d
...
...
@@ -232,22 +232,20 @@ add_test(NAME check-format COMMAND ${CMAKE_SOURCE_DIR}/tools/check_format.sh ${L
add_test
(
NAME gc_unittest COMMAND gc_unittest
)
add_test
(
NAME analysis_unittest COMMAND analysis_unittest
)
# test/tests
add_test
(
NAME pyston_defaults COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-k -a=-S --order-by-mtime
${
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
)
# skip -O for dbg
macro
(
add_pyston_test testname directory
)
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
}
)
endmacro
()
# 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_
test
(
NAME pyston_max_compilation_tier COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-k -a=-n -a=-x -a=-S
${
CMAKE_SOURCE_DIR
}
/test/tests
)
add_
pyston_test
(
max_compilation_tier tests -a=-O -a=-x
)
endif
()
# cpython tests - we pass -I to cpython tests and skip failing ones b/c they are slooow otherwise
add_test
(
NAME pyston_defaults_cpython_tests COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-k -a=-S --exit-code-only --skip-failing -t30
${
CMAKE_SOURCE_DIR
}
/test/cpython
)
# integration tests
add_test
(
NAME pyston_defaults_integration_tests COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-k -a=-S --exit-code-only --skip-failing -t600
${
CMAKE_SOURCE_DIR
}
/test/integration
)
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_
test
(
NAME pyston_defaults_extra_tests COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-k -a=-S -t600 --exit-code-only
${
CMAKE_SOURCE_DIR
}
/test/extra
)
add_
pyston_test
(
defaults extra -t600 --exit-code-only
)
endif
()
...
...
Makefile
View file @
8cabbf3d
...
...
@@ -527,7 +527,7 @@ check:
.PHONY
:
quick_check
quick_check
:
$(MAKE)
pyston_dbg check-deps
(
cd
$(CMAKE_DIR_DBG)
&&
ctest
-V
-R
'check-format|unittests|pyston_defaults
|pyston
_cpython'
)
(
cd
$(CMAKE_DIR_DBG)
&&
ctest
-V
-R
'check-format|unittests|pyston_defaults
_tests|pyston_defaults
_cpython'
)
Makefile.local
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment