aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-24 21:33:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-27 00:11:41 +0300
commita864099ba77157090c4cd12817245122c163ec24 (patch)
treef15b1f2801219fa9af6111fa28591858d87711ec /.appveyor.yml
parentProcess: add termination methods (diff)
downloadwinapi-common-a864099ba77157090c4cd12817245122c163ec24.tar.gz
winapi-common-a864099ba77157090c4cd12817245122c163ec24.zip
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.
Diffstat (limited to '')
-rw-r--r--.appveyor.yml28
1 files changed, 27 insertions, 1 deletions
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: