-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integration tests for gofail #69
base: master
Are you sure you want to change the base?
Add integration tests for gofail #69
Conversation
7805958
to
577c5e3
Compare
8195e54
to
fd562c1
Compare
fd562c1
to
c0dea6d
Compare
/cc @ahrtr the code here is now rebased! |
Please take a look & fix the workflow failure. |
b2652ba
to
f3490e0
Compare
cc @ArkaSaha30 PTAL |
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com> Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com>
b79fe8a
to
9f57df4
Compare
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
7f17e8b
to
7ca32e4
Compare
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
GOFAIL_BINARY="$(pwd)/gofail" | ||
|
||
cd $(dirname $0) | ||
|
||
pushd failpoints | ||
$GOFAIL_BINARY enable | ||
popd | ||
|
||
go build -o integration_test_sleep . | ||
|
||
pushd failpoints | ||
$GOFAIL_BINARY disable | ||
popd | ||
|
||
./integration_test_sleep | ||
rm integration_test_sleep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to follow https://github.com/etcd-io/etcd/blob/main/tests/robustness/makefile.mk to get most of the work included in a makefile.mk included in integration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try to follow the Makefile style in the Robustness test and replicate it here! :)
- uses: actions/checkout@v4 | ||
- name: tests | ||
run: | | ||
make run-integration-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per makefile it should be make run-all-integration-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks ...
Add integration test for the gofail library.
The idea is to make sure features, such as the one introduced in #65 will not have regression in future changes.