diff options
author | NingSun <ning.sun@intel.com> | 2018-02-08 08:34:03 -0800 |
---|---|---|
committer | NingSun <ning.sun@intel.com> | 2018-02-08 09:14:52 -0800 |
commit | 0c89b3ccba7c9b7332ab67ae1936aff51ca62367 (patch) | |
tree | 70c1b1d160d4c6d0a83395ca9a87c1264d0d3439 /SoftHSMv2/testing/appveyor/appveyor_build.bat | |
parent | 945613b4db4e07f75d2bc7463db580ddfaa700fd (diff) |
Initial sshsm project structure
Issue-ID: AAF-94
Change-Id: I5e82fff418e7567b161acf9b98013a9b85ffc5b4
Signed-off-by: NingSun <ning.sun@intel.com>
Diffstat (limited to 'SoftHSMv2/testing/appveyor/appveyor_build.bat')
-rw-r--r-- | SoftHSMv2/testing/appveyor/appveyor_build.bat | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/SoftHSMv2/testing/appveyor/appveyor_build.bat b/SoftHSMv2/testing/appveyor/appveyor_build.bat new file mode 100644 index 0000000..4e7f41f --- /dev/null +++ b/SoftHSMv2/testing/appveyor/appveyor_build.bat @@ -0,0 +1,51 @@ +setlocal + +echo "Setting visual studio variables" + +call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %VCVARS_PLATFORM% +@echo on + +echo "Setting PATH and other variables" +set cur_dir=%CD% +set PATH=%PATH%;%PYTHON_PATH% + +echo %cur_dir% +cd win32 + +python Configure.py %CONFIGURE_OPTIONS% || goto :error + +msbuild softhsm2.sln /p:Configuration="Release" /p:Platform="%MSBUILD_PLATFORM%" /p:PlatformToolset=v140 /target:Build || goto :error + +cd %cur_dir% + +IF "%ENV_PLATFORM%"=="x86" (set from_dir=%CD%\win32\Release) ELSE (set from_dir=%CD%\win32\x64\Release) + +echo "Testing build" + +cd %from_dir% +cryptotest.exe || goto :error +datamgrtest.exe || goto :error +handlemgrtest.exe || goto :error +objstoretest.exe || goto :error +p11test.exe || goto :error +sessionmgrtest.exe || goto :error +slotmgrtest.exe || goto :error + +echo "Preparing output package" +copy %from_dir%\softhsm2.dll %RELEASE_DIR% || goto :error +copy %from_dir%\softhsm2-dump-file.exe %RELEASE_DIR% || goto :error +copy %from_dir%\softhsm2-keyconv.exe %RELEASE_DIR% || goto :error +copy %from_dir%\softhsm2-util.exe %RELEASE_DIR% || goto :error +copy %cur_dir%\src\lib\common\softhsm2.conf.in %RELEASE_DIR%\softhsm2.conf || goto :error + +dir %RELEASE_DIR% + +@echo *** BUILD SUCCESSFUL *** +endlocal +@exit /b 0 + + +:error +@echo *** BUILD FAILED *** +endlocal +@exit /b 1 |