From 810ad5cc75290a899bab5948046d684d0cc9c993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zientkiewicz?= Date: Thu, 5 Sep 2024 15:30:08 +0200 Subject: [PATCH] Add -exec2 tests for Xavier. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Zientkiewicz --- qa/TL0_self-test-exec2_xavier/test.sh | 32 +++++++++++++++++++++++++++ qa/TL0_self-test_xavier/test.sh | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 qa/TL0_self-test-exec2_xavier/test.sh diff --git a/qa/TL0_self-test-exec2_xavier/test.sh b/qa/TL0_self-test-exec2_xavier/test.sh new file mode 100755 index 00000000000..ab35fe6dca8 --- /dev/null +++ b/qa/TL0_self-test-exec2_xavier/test.sh @@ -0,0 +1,32 @@ +#!/bin/bash -ex + +test_body() { + for BINNAME in \ + "dali_test.bin" \ + "dali_operator_test.bin" + do + for DIRNAME in \ + "../../build/dali/python/nvidia/dali" \ + "$(python -c 'import os; from nvidia import dali; print(os.path.dirname(dali.__file__))' 2>/dev/null || echo '')" + do + if [ -x "$DIRNAME/test/$BINNAME" ]; then + FULLPATH="$DIRNAME/test/$BINNAME" + break + fi + done + + if [[ -z "$FULLPATH" ]]; then + echo "ERROR: $BINNAME not found" + exit 1 + fi + + # LMDB seems to be greedy when mmaps memory, disable it as well + # for some reason mmap based test tends to fail on some runners due to disc issue, so + # disable it for now + DALI_USE_EXEC2=1 "$FULLPATH" --gtest_filter=-*mmap*:*LMDBTest* + done +} + +pushd ../.. +source ./qa/test_template.sh +popd diff --git a/qa/TL0_self-test_xavier/test.sh b/qa/TL0_self-test_xavier/test.sh index 9fb69f56c3b..cd52aef66e1 100755 --- a/qa/TL0_self-test_xavier/test.sh +++ b/qa/TL0_self-test_xavier/test.sh @@ -25,7 +25,7 @@ test_body() { # LMDB seems to be greedy when mmaps memory, disable it as well # for some reason mmap based test tends to fail on some runners due to disc issue, so # disable it for now - "$FULLPATH" --gtest_filter=-*mmap*:*LMDBTest* + DALI_USE_EXEC2=0 "$FULLPATH" --gtest_filter=-*mmap*:*LMDBTest* done }