#!/usr/bin/env bash # Captures the startup lines a reader will see in the log: the jOOQ banner version and the dialect WARN. set -uo pipefail cd "$(dirname "$0")/.." { mvn -B -q test -Dtest=JooqSliceTest 2>&1 | grep -E 'Thank you for using jOOQ|Version mismatch|PostgreSQL 17|Successfully applied|Starting JooqSliceTest' \ | sed -E 's/localhost:[0-9]+/localhost:PORT/; s/^[0-9T:.+-]+ +(INFO|WARN) +[0-9]+ --- \[[^]]*\] \[[^]]*\] //; s/ +/ /g; s/PID [0-9]+/PID N/; s/ \(started by [^)]*\)//; s/@+ +//' } > output/13-startup-log-lines.txt cat output/13-startup-log-lines.txt