-
Notifications
You must be signed in to change notification settings - Fork 134
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
Showing
2 changed files
with
48 additions
and
1 deletion.
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,47 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Source global test configuration file | ||
. scripts/ci/test-setup.sh | ||
|
||
if [[ -z "$CMD_LOGFILE" ]]; then | ||
echo "CMD_LOGFILE undefined" | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$KEYSTONE_BITS" ]]; then | ||
echo "KEYSTONE_BITS undefined" | ||
exit 1 | ||
fi | ||
|
||
get_platform_var BOARD_IP | ||
|
||
############### | ||
## Run tests ## | ||
############### | ||
set -x | ||
|
||
# Fix permissions on the key | ||
chmod 600 build-mpfs64/buildroot.build/target/root/.ssh/id-rsa | ||
|
||
# Start the board | ||
export KEYSTONE_PLATFORM=cva6 | ||
export KEYSTONE_IP="$BOARD_IP" | ||
|
||
TTYDEV=$(find_tty 0) | ||
start_record_tty "$TTYDEV" 115200 "$LOGFILE" cva6-tty | ||
power_on | ||
|
||
# TODO: check for connectivity instead of sleeping | ||
sleep 300 | ||
|
||
export CALL_LOGFILE="$CMD_LOGFILE" | ||
touch "$CALL_LOGFILE" | ||
|
||
KEYSTONE_COMMAND="modprobe keystone-driver" make call | ||
KEYSTONE_COMMAND="/usr/share/keystone/examples/tests.ke" make call | ||
KEYSTONE_COMMAND="/usr/share/keystone/examples/attestor.ke" make call | ||
|
||
power_off | ||
stop_record_tty cva6-tty | ||
exit 0 |