diff options
| author | 2025-01-24 18:14:52 -0500 | |
|---|---|---|
| committer | 2025-01-24 18:14:52 -0500 | |
| commit | f638237a6b4f3d3edf9bdd995c15df537f8d7e7c (patch) | |
| tree | 44efce6d912c43f67548690256879d036e22e742 /scripts | |
| parent | 2daa31c0629f2eb4af84d6f4fed8ac89813de056 (diff) | |
| download | camu-f638237a6b4f3d3edf9bdd995c15df537f8d7e7c.tar.gz camu-f638237a6b4f3d3edf9bdd995c15df537f8d7e7c.tar.bz2 camu-f638237a6b4f3d3edf9bdd995c15df537f8d7e7c.zip | |
Fix multiple bugs encountered during stress test
- Basic server resource cleanup
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/python_env | 4 | ||||
| -rwxr-xr-x | scripts/run.sh | 5 | ||||
| -rwxr-xr-x | scripts/run_debug.sh | 1 | ||||
| -rwxr-xr-x | scripts/run_server.sh | 5 | ||||
| -rwxr-xr-x | scripts/run_valgrind.sh | 6 |
5 files changed, 11 insertions, 10 deletions
diff --git a/scripts/python_env b/scripts/python_env new file mode 100644 index 0000000..2cca301 --- /dev/null +++ b/scripts/python_env @@ -0,0 +1,4 @@ +export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONOPTIMIZE=2 +export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor diff --git a/scripts/run.sh b/scripts/run.sh index eeebcac..3b47fe4 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,6 +1,3 @@ #! /usr/bin/env sh -export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt -export PYTHONDONTWRITEBYTECODE=1 -export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor -export mesa_glthread=true +source ../scripts/python_env ./src/fruits/cmv/cmv "$@" diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh index bd9a667..a56bf22 100755 --- a/scripts/run_debug.sh +++ b/scripts/run_debug.sh @@ -1,2 +1,3 @@ #! /usr/bin/env sh +source ../scripts/python_env gdb -ex run --args ./src/fruits/cmv/cmv "$@" diff --git a/scripts/run_server.sh b/scripts/run_server.sh index 893f5c1..22945ed 100755 --- a/scripts/run_server.sh +++ b/scripts/run_server.sh @@ -1,8 +1,5 @@ #! /usr/bin/env sh -export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt -export PYTHONDONTWRITEBYTECODE=1 -export PYTHONOPTIMIZE=2 -export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor +source ../scripts/python_env # screen will use $SHELL. screen -c ../scripts/screenrc #valgrind --leak-check=no --show-error-list=yes --log-file=./server-valgrind.log ./src/fruits/cmsrv/cmsrv $@ diff --git a/scripts/run_valgrind.sh b/scripts/run_valgrind.sh index 033f35a..583327c 100755 --- a/scripts/run_valgrind.sh +++ b/scripts/run_valgrind.sh @@ -1,3 +1,5 @@ #! /usr/bin/env sh -valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@" -#valgrind --leak-check=full ./src/fruits/cmv/cmv "$@" +source ../scripts/python_env +valgrind --leak-check=full ./src/fruits/cmv/cmv "$@" +#valgrind --leak-check=full --show-leak-kinds=all ./src/fruits/cmv/cmv "$@" +#valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@" |