-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a new CI job to automatically compare a generated trace to a golden reference trace. This helps to quickly identify CI issues. Signed-off-by: Pascal Nasahl <[email protected]>
- Loading branch information
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Simple script to test AES captures | ||
# Create results folder. | ||
mkdir -p tmp | ||
|
||
# AES | ||
MODE="aes" | ||
BOARD=cw310 | ||
declare -A aes_test_list | ||
aes_test_list["aes-static"]=2 | ||
|
||
ARGS="--force-program-bitstream" | ||
for test in ${!aes_test_list[@]}; do | ||
echo Testing ${test} on CW310 - `date` | ||
NUM_TRACES=${aes_test_list[${test}]} | ||
../cw/capture.py --cfg-file ci_capture_aes_cw310.yaml capture ${test} \ | ||
--num-traces ${NUM_TRACES} ${ARGS} &>> "tmp/test_capture.log" | ||
|
||
mv ./ci_projects/sample_traces_${MODE}.html tmp/${test}_traces.html | ||
ARGS="" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters