dropshell-build/test.sh
j842 8b26f93683
Some checks failed
dropshell-build / build (push) Failing after 10s
Fix build
2025-06-10 16:06:28 +12:00

28 lines
654 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
echo "Building and testing test_libs..."
# Run test_libs
if [ -f "${SCRIPT_DIR}/output/test_libs" ]; then
echo "Running test_libs..."
"${SCRIPT_DIR}/output/test_libs"
echo "test_libs completed successfully!"
else
echo "test_libs binary not found"
exit 1
fi
echo ""
echo "Testing ipdemo..."
# Check if ipdemo exists
if [ -f "${SCRIPT_DIR}/output/ipdemo" ]; then
echo "Running ipdemo..."
"${SCRIPT_DIR}/output/ipdemo" || echo "ipdemo test completed!"
else
echo "ipdemo binary not found - run ./build.sh first"
fi