-
Notifications
You must be signed in to change notification settings - Fork 2
Add tests - First round #11
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
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
7c92895
TYPO in FATAL_ERROR message
koudis 830aae0
Remove obsolete documentation.
koudis c3b28ae
Forgotten include of CMDEF_CLEANUP
koudis 99363f1
TYPO
koudis e201587
Update TYPOS
koudis 2803091
Reapply "Remove explicit need of uname and lsb_release file"
koudis 79b2a25
Make use `uname -m` again to detect processor architecture
koudis 7354f36
First tests initialized
koudis f844cb0
Context documentation updated
koudis 0631468
Merge pull request #10 from cmakelib/jan_kubalek/lsb_release_remove
koudis da2ddd6
tests - handle cache variables properly
koudis 356a888
Merge remote-tracking branch 'origin/jan_kubalek/remove_lsbrelease_ag…
koudis 3a7563a
Repair Link requirements
koudis fb8cc7b
remove unused test files
koudis cb0875f
Update condition to match prefix correctly
koudis e4024a5
Update required CMake to 3.22
koudis fa399e4
Add github ci/cd fir GNU/Linux
koudis 5f95cd8
Github ci/cd - add macos
koudis b2cb814
github ci/cd update
koudis 664be3a
Update
koudis 5457d22
Github ci/cd - windows
koudis 563fceb
Update
koudis 18fd5cf
TYPOs in system detection
koudis df6d517
Mac OSX bundle fix
koudis c561b66
Add github ci/cd for GNU/Linux
koudis b9dd501
TYPOs in system detection
koudis 9e3977b
Mac OSX bundle fix
koudis 2db7e4d
Set correct Windows flags
koudis ffa84ba
Merge remote-tracking branch 'origin/jan_kubalek/remove_lsbrelease_ag…
koudis 149d0fb
Use Proper tests for Executable.
koudis a74f709
ADD_LIBRARY test fixes
koudis b3e7e44
CMDEF_ADD_LIBRARY update
koudis 48f1477
Update tests for ADD_EXECUTABLE and PACKAGE
koudis 79e6a3f
Documentation, readme, bugfix
koudis a368df8
POSIX
koudis 0306459
Update tests cases.
koudis 96c5e47
Update win32
koudis 6e19bde
Remove test resource file
koudis 60ce31e
Simplify and update documentation, TYPOs
koudis 64a38fb
Use CMAKE_SYSTEM_NAME instead of CMAKE_HOST_INFO macros
koudis 7795692
DEPENDENCY - Transitive Dependency warning
koudis c41852d
TYPOS in documentation and better messages
koudis d8c6954
Update warnings tests
koudis 9e1126e
Remove unnecessary __ in function argument
koudis b307fd8
CI/CD update
koudis 51accc2
GitHub Actions update
koudis 100f9f6
Update to version 1.0.0
koudis f4c1e9b
FIX - update version in windows
koudis 316dabc
Remove forgotten dump variables
koudis b35ecc7
CI/CD - fix typos and update checkout
koudis 9362789
Update main README to reflect the library usage
koudis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
env: | ||
CMLIB_VERSION: 1.0.0 | ||
|
||
jobs: | ||
test_linux: | ||
strategy: | ||
matrix: | ||
image: [ | ||
"test_debian:bullseye", | ||
"test_debian:trixie", | ||
"test_debian:bookworm", | ||
"test_ubuntu:2004", | ||
"test_ubuntu:2204", | ||
"test_ubuntu:2404", | ||
"test_fedora:41", | ||
"test_fedora:42" | ||
] | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cmakelib/${{ matrix.image }} | ||
koudis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Run tests | ||
run: | | ||
git config --global --add safe.directory "$(pwd)" | ||
git remote set-url origin "${{ github.server_url }}/${{ github.repository }}" | ||
git clone --branch "v${CMLIB_VERSION}" https://github.com/cmakelib/cmakelib.git | ||
export CMLIB_DIR=$(pwd)/cmakelib | ||
cd test/ && cmake . | ||
|
||
test_macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Run tests | ||
run: | | ||
git config --global --add safe.directory "$(pwd)" | ||
git remote set-url origin "${{ github.server_url }}/${{ github.repository }}" | ||
git clone --branch "v${CMLIB_VERSION}" https://github.com/cmakelib/cmakelib.git | ||
export CMLIB_DIR=$(pwd)/cmakelib | ||
cd test/ && cmake . | ||
|
||
test_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Run tests | ||
run: | | ||
git config --global --add safe.directory "$(pwd)" | ||
git remote set-url origin "${{ github.server_url }}/${{ github.repository }}" | ||
git clone --branch "v$Env:CMLIB_VERSION" https://github.com/cmakelib/cmakelib.git | ||
$Env:CMLIB_DIR=$(Join-Path -Path $(Get-Location).Path -ChildPath "cmakelib") | ||
cd test/ && cmake . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FinDBASEDEF.cmake") | ||
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindCMDEF.cmake") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
# Detailed Documentation for CMDEF Component | ||
|
||
This directory contains detailed documentation for the CMDEF component of the CMake-lib library. | ||
|
||
## Documentation Files | ||
|
||
- [CacheVariables.md](CacheVariables.md): Describes all cache variables used by the CMDEF component. | ||
- [PackageChain.md](PackageChain.md): Explains the package chain workflow and functions provided by CMDEF. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.