Skip to content

Commit

Permalink
forgot a file
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jun 18, 2024
1 parent f13bcfa commit a0429d1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Check expected
run: |
[[ -z $(diff -w cmd.log scripts/ci/plat/${{ matrix.platform }}/expected.log) ]]
[[ -z $(diff -wB cmd.log scripts/ci/plat/${{ matrix.platform }}/expected.log) ]]
- name: Upload run log
if: failure()
Expand Down
47 changes: 47 additions & 0 deletions scripts/ci/plat/cva6/test.sh
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

0 comments on commit a0429d1

Please sign in to comment.