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
5343b0ba
Commit
5343b0ba
authored
Nov 10, 2014
by
Daniel Agar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake rename check_format, check_pyston to check-format and check-pyston
for consistency
parent
6678d9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+3
-3
No files found.
CMakeLists.txt
View file @
5343b0ba
...
@@ -130,7 +130,7 @@ add_custom_command(TARGET pyston POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_
...
@@ -130,7 +130,7 @@ add_custom_command(TARGET pyston POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_
# test
# test
enable_testing
()
enable_testing
()
add_test
(
NAME lint COMMAND python
${
CMAKE_SOURCE_DIR
}
/tools/lint.py WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_test
(
NAME lint COMMAND python
${
CMAKE_SOURCE_DIR
}
/tools/lint.py 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 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
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j4 -k
${
CMAKE_SOURCE_DIR
}
/test/tests
)
add_test
(
NAME pyston_defaults COMMAND python
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j4 -k
${
CMAKE_SOURCE_DIR
}
/test/tests
)
...
@@ -140,13 +140,13 @@ add_test(NAME pyston_max_compilation_tier COMMAND python ${CMAKE_SOURCE_DIR}/too
...
@@ -140,13 +140,13 @@ add_test(NAME pyston_max_compilation_tier COMMAND python ${CMAKE_SOURCE_DIR}/too
# 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
)
add_custom_target
(
format
${
LLVM_TOOLS_BINARY_DIR
}
/clang-format -style=file -i
${
FORMAT_FILES
}
DEPENDS clang-format WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_custom_target
(
format
${
LLVM_TOOLS_BINARY_DIR
}
/clang-format -style=file -i
${
FORMAT_FILES
}
DEPENDS clang-format WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_custom_target
(
check
_
format
${
CMAKE_SOURCE_DIR
}
/tools/check_format.sh
${
LLVM_TOOLS_BINARY_DIR
}
/clang-format DEPENDS clang-format WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_custom_target
(
check
-
format
${
CMAKE_SOURCE_DIR
}
/tools/check_format.sh
${
LLVM_TOOLS_BINARY_DIR
}
/clang-format DEPENDS clang-format WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
# lint
# lint
add_custom_target
(
lint python
${
CMAKE_SOURCE_DIR
}
/tools/lint.py WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_custom_target
(
lint python
${
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 clang-format ext_cpython ext_pyston unittests
)
add_custom_target
(
check
-
pyston COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure DEPENDS pyston clang-format ext_cpython ext_pyston unittests
)
# {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
)
...
...
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