Skip to content

Commit 031d621

Browse files
committed
use west for testing
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent ddc53ed commit 031d621

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/eclair.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,20 @@ jobs:
112112
113113
- name: Scan code with Eclair
114114
run: |
115-
./scripts/twister -j 16 -p qemu_x86 -T samples/synchronization -i --build-only -v \
116-
-xZEPHYR_SCA_VARIANT=eclair \
117-
-xUSE_CCACHE=0 \
118-
-xECLAIR_REPORTS_SARIF=1 \
119-
-xECLAIR_RULESET_ZEPHYR_GUIDELINES=1 \
120-
-xECLAIR_RULESET_FIRST_ANALYSIS=0
121-
122-
jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' $(find twister-out -name "reports.sarif") > results.sarif
115+
#./scripts/twister -j 16 -p qemu_x86 -T samples/synchronization -i --build-only -v \
116+
# -xZEPHYR_SCA_VARIANT=eclair \
117+
# -xUSE_CCACHE=0 \
118+
# -xECLAIR_REPORTS_SARIF=1 \
119+
# -xECLAIR_RULESET_ZEPHYR_GUIDELINES=1 \
120+
# -xECLAIR_RULESET_FIRST_ANALYSIS=0
121+
122+
export ZEPHYR_BASE=${PWD}
123+
west -v build -p -b qemu_x86 tests/integration/kernel/ -- -DZEPHYR_SCA_VARIANT=eclair -DUSE_CCACHE=0 -DECLAIR_REPORTS_SARIF=1 -DECLAIR_RULESET_ZEPHYR_GUIDELINES=1 -DECLAIR_RULESET_FIRST_ANALYSIS=0
124+
125+
cp build/sca/eclair/reports.sarif .
126+
cp build/sca/eclair//DIAGNOSTIC.txt .
127+
128+
jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' $(find build -name "reports.sarif") > results.sarif
123129
cp results.sarif results_original.sarif
124130
jq --arg basepath "file://${GITHUB_WORKSPACE}/" '
125131
.runs[].results[] |= (
@@ -154,6 +160,8 @@ jobs:
154160
if-no-files-found: ignore
155161
path: |
156162
results.sarif
163+
reports.sarif
164+
DIAGNOSTIC.txt
157165
results_original.sarif
158166
159167
- name: Upload Analysis Results

0 commit comments

Comments
 (0)