-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d2d30f
commit dc511e4
Showing
25 changed files
with
2,110 additions
and
21 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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
/target | ||
.gdb_history | ||
log.html | ||
logs/ | ||
report.html | ||
robot_output.xml | ||
snapshots/ | ||
results-tests.robot.xml | ||
.runids |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[[segmentation-rule]] | ||
name = "by-run-id" | ||
attributes = ["run_id"] | ||
segment-name-template = "Run {timeline.run_id}" | ||
segment-name-template = "{timeline.run_id}" | ||
causally-partition-segments = true |
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ MEMORY | |
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K | ||
} | ||
_stack_start = ORIGIN(RAM) + LENGTH(RAM); | ||
|
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,26 @@ | ||
from Antmicro import Renode | ||
import uuid | ||
|
||
def mc_clear_deviant_noint_vars(): | ||
sysbus = self.Machine["sysbus"] | ||
var_mutation_staged_addr = sysbus.GetSymbolAddress("DEVIANT_MUTATION_STAGED") | ||
sysbus.WriteDoubleWord(var_mutation_staged_addr, 0) | ||
|
||
def mc_write_staged_mutation(mutator_uuid_str, mutation_uuid_str): | ||
print("Writing staged mutation, mutator_id = %s, mutation_id = %s" % (mutator_uuid_str, mutation_uuid_str)) | ||
mutator_uuid = uuid.UUID(mutator_uuid_str) | ||
mutation_uuid = uuid.UUID(mutation_uuid_str) | ||
|
||
sysbus = self.Machine["sysbus"] | ||
var_mutation_staged_addr = sysbus.GetSymbolAddress("DEVIANT_MUTATION_STAGED") | ||
var_mutator_id_addr = sysbus.GetSymbolAddress("DEVIANT_MUTATOR_ID"); | ||
var_mutation_id_addr = sysbus.GetSymbolAddress("DEVIANT_MUTATION_ID"); | ||
|
||
for offset, b in enumerate(mutator_uuid.bytes): | ||
val = int(b.encode('hex'), 16) | ||
sysbus.WriteByte(var_mutator_id_addr + offset, val) | ||
for offset, b in enumerate(mutation_uuid.bytes): | ||
val = int(b.encode('hex'), 16) | ||
sysbus.WriteByte(var_mutation_id_addr + offset, val) | ||
|
||
sysbus.WriteDoubleWord(var_mutation_staged_addr, 1) |
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,41 @@ | ||
:name: atsamd-rtic | ||
:description: Runs the example firmware in Renode | ||
|
||
using sysbus | ||
|
||
mach create "atsamd" | ||
|
||
include @renode/RttReader.cs | ||
include @renode/commands.py | ||
|
||
$bin = @target/thumbv7em-none-eabihf/release/atsamd-rtic-firmware | ||
|
||
machine LoadPlatformDescription @renode/atsamd51g19a.repl | ||
machine LoadPlatformDescriptionFromString | ||
""" | ||
sercom0: UART.SAMD5_UART @ sysbus 0x40003000 | ||
->nvic@48 | ||
""" | ||
|
||
sysbus.nvic Frequency 10000000000 | ||
emulation CreateUARTHub "uarthub" | ||
connector Connect sercom0 uarthub | ||
connector Connect sercom3 uarthub | ||
machine CreateRttReader | ||
RttReader CreateFileBackend @/tmp/rtt_log.bin true | ||
logLevel 3 sercom0 | ||
logLevel 3 sercom3 | ||
logLevel 3 sysbus | ||
logLevel 3 nvic | ||
logLevel 3 dwt | ||
logLevel -1 RttReader | ||
RttReader Start | ||
|
||
macro reset | ||
""" | ||
sysbus LoadELF $bin | ||
""" | ||
|
||
runMacro $reset | ||
|
||
clear_deviant_noint_vars |
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
dir=".runids" | ||
|
||
mkdir -p "$dir" | ||
|
||
exit 0 |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
renode-test --kill-stale-renode-instances tests.robot | ||
|
||
exit 0 |
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
modality user create --use admin | ||
|
||
modality workspace create --use ci-tests config/workspace.toml | ||
|
||
modality segment use --latest | ||
|
||
conform spec create --file specs/tests.speqtr tests | ||
|
||
exit 0 |
6 changes: 6 additions & 0 deletions
6
test_system/view_expansion.sh → test_system/scripts/view_expansion.sh
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
rustfmt --emit stdout target/rtic-expansion.rs | vim +':setlocal buftype=nofile filetype=rust' - | ||
|
||
exit 0 |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
firefox $PWD/report.html | ||
|
||
exit 0 |
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
cat /tmp/rtt_log.bin | defmt-print -e target/thumbv7em-none-eabihf/release/atsamd-rtic-firmware | ||
|
||
exit 0 |
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
Oops, something went wrong.