[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 a6769c5fd1.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user