Skip to content
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

Merge the lit and unit test suite. #82

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ Common options are:
Testing
=======
Run the `check-llvm-dialects` target to run a suite of automated tests.
Run the `check-llvm-dialects-lit` target to run only the lit tests, and
the `check-llvm-dialects-units` to run only the unit tests.
5 changes: 1 addition & 4 deletions docker/dialects.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ WORKDIR /vulkandriver/builds/ci-build
RUN source /vulkandriver/env.sh \
&& cmake --build . --target llvm-dialects-tblgen

# Run the lit test suite.
# Run all test suites.
RUN source /vulkandriver/env.sh \
&& cmake --build . --target check-llvm-dialects -- -v

# Run the unit tests suite.
RUN source /vulkandriver/env.sh \
&& cmake --build . --target check-llvm-dialects-units -v
9 changes: 7 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,21 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)

add_lit_testsuite(check-llvm-dialects "Running the llvm-dialects regression tests"
add_lit_testsuite(check-llvm-dialects-lit "Running the llvm-dialects regression tests"
${CMAKE_CURRENT_BINARY_DIR}
${exclude_from_check_all}
DEPENDS ${LLVM_DIALECTS_TEST_DEPENDS}
)
set_target_properties(check-llvm-dialects PROPERTIES FOLDER "Tests")
set_target_properties(check-llvm-dialects-lit PROPERTIES FOLDER "Tests")

add_lit_testsuites(LLVM_DIALECTS ${CMAKE_CURRENT_SOURCE_DIR}
${exclude_from_check_all}
DEPENDS ${LLVM_DIALECTS_TEST_DEPENDS}
)

add_subdirectory(unit)

# Alias for all relevant tests
add_custom_target(check-llvm-dialects
DEPENDS check-llvm-dialects-lit check-llvm-dialects-units
)
Loading