Skip to content

remove @pytest.mark.skip #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
only copy ompile_commands.json when it exist
  • Loading branch information
shenxianpeng committed Aug 16, 2024
commit add16b12626948e36863ba21fe79438368139a72
6 changes: 4 additions & 2 deletions testing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.21)

# Set the project name to your project name
project(main C CXX)
Expand All @@ -10,4 +10,6 @@ add_executable(main
)
target_include_directories(main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

file(COPY ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}")
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
endif()
1 change: 1 addition & 0 deletions tests/test_clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def generate_compilation_database():
# Generate compilation database
subprocess.run(['mkdir', '-p', 'build'])
subprocess.run(['cmake', '-Bbuild', 'testing/'])
subprocess.run(['cmake', '-Bbuild', 'testing/'])


@pytest.mark.parametrize(
Expand Down
Loading