test: Add 1 and update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 1m8s
Build-Test-Publish / build (linux/arm64) (push) Successful in 4m3s

This commit is contained in:
j842
2025-08-17 21:12:13 +12:00
parent efd11657ac
commit 84697c0723
3 changed files with 34 additions and 5 deletions

20
test.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/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!"