-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each .query file contains some command-line arguments that are passed to the binary. It is must be accompanied by a .expected file that contains the expected output.
- Loading branch information
1 parent
12a0ee0
commit 12d58fd
Showing
7 changed files
with
5,255 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
message(STATUS "Adding tests") | ||
file(GLOB TESTS "*.query" CONFIGURE_DEPENDS "*.query") | ||
|
||
message(STATUS "Tests: ${TESTS}") | ||
|
||
foreach(TEST ${TESTS}) | ||
get_filename_component(TEST_NAME ${TEST} NAME_WE) | ||
add_test(${TEST_NAME}_expected "${CMAKE_CURRENT_SOURCE_DIR}/testexpected.sh" "${CMAKE_BINARY_DIR}/cheriot-audit" ${TEST}) | ||
endforeach() | ||
|
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,40 @@ | ||
{ | ||
"devices": { | ||
"clint": { | ||
"start": 0x2000000, | ||
"length": 0x10000 | ||
}, | ||
"uart": { | ||
"start": 0x10000000, | ||
"end": 0x10000100 | ||
}, | ||
"shadow" : { | ||
"start" : 0x83000000, | ||
"end" : 0x83001000 | ||
} | ||
}, | ||
"instruction_memory": { | ||
"start": 0x80000000, | ||
"end": 0x80040000 | ||
}, | ||
"heap": { | ||
"end": 0x80040000 | ||
}, | ||
"interrupts": [ | ||
{ | ||
"name": "FakeInterrupt", | ||
"number": 4, | ||
"priority": 2 | ||
} | ||
], | ||
"defines" : "SAIL", | ||
"driver_includes" : [ | ||
"../include/platform/generic-riscv" | ||
], | ||
"timer_hz" : 2000, | ||
"tickrate_hz" : 10, | ||
"revoker" : "software", | ||
"stack_high_water_mark" : true, | ||
"simulator" : "cheriot_sim", | ||
"simulation": true | ||
} |
Oops, something went wrong.