From 93d04b94f9cddbbf7f96a09dc7e800e073ff7f32 Mon Sep 17 00:00:00 2001 From: Vladislav Polyakov Date: Mon, 21 Oct 2024 16:02:30 +0300 Subject: [PATCH] chore: add script for running slo tests --- tests/slo/run.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 tests/slo/run.sh diff --git a/tests/slo/run.sh b/tests/slo/run.sh new file mode 100755 index 000000000..f627bc4a0 --- /dev/null +++ b/tests/slo/run.sh @@ -0,0 +1,31 @@ +export GOOS=darwin +export GOARCH=arm64 +export CGO_ENABLED=0 + +.bin/xorm_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb +.bin/xorm_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -read-rps 100 -write-rps 10 -time 60 +.bin/xorm_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb + +sleep 10 + +.bin/database_sql_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb +.bin/database_sql_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60 +.bin/database_sql_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb + +sleep 10 + +.bin/gorm_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb +.bin/gorm_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60 +.bin/gorm_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb + +sleep 10 + +.bin/native_table_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb +.bin/native_table_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60 +.bin/native_table_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb + +sleep 10 + +.bin/native_query_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb +.bin/native_query_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60 +.bin/native_query_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb