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
)
20 lines
290 B
Bash
Executable File
20 lines
290 B
Bash
Executable File
#!/bin/sh
|
|
|
|
FAIL=0
|
|
|
|
# Test for segfault in multithreaded environment
|
|
gcc -o test_segfault test_segfault_with_multithreaded_env.c -lpthread -ljq && \
|
|
./test_segfault
|
|
RET=$?
|
|
|
|
echo -n "Test jqsegfault ... "
|
|
|
|
if [ $RET != 0 ]; then
|
|
echo "failed"
|
|
FAIL=1
|
|
else
|
|
echo "ok"
|
|
fi
|
|
|
|
exit $FAIL
|