Added initial example for automated CI

Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
Alejandro Saucedo 2022-11-26 15:57:54 +00:00
parent b02640a026
commit 9d007e5c04
No known key found for this signature in database
GPG key ID: 99EBB7E98B99695F

View file

@ -32,6 +32,8 @@ jobs:
- name: Run tests
run: |
# Check that the expected output is printed
./examples/array_multiplication/build/src/kompute_array_mult | \
tee $(tty) | grep -q "Output: { 0 4 12 }"
TEST_STDOUT=./examples/array_multiplication/build/src/kompute_array_mult
TEST_CODE=$?
TEST_MATCH= echo $TEST_STDOUT | grep -q "Output: { 0 4 12 }"
exit $(($TEST_CODE + $TEST_MATCH))