#!/bin/sh
set -e

# Test the DLPack numpy integration with TVM
# This test requires TVM to be installed

# Check if TVM is available
if ! python3 -c "import tvm" 2>/dev/null; then
    echo "TVM is not available, skipping numpy-dlpack test"
    exit 0
fi

# Change to the test directory
cd apps/numpy_dlpack

# Run the TVM tests
echo "Running numpy-dlpack tests with TVM..."
python3 test.py

echo "numpy-dlpack tests completed successfully"
