diff options
author | Blas Rodriguez Irizar <rodrigblas@gmail.com> | 2020-12-08 06:12:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 21:12:22 -0800 |
commit | e01391351bcb0715f737cefe94e1bc99f19af226 (patch) | |
tree | 5575f27e36e49b887062119225e1d61335a01b9a /.github | |
parent | 57dffb9dfe9e4c0f12429246540add3975f4a754 (diff) |
Add stress test (#3222)
Created a simple echo TCP server that on two different runtimes that is
called from a GitHub action using Valgrind to ensure that there are
no memory leaks.
Fixes: #3022
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/stress-test.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/stress-test.yml b/.github/workflows/stress-test.yml new file mode 100644 index 00000000..f71fea37 --- /dev/null +++ b/.github/workflows/stress-test.yml @@ -0,0 +1,29 @@ +name: Stress Test +on: + push: + branches: + - master + +jobs: + stess-test: + name: Stress Test + runs-on: ubuntu-latest + strategy: + matrix: + stress-test: + - simple_echo_tcp + steps: + - uses: actions/checkout@v2 + - name: Install Rust + run: rustup update stable + + - name: Install Valgrind + run: apt install -y valgrind + + # Compiles each of the stress test examples. + - name: Compile stress test examples + run: cargo build -p stress-test --release --examples ${{ matrix.stress-test }} + + # Runs each of the examples using Valgrind. Detects leaks and displays them. + - name: Run valgrind + run: valgrind --leak-check=full --show-leak-kinds=all ./target/release/${{ matrix.stress-test }}
\ No newline at end of file |