[test] add jmeter tests to install and enable all vetted extensions (#2371)
* test: initial commit * feat: allow excluding of certain releases * test: activate and enable * fix: title indexes * chore: remove disabled element * test: skip `cashu` too many DB errors * chore: improve logs * chore: test logs * chore: logs * fix: condition * fix: condition harder * test: disable some listeners * fix: remove hanging element * fix: multiple reports with: `-m 1, --max-count, stop reading a file after 1 matching line` * chore: test that github actions still detect failures * Revert "chore: test that github actions still detect failures" This reverts commit a6769c5fd18824a05a3b6d215e32a9ba0ebf3323.
This commit is contained in:
parent
aaa6573272
commit
9b5bb1b07a
2 changed files with 954 additions and 4 deletions
11
.github/workflows/jmeter.yml
vendored
11
.github/workflows/jmeter.yml
vendored
|
|
@ -65,13 +65,16 @@ jobs:
|
|||
echo "Running test with $file"
|
||||
filename=$(basename "$file" ".jmx")
|
||||
$GITHUB_WORKSPACE/apache-jmeter-5.6.2/bin/jmeter -n -t $file -l logs/$filename.log -e -o reports ;
|
||||
error_count=$(cat jmeter.log | grep "summary =" | awk '{print $19}')
|
||||
echo "Error count: $error_count"
|
||||
if [[ "$error_count" == "0" ]]; then
|
||||
error_count=$(cat jmeter.log | grep -m 1 "summary =" | awk '{print $19}')
|
||||
echo "Error count: '$error_count'"
|
||||
echo "##########"
|
||||
echo "$error_count" == "0"
|
||||
echo "###########$error_count ###########"
|
||||
if [ "$error_count" = "0" ]; then
|
||||
echo "Test $filename OK."
|
||||
rm -r reports/*
|
||||
else
|
||||
echo "Test $filename failed. Error count: $error_count."
|
||||
echo "Test $filename failed. Error count: '$error_count'."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue