9c974c6015
Moving gating to use tmt format for finding/running tests.
Also adding test to cover segfault bug.
Adding perf test script from Thomas Halman for jqspeed.sh.
Dropping log collection in favor of printing on failure for upstream
tests.
Related: RHEL-12897
Related: RHEL-5052
(cherry picked from commit 771c857cf5
)
21 lines
374 B
Bash
Executable File
21 lines
374 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export LC_ALL=C
|
|
|
|
stress_jq() {
|
|
`which time` -p -f '%e\n' bash -c 'for i in `seq 1 1000` ; do echo '"'"'{"foo":"bar"}'"'"' | jq '"'"'has("bar")'"'"' > /dev/null ; done' 2>&1 | cut -d. -f1
|
|
}
|
|
|
|
FAIL=0
|
|
TIME=`stress_jq`
|
|
echo -n "Test jqspeed ... "
|
|
if [ $TIME -gt 8 ] ; then
|
|
echo "failed"
|
|
FAIL=1
|
|
else
|
|
echo "ok"
|
|
fi
|
|
|
|
echo "Runtime: ${TIME}s "
|
|
exit $FAIL
|