-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·30 lines (26 loc) · 1.06 KB
/
Copy pathtest.sh
File metadata and controls
executable file
·30 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Quick test runner for OpenAI client
# Usage: ./test.sh
# Loads API key from .env file or OPENAI_API_KEY env var
set -e
echo "Building project..."
./gradlew compileTestJava --quiet
echo "Running OpenAI streaming test..."
# Build classpath without Paper API (avoid Bukkit dependencies)
CP="build/classes/java/main:build/classes/java/test"
for jar in ~/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/4.12.0/*/*.jar; do
[ -f "$jar" ] && CP="$CP:$jar"
done
for jar in ~/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp-sse/4.12.0/*/*.jar; do
[ -f "$jar" ] && CP="$CP:$jar"
done
for jar in ~/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio-jvm/3.6.0/*/*.jar; do
[ -f "$jar" ] && CP="$CP:$jar"
done
for jar in ~/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.10.1/*/*.jar; do
[ -f "$jar" ] && CP="$CP:$jar"
done
for jar in ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.10/*/*.jar; do
[ -f "$jar" ] && CP="$CP:$jar"
done
java -cp "$CP" com.example.aibuild.StreamingTest