Skip to content

Commit bf7816d

Browse files
committed
[CI] Run all system benchmarks in test packages
1 parent 9016288 commit bf7816d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

scripts/test-check-packages.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,17 @@ export SERVERLESS=${SERVERLESS:-"false"}
7171
run_system_benchmark() {
7272
local package_name="$1"
7373
local package_path="$2"
74-
echo "--- Run system benchmarks for package ${package_name}"
75-
elastic-package benchmark system -C "$package_path" --benchmark logs-benchmark -v --defer-cleanup 1s
74+
75+
local benchmark_file_path=""
76+
local benchmark_filename=""
77+
local benchmark_name=""
78+
79+
for benchmark_file_path in $(find "${package_path}/_dev/benchmark/system/" -maxdepth 1 -mindepth 1 -type f -name "*.yml" ) ; do
80+
benchmark_filename="$(basename "${benchmark_file_path}")"
81+
benchmark_name="${benchmark_filename%.*}"
82+
echo "--- Run system benchmarks for package ${package_name} - ${benchmark_name}"
83+
elastic-package benchmark system -C "$package_path" --benchmark "${benchmark_name}" -v --defer-cleanup 1s
84+
done
7685
}
7786

7887
run_serverless_tests() {

0 commit comments

Comments
 (0)