Skip to content

Commit d9e5347

Browse files
add memory leak check test
1 parent 6e70a07 commit d9e5347

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/sshd-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,12 @@ jobs:
9797
run: |
9898
git log -3
9999
sudo ./run_all_sshd_tests.sh
100+
101+
# could use optimization with caching
102+
- name: Test memory after close down
103+
working-directory: ./wolfssh/
104+
run: |
105+
sudo apt-get install valgrind
106+
touch sshd_config.txt
107+
./configure --enable-all LDFLAGS="-L${{ github.workspace }}/build-dir/lib" CPPFLAGS="-I${{ github.workspace }}/build-dir/include -DWOLFSSH_NO_FPKI -DWOLFSSH_NO_SFTP_TIMEOUT -DWOLFSSH_MAX_SFTP_RW=4000000 -DMAX_PATH_SZ=120" --enable-static --disable-shared && make
108+
sudo timeout --preserve-status -s 2 5 valgrind --error-exitcode=1 --leak-check=full ./apps/wolfsshd/wolfsshd -D -f sshd_config -h ./keys/server-key.pem -d -p 22222

0 commit comments

Comments
 (0)