From 391f3296ba6931675e86d288c0c2b9beacef0c23 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 1 Jan 2021 03:05:56 +0300 Subject: workflows/test.yml: split building and running foo.exe --- .github/workflows/test.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '.github/workflows/test.yml') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf87d6b..e4a9c1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,4 +76,17 @@ jobs: $flags += '-lpthread' } & g++ $flags - & (Join-Path . foo) + + - name: Run foo.exe + run: | + $expected = @" + Doing something #1 + Doing something #2 + Doing something #3 + "@ + $actual = & (Join-Path . foo) + $actual = $actual -join [Environment]::NewLine + $($actual -eq $expected) -or $(throw @" + Unexpected output: + $actual + "@) -- cgit v1.2.3