#!/bin/bash # # test.sh - Run unit tests for mod_reqin_log in Docker # set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "========================================" echo "mod_reqin_log - Unit Tests" echo "========================================" echo "" # Build test image echo "Building test container..." docker build -f Dockerfile.tests -t mod_reqin_log:tests "$SCRIPT_DIR/.." echo "" echo "Running unit tests..." echo "" # Run unit tests in container docker run --rm mod_reqin_log:tests ctest --output-on-failure echo "" echo "========================================" echo "Unit tests completed" echo "========================================"