20 lines
456 B
Bash
Executable File
20 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
|
|
# Check if the binary exists
|
|
DROPSHELL="${SCRIPT_DIR}/output/dropshell"
|
|
if [ ! -f "$DROPSHELL" ]; then
|
|
echo "Error: dropshell binary not found at $DROPSHELL"
|
|
echo "Please run ./build.sh first"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Testing dropshell binary..."
|
|
|
|
# Run basic tests
|
|
"$DROPSHELL" hash "$0"
|
|
"$DROPSHELL" help
|
|
|
|
echo "Tests completed successfully!" |