This commit is contained in:
41
tests/test.sh
Executable file
41
tests/test.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
echo ""
|
||||
echo "testing test_libs..."
|
||||
|
||||
# Run test_libs
|
||||
if [ -f "${SCRIPT_DIR}/output/native/test_libs" ]; then
|
||||
echo "Running test_libs..."
|
||||
"${SCRIPT_DIR}/output/native/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/native/ipdemo" ]; then
|
||||
echo "Running ipdemo..."
|
||||
"${SCRIPT_DIR}/output/native/ipdemo" || echo "ipdemo test completed!"
|
||||
else
|
||||
echo "ipdemo binary not found - run ./build.sh first"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Testing cross-architecture builds..."
|
||||
|
||||
# Verify the binary was built and check its architecture
|
||||
if [ -f "${SCRIPT_DIR}/output/arm64/ipdemo" ]; then
|
||||
echo "aarch64 ipdemo binary built successfully!"
|
||||
echo "Architecture info:"
|
||||
file "${SCRIPT_DIR}/output/arm64/ipdemo" || true
|
||||
else
|
||||
echo "aarch64 ipdemo binary not found"
|
||||
fi
|
Reference in New Issue
Block a user