tests for nginx-otel
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
1ed551b70b
commit
e7b504fa40
5 changed files with 15 additions and 15 deletions
9
nginx.sh
9
nginx.sh
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue