vcpkg/scripts/test_ports/unit-test-cmake
Kai Pastor edcf949452
[vcpkg_fixup_pkgconfig] Check for more problems, add unit test (#23898)
* Print stack traces for failed unit tests

* Add test for vcpkg_fixup_pkgconfig.cmake

* Check for 'optimized' and 'debug' in pc files

* Check for 'NOTFOUND' and for 'ns::target' in pc files

* Check for, and fix, line continuations

* Test file path substitutions

* Move contents processing into separate function

* Update and leverage line break normalization

* Pass prefix to data processing

* Validate only the collapsed Libs

* Test removal of '<field>.private'

* Declare unit test license (same as vcpkg)

* Replace ';' with ' ' in 'Libs:'

* Disambiguate parameter variable names

* Test quoting of variables

* Fix quoting of variables

* Quote whole parameters

* Process and quote libs item-wise

* Resolve keywords 'optimized', 'debug', 'debug'

* Consistency

* CI [skip actions]

* CI [skip actions]

* Don't fail on detected errors

* Disable unit-testing for fatal errors

Co-authored-by: Billy O'Neal <bion@microsoft.com>
2023-01-19 18:27:29 -08:00
..
portfile.cmake [vcpkg_fixup_pkgconfig] Check for more problems, add unit test (#23898) 2023-01-19 18:27:29 -08:00
test-vcpkg_backup_restore_env_vars.cmake [vcpkg_setup_pkgconfig_path] Fix backup/restore (#25361) 2022-06-29 14:47:44 -07:00
test-vcpkg_fixup_pkgconfig.cmake [vcpkg_fixup_pkgconfig] Check for more problems, add unit test (#23898) 2023-01-19 18:27:29 -08:00
test-vcpkg_host_path_list.cmake Fix vcpkg_host_path and its unit test (#24808) 2022-05-19 19:47:05 -07:00
test-vcpkg_list.cmake [rollup] Rollup PR 2021-07-16 (#19001) 2021-07-20 10:24:58 -07:00
test-vcpkg_minimum_required.cmake [vcpkg_minimum_required] fix, add unit tests (#19257) 2021-07-30 12:57:07 -07:00
test-z_vcpkg_cmake_config_fixup_merge.cmake [vcpkg-cmake-config] Merge INTERFACE_LINK_LIBRARIES configurations (#22546) 2022-02-18 13:54:55 -08:00
test-z_vcpkg_function_arguments.cmake [rollup] Rollup PR 2021-07-16 (#19001) 2021-07-20 10:24:58 -07:00
test-z_vcpkg_setup_pkgconfig_path.cmake [vcpkg_setup_pkgconfig_path] Fix backup/restore (#25361) 2022-06-29 14:47:44 -07:00
vcpkg.json [vcpkg_fixup_pkgconfig] Check for more problems, add unit test (#23898) 2023-01-19 18:27:29 -08:00