aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-01 03:05:56 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-01 03:25:47 +0300
commit391f3296ba6931675e86d288c0c2b9beacef0c23 (patch)
treeab040ce4feb5b85d95253ccbdda1f5813b2c3376
parentadd example foo.cpp (diff)
downloadsetup-gcc-391f3296ba6931675e86d288c0c2b9beacef0c23.tar.gz
setup-gcc-391f3296ba6931675e86d288c0c2b9beacef0c23.zip
workflows/test.yml: split building and running foo.exe
-rw-r--r--.github/workflows/test.yml15
1 files changed, 14 insertions, 1 deletions
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
+ "@)