Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jun 13, 2024
1 parent ff51d6e commit 8658afa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/plat/generic/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -e
set -x

# Source global test configuration fileA
. scripts/ci/test-setup.sh
Expand All @@ -23,6 +22,7 @@ fi
###############
## Run tests ##
###############
set -x

# Fix permissions on the key
chmod 600 "build-generic$KEYSTONE_BITS/buildroot.build/target/root/.ssh/id-rsa"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/plat/mpfs/flash-firmware.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -e
set -x

# Source global test configuration file
. scripts/ci/test-setup.sh

###########
## Flash ##
###########
set -x

power_on
make -C build-mpfs64/buildroot.build/build/hss-v2023.06 program 2>/dev/null > "$LOGFILE"
Expand Down
6 changes: 5 additions & 1 deletion scripts/ci/plat/mpfs/flash-os.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -e
set -x

# Source global test configuration file
. scripts/ci/test-setup.sh

###########
## Flash ##
###########
set -x

# Wait for the board to come up a bit. We'll hammer it with serial
# input to ensure that we halt the boot at HSS
Expand All @@ -17,7 +17,11 @@ configure_tty "$TTYDEV" 115200

power_on
NOW=$(date +%s)

# Disable output when actually hammering cause this is spammy
set +x
while [[ $(( $(date +%s) - $NOW )) -lt 10 ]]; do echo 'a' > "$TTYDEV" ; done
set -x

# Board should have halted, kick it into flash update mode

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/plat/mpfs/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
set -e
set -x

# Source global test configuration file
. scripts/ci/test-setup.sh
Expand All @@ -13,6 +12,7 @@ fi
###############
## Run tests ##
###############
set -x

# Fix permissions on the key
chmod 600 build-mpfs64/buildroot.build/target/root/.ssh/id-rsa
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ function stop_record_tty {
fi

screen -XS "$1" quit
screen -wipe
}

0 comments on commit 8658afa

Please sign in to comment.