Skip to content

Commit 5f9f84f

Browse files
committed
test: add integration test
1 parent 2182524 commit 5f9f84f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Tests:
4444

4545
```shell
4646
./test_unit
47+
../tests/test_integration.sh
4748
```
4849

4950
Cleanup:

tests/test_integration.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
output=$(./cpp-cli)
3+
if [[ "$output" == "Hello world" ]]; then
4+
echo "[PASS] Output correct."
5+
else
6+
echo "[FAIL] Output = $output"
7+
exit 1
8+
fi

0 commit comments

Comments
 (0)