Skip to content
Snippets Groups Projects
Commit f734794b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add a test that runs valgrind on jsexec

We need some JS_GC() suppressions though.
parent 81a0af31
No related branches found
No related tags found
No related merge requests found
Pipeline #7904 passed
......@@ -19,6 +19,8 @@ spec:
default: 'no'
gnu_make:
default: 'gmake'
has_valgrind:
default: 'no'
---
".$[[ inputs.os ]]":
......@@ -702,6 +704,24 @@ spec:
when: never
- !reference [.rules, rules]
"$[[ inputs.os ]]-$[[ inputs.platform ]] jsexec-testsuite-valgrind":
extends:
- .$[[ inputs.os ]]-test
script:
- tar -xzf "/tmp/gitlab-runner/$[[ inputs.os ]]-$[[ inputs.platform ]]-${CI_PIPELINE_ID}/sbbs-build.tgz"
- "SBBSCTRL=./ctrl valgrind -v --num-callers=20 --track-origins=yes --read-var-info=yes --read-inline-info=yes --suppressions=src/sbbs3/suppressions.vg src/sbbs3/*.exe.release/jsexec -f exec/tests/test.js"
needs:
- job: "$[[ inputs.os ]]-$[[ inputs.platform ]] [sbbs-build]"
artifacts: false
rules:
- if: '"$[[ inputs.cross_platform ]]" == "yes"'
when: never
- if: '"$[[ inputs.no_javascript ]]" == "yes"'
when: never
- if: '"$[[ inputs.has_valgrind ]]" == "no"'
when: never
- !reference [.rules, rules]
"$[[ inputs.os ]]-$[[ inputs.platform ]] jsdoor-testsuite":
extends:
- .$[[ inputs.os ]]-test
......
......@@ -36,6 +36,7 @@ include:
platform: 'amd64'
tagname: 'FreeBSD'
build_flags: 'CC="ccache cc" CXX="ccache c++" RELEASE=1'
has_valgrind: "yes"
- local: '.gitlab-ci-unix.yml'
inputs:
os: 'raspian'
......@@ -49,6 +50,7 @@ include:
tagname: "Linux"
has_gtk: "yes"
build_flags: 'CC="ccache cc" CXX="ccache c++" RELEASE=1'
has_valgrind: "yes"
- local: '.gitlab-ci-unix.yml'
inputs:
os: "alpine-linux"
......
{
JSStackCond
Memcheck:Cond
...
fun:*GCUntilDone*
}
{
JSStackPtr64
Memcheck:Value8
...
fun:*GCUntilDone*
}
{
JSStackPtr32
Memcheck:Value4
...
fun:*GCUntilDone*
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment