heroagent/scripts/test_jobs.sh
2025-05-24 07:24:17 +04:00

22 lines
378 B
Bash
Executable File

#!/bin/bash
# Create necessary directories
mkdir -p data/jobsdb
mkdir -p bin
# Build the job test
echo "Building job test..."
go build -o bin/jobtest cmd/jobtest/main.go
# Check if build was successful
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
# Run the job test
echo "Running job test..."
./bin/jobtest
# Exit with the same status as the job test
exit $?