diff --git a/Compiling-on-Windows.md b/Compiling-on-Windows.md index d559571..5135735 100644 --- a/Compiling-on-Windows.md +++ b/Compiling-on-Windows.md @@ -16,17 +16,19 @@ powershell -ExecutionPolicy ByPass -File win32\setup-wix.ps1 Install dependencies via vcpkg: ```powershell -$env:VCPKG_INSTALLED = "vcpkg_installed" -$env:VCPKG_DEFAULT_TRIPLET = "x64-windows-static" +$env:VCPKG_INSTALLED = "$PWD\vcpkg_installed" vcpkg install ` --overlay-ports win32/ports ` + --triplet x64-windows-static ` --x-feature=zlib ` --x-feature=openpace ` + --x-feature=tests ` --x-manifest-root win32 ` --x-install-root $env:VCPKG_INSTALLED ``` Omit --x-feature flags for features you don't need or skip this step if you do not need OpenSSL. +The `tests` feature installs cmocka, which enables building the unit tests. ## Build OpenSC @@ -36,6 +38,14 @@ Open a Visual Studio _Developer Command Prompt_ and change to the OpenSC directo nmake /f Makefile.mak OpenSC.msi ``` +## Run Unit Tests + +Requires the `tests` vcpkg feature. Build and run the unit tests: + +```powershell +nmake /f Makefile.mak check +``` + ## Code Signing Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath](https://signpath.org/) Foundation.