From a864099ba77157090c4cd12817245122c163ec24 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 24 Oct 2020 21:33:44 +0300 Subject: rework Process API & tests * Add separate classes ProcessParameters & ShellParameters for Process::create() and Process::shell() methods. * Add a separate "worker" executable. It's used in tests via a fairly complicated scheme, receiving orders to execute via a shared memory region. * Add tests that utilize the Console API, reading console window's screen buffer directly, making for more reliable tests & broader coverage. --- .appveyor.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to '.appveyor.yml') diff --git a/.appveyor.yml b/.appveyor.yml index 2624062..2978e33 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,6 +9,7 @@ image: environment: python_exe: C:\Python36-x64\python.exe install_dir: C:\Projects\install\winapi-common + test_logs_dir: C:\Projects\test_logs platform: - Win32 @@ -45,7 +46,32 @@ after_build: - appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" test_script: - - '"%install_dir%\bin\winapi-common-unit-tests.exe" -- "--echo_exe=%install_dir%\bin\winapi-common-test-echo.exe"' + - mkdir "%test_logs_dir%" + - >- + "%install_dir%\bin\winapi-common-unit-tests.exe" + --log_level=all + "--log_sink=%test_logs_dir%\tests.log" + "--report_sink=%test_logs_dir%\report.txt" + --run_test=!console_tests,process_console_tests + -- + "--echo_exe=%install_dir%\bin\winapi-common-test-echo.exe" + "--worker_exe=%install_dir%\bin\winapi-common-test-worker.exe" + - type "%test_logs_dir%\report.txt" + - >- + start "Console tests" /wait + "%install_dir%\bin\winapi-common-unit-tests.exe" + --log_level=all + "--log_sink=%test_logs_dir%\tests_console.log" + "--report_sink=%test_logs_dir%\report_console.txt" + --run_test=console_tests,process_console_tests + -- + "--echo_exe=%install_dir%\bin\winapi-common-test-echo.exe" + "--worker_exe=%install_dir%\bin\winapi-common-test-worker.exe" + - type "%test_logs_dir%\report_console.txt" + +on_finish: + - 7z.exe a test_logs.zip "%test_logs_dir%" + - appveyor.exe PushArtifact test_logs.zip for: # Build Release on master only to speed things up: -- cgit v1.2.3