tests for nginx-otel

Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
Ava Hahn 2025-01-22 19:08:52 -08:00
parent 1ed551b70b
commit e7b504fa40
5 changed files with 15 additions and 15 deletions

View file

@ -69,12 +69,17 @@ function clean_nginx() {
function build_otel() {
mkdir -p build && \
cd build && \
cmake -DNGX_OTEL_NGINX_BUILD_DIR=../../nginx/objs .. && \
cmake -DCMAKE_CXX_COMPILER=$(which g++) \
-DNGX_OTEL_NGINX_BUILD_DIR=../../nginx/objs \
-DNGX_OTEL_GRPC=package \
-DCMAKE_CXX_FLAGS="-D_LARGEFILE64_SOURCE" .. && \
make -j$(num_jobs)
}
function test_otel() {
echo "UNIMPLEMENTED!"
pip install --break-system-packages -r tests/requirements.txt
pytest tests --maxfail=10 --nginx=../nginx/objs/nginx \
--module=build/ngx_otel_module.so
}
function clean_otel() {