22 lines
490 B
Bash
Executable File
22 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
# Test script - runs all tests in Docker container
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
echo "=============================================="
|
|
echo " logcorrelator - Test Suite (Docker)"
|
|
echo "=============================================="
|
|
echo ""
|
|
|
|
# Build test image and run tests
|
|
docker build \
|
|
--target builder \
|
|
-t logcorrelator-test:latest \
|
|
-f Dockerfile .
|
|
|
|
echo ""
|
|
echo "Tests completed successfully!"
|
|
echo ""
|