Skip to content

Commit

Permalink
Add -exec2 tests for Xavier.
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Zientkiewicz <[email protected]>
  • Loading branch information
mzient committed Sep 6, 2024
1 parent b6cfb3e commit 810ad5c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions qa/TL0_self-test-exec2_xavier/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion qa/TL0_self-test_xavier/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 810ad5c

Please sign in to comment.