- Replace GitHub Actions with GitLab CI using Docker-in-Docker - Build 3 RPMs (el7, el8, el9) + 1 DEB from Dockerfile.package - Add verify jobs for each target distribution - Remove obsolete files: - Dockerfile, Dockerfile.test-socket (replaced by Dockerfile.package) - scripts/socket_consumer.py, scripts/socket_listener.py - scripts/test_unix_socket.sh, scripts/run_integration_tests.sh - Update README.md with new package targets - Update architecture.yml for GitLab CI workflow Breaks: Single RPM no longer supported (glibc incompatibility) Replaced by: Distribution-specific RPMs (el7, el8, el9) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
30 lines
677 B
Bash
Executable File
30 lines
677 B
Bash
Executable File
#!/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 "========================================"
|