File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ RUN mkdir -p qa/common && \
144144 cp bin/response_cache_test qa/L0_response_cache/. && \
145145 cp bin/request_cancellation_test qa/L0_request_cancellation/. && \
146146 cp bin/triton_json_test qa/L0_json/. && \
147+ cp bin/logging_test qa/L0_logging/. && \
147148 cp bin/backend_output_detail_test qa/L0_backend_output_detail/. && \
148149 cp -r deploy/mlflow-triton-plugin qa/L0_mlflow/. && \
149150 cp bin/input_byte_size_test qa/L0_input_validation/.
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Copyright 2022-2025 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ # Copyright 2022-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33#
44# Redistribution and use in source and binary forms, with or without
55# modification, are permitted provided that the following conditions
654654unset $SERVER_ERROR_LOG
655655set -e
656656
657+ # Triton common log-callback test.
658+ set +e
659+ UNIT_TEST_LOG=" ./log_callback_test.log"
660+ ./logging_test --gtest_output=xml:logging.report.xml >> $UNIT_TEST_LOG 2>&1
661+ if [ $? -ne 0 ]; then
662+ cat $UNIT_TEST_LOG
663+ echo -e " \n***\n*** Logging Callback Unit Test Failed\n***"
664+ RET=1
665+ fi
666+ set -e
667+
657668if [ $RET -eq 0 ]; then
658669 echo -e " \n***\n*** Test Passed\n***"
659670else
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Copyright 2023-2025 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ # Copyright 2023-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33#
44# Redistribution and use in source and binary forms, with or without
55# modification, are permitted provided that the following conditions
@@ -58,6 +58,15 @@ if [ $? -ne 0 ]; then
5858 RET=1
5959fi
6060
61+ LOG_CALLBACK_TEST_LOG=" ./python_logging_callback.log"
62+ rm -f $LOG_CALLBACK_TEST_LOG
63+ python -m pytest --junitxml=test_logging_callback_report.xml test_logging_callback.py > $LOG_CALLBACK_TEST_LOG 2>&1
64+ if [ $? -ne 0 ]; then
65+ cat $LOG_CALLBACK_TEST_LOG
66+ echo -e " \n***\n*** Test Failed\n***"
67+ RET=1
68+ fi
69+
6170set -e
6271
6372if [ $RET -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments