#!/usr/bin/env bash
# start-test.sh — lanseaza start.sh pe mediul TEST. Forwardeaza rol + optiuni.
#
#   ./start-test.sh                  # API + worker cu trimitere la RAR test (both --send)
#   ./start-test.sh api              # doar API
#   ./start-test.sh worker --send    # doar worker (trimite la RAR test)
#   ./start-test.sh finalizate       # ce prezentari sunt inregistrate la RAR test
#   ./start-test.sh status | stop
#
# Pe test trimiterea e sigura (sandbox RAR), deci fara argumente pornim end-to-end.

set -euo pipefail
cd "$(dirname "$0")"

export OMP_NUM_THREADS=1

if [ $# -eq 0 ]; then
    exec ./start.sh test both --send
fi
exec ./start.sh test "$@"
