20 lines
555 B
Bash
Executable File
20 lines
555 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Build classpath for running the batch tester from compiled classes + dependencies
|
|
CP_FILE=$(mktemp)
|
|
mvn -pl aniyomi-bridge -q dependency:build-classpath -Dmdep.outputFile="$CP_FILE"
|
|
CP="aniyomi-bridge/target/classes:$(cat "$CP_FILE")"
|
|
rm -f "$CP_FILE"
|
|
|
|
# Default args
|
|
CONCURRENCY=${CONCURRENCY:-$(nproc)}
|
|
QUERY=${QUERY:-"Solo Leveling"}
|
|
OUTPUT=${OUTPUT:-"reports"}
|
|
|
|
java -cp "$CP" dev.k3vinb5.unyo.core.cli.ExtensionBatchTester \
|
|
--concurrency "$CONCURRENCY" \
|
|
--query "$QUERY" \
|
|
--output "$OUTPUT" \
|
|
"$@"
|