forked from cpm-cmake/CPM.cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply formatting rules (cpm-cmake#564)
- Loading branch information
1 parent
2cfef09
commit 4d89e91
Showing
2 changed files
with
19 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -10,15 +10,10 @@ cpm_parse_add_package_single_arg("gh:cpm-cmake/[email protected]" args) | |
assert_equal("GITHUB_REPOSITORY;cpm-cmake/CPM.cmake;VERSION;1.2.3" "${args}") | ||
|
||
cpm_parse_add_package_single_arg("gh:cpm-cmake/CPM.cmake#master" args) | ||
assert_equal( | ||
"GITHUB_REPOSITORY;cpm-cmake/CPM.cmake;GIT_TAG;master" "${args}" | ||
) | ||
assert_equal("GITHUB_REPOSITORY;cpm-cmake/CPM.cmake;GIT_TAG;master" "${args}") | ||
|
||
cpm_parse_add_package_single_arg("gh:cpm-cmake/[email protected]#asdf" args) | ||
assert_equal( | ||
"GITHUB_REPOSITORY;cpm-cmake/CPM.cmake;VERSION;0.20.3;GIT_TAG;asdf" | ||
"${args}" | ||
) | ||
assert_equal("GITHUB_REPOSITORY;cpm-cmake/CPM.cmake;VERSION;0.20.3;GIT_TAG;asdf" "${args}") | ||
|
||
cpm_parse_add_package_single_arg("gh:a/b#c@d" args) | ||
assert_equal("GITHUB_REPOSITORY;a/b;GIT_TAG;c;VERSION;d" "${args}") | ||
|
@@ -86,16 +81,10 @@ cpmdefineurischeme( | |
) | ||
|
||
cpm_parse_add_package_single_arg("ir:somegroup/[email protected]#asdf" args) | ||
assert_equal( | ||
"INTERNAL_REPOS;somegroup/somerepo;VERSION;0.20.3;GIT_TAG;asdf" | ||
"${args}" | ||
) | ||
assert_equal("INTERNAL_REPOS;somegroup/somerepo;VERSION;0.20.3;GIT_TAG;asdf" "${args}") | ||
|
||
cpm_parse_add_package_single_arg("ir2:somegroup/[email protected]#asdf" args) | ||
assert_equal( | ||
"INTERNAL_REPOS2;somegroup/somerepo;VERSION;0.20.3;GIT_TAG;asdf" | ||
"${args}" | ||
) | ||
assert_equal("INTERNAL_REPOS2;somegroup/somerepo;VERSION;0.20.3;GIT_TAG;asdf" "${args}") | ||
|
||
cpm_parse_add_package_single_arg("af:somegroup/someitem.zip" args) | ||
assert_equal("ARTIFACTORY_PKG;somegroup/someitem.zip" "${args}") | ||
|