Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Billy O'Neal 7869ef3adb
Make e2e tests slightly more explicit and consistent. (#1510) 2024-10-16 10:50:03 -07:00
Billy O'Neal ab8988503c
x-add-version: Check that port-version is the next integer (#1495) 2024-09-30 12:55:55 -07:00
Victor Romero b8b3c1b31e
Make comparison of installed files case-insensitive (#1483) 2024-08-28 22:54:17 +00:00
Billy O'Neal 33fe38d1ee
Fix doubled warnings being printed for manifest warnings when loading ports. (#1466) 2024-08-03 00:42:35 -07:00
Alexander Neumann 88ee9316f5
Add VCPKG_POST_PORTFILE_INCLUDES (#1417) 2024-07-25 13:53:34 -07:00
Kai Pastor b749be76fe
Raise errors for malformed overlay port manifests (#1435)
* Test ci command on malformed port manifests

* Test ci command on individual malformed port manifest

* Pass overlay port errors to OverlayProviderImpl

* Move broken-manifest overlay ports into separate dir

"e2e-ports/overlays" is in common vcpkg test args. It must not contain
ports with broken manifests where the the tool is expected to report the
error.

The tests which need these broken ports already passed an explicit
"--overlay-ports" argument which duplicated the one in @commonArgs.
That is why this commit only changes the value of the explicit argument.

* Ensure that inactive feature can have broken dependencies
2024-07-05 23:10:58 +00:00
Billy O'Neal 779ab31a43
Teach x-ci-verify-versions to check that versions exist in the database (#1210) 2024-06-21 17:15:37 -07:00
Kai Pastor c5e532a1a3
Check .csh and .pl for absolute paths (#1426)
* Check .csh and .pl for absolute paths

* e2e test absolute path policy on script files
2024-06-17 14:24:07 -07:00
Billy O'Neal 8014d4b938
Ensure that all post-build checks have skip policies. (#1405)
Also audited for:
* Consistently following the 'IDE error format' pointing to portfile.cmake.
* Consistently referring to the correct skip policy in the error message where applicable.
* Printing paths and other information relative to ${CURRENT_PACKAGES_DIR} or similar as appropriate.
* Debug before release.
* Don't duplicate messages when a problem happens for both debug and release.

Drive by bugfix:

    if (!build_info.policies.is_enabled(BuildPolicy::ONLY_RELEASE_CRT))
    {
        error_count += check_crt_linkage_of_libs(
            build_info, false, debug_libs, debug_lib_info.value_or_exit(VCPKG_LINE_INFO), msg_sink);
    }

was wrong; ONLY_RELEASE_CRT should mean 'these should all be release', not 'we aren't even going to look at debug'.

It is fixed to:

    error_count += check_crt_linkage_of_libs(build_info.crt_linkage,
                                              build_info.policies.is_enabled(BuildPolicy::ONLY_RELEASE_CRT),
                                              debug_libs,
                                              debug_lib_info.value_or_exit(VCPKG_LINE_INFO),
                                              msg_sink);

here.

Drive-by bugfix:
EMPTY_INCLUDE_FOLDER should not block CMAKE_HELPER_PORT from checking that the include folder is, in fact, empty.

Drive-by bugfix:
        if (!violations.empty())
        {
            msg_sink.println_warning(msgPortBugRestrictedHeaderPaths);
            print_paths(msg_sink, violations);
            msg_sink.println(msgPortBugRestrictedHeaderPaths);     // <-- duplicate!
            return LintStatus::PROBLEM_DETECTED;
        }

Drive-by bugfix:
There were duplicate checks for the lib/cmake and debug/lib/cmake directories which even printed the same message; these have been merged.

Drive-by bugfix:
The existing copyright check emitted nonsense output that included full absolute paths like:
warning: The software license must be available at ${CURRENT_PACKAGES_DIR}/share/cmdline/copyright. vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/D:/b/cmdline//LICENSE")
since at least https://github.com/microsoft/vcpkg-tool/pull/1116/
That check has been basically rewritten to use vcpkg_install_copyright if there's only one src directory, and otherwise give up and print them all

Drive-by bugfix:
Several of the outdated CRTs didn't have the debug versions listed. Also, P was duplicated and there was no R for VC6.
2024-06-07 16:53:59 -07:00
Lily Wang cae13bd151
Fix wrong Header-only usage message (#1403)
* Fix wrong Header-only usage message

* Cherry pick tests from https://github.com/microsoft/vcpkg-tool/pull/1405

---------

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2024-05-14 11:24:19 -07:00
autoantwort 7b0cdcf826
Fix hash-addtional-files tests (#1388)
Problems were:
- the only test in e2e_ports folder, everything else in e2e-ports
- tests modify files under $VCPKG_ROOT
- Divided in two files where one enough
- Tests fail if package is already in binary cache
2024-04-19 17:12:00 -07:00
Billy O'Neal fa20b09e2d
Make --only-downloads not affect ABI (#1363)
While reviewing changes to https://github.com/microsoft/vcpkg-tool/pull/1339 , I observed that it was strange that the abi hash depends on whether download_only is selected. After discussion with @ras0219-msft , he agreed that the ABI hash shouldn't be affected by this setting.

However, given that in download mode, we intentionally build things which do not have all their dependencies present, it would not be safe to attempt to cache or otherwise install anything in that condition.

This change removes download_only from the ABI calculation, and changes installation to only attempt to install built bits whose dependencies are all satisfied.
2024-03-12 12:44:18 -07:00
Billy O'Neal 1e8b699111
Fix regression in x-script from fixing doskey macros. (#1337) 2024-02-05 12:02:09 -08:00
autoantwort 5fbcab79b1
Generate usage text for pkgconfig files (#1268) 2023-12-05 14:00:00 -08:00
Billy O'Neal 1767aaee7b
dos2unix all the things (#1289)
* dos2unix all the things except for those that should have CRLFs

* Fix version DB.
2023-11-27 15:02:21 -08:00
Billy O'Neal 82a7c96db2
Clarify BuildInfo::version's purpose. (#1261)
* Add test case for the recording head version feature noted in https://github.com/microsoft/vcpkg-tool/pull/1259#discussion_r1378120355

* Sanitize detected head versions to make sure they are at least version-strings.
2023-11-03 16:06:51 -07:00
Billy O'Neal 7873dc4e91
Remove the vcpkg-find-acquire-program test port. (#1130)
Hopefully resolves test failures in https://github.com/microsoft/vcpkg-tool/pull/1129 -- asset caching is not turned on in the tool repo so testing things that need lots of external servers is problematic.

This was added back when the tool and registry were in the same repo in attempt to validate *registry* changes, not tool changes. As a result it doesn't really belong here.

The one thing that might also have been tested here is handling of old CONTROL files ports so I added an explicit test port for that.
2023-07-17 13:45:41 -07:00
Billy O'Neal 9e585de2fe
Rename e2e tests with -s rather than _s. (#1108) 2023-07-10 07:44:19 -07:00