Skip to content

Commit

Permalink
prod: synchrona: adapt tests to newest synchrona image
Browse files Browse the repository at this point in the history
The latest modifications in the latest version of
drivers, kuiper and synchrona devicetree, led to a
series of modifications in the test scripts. The
devicetrees have been updated to match the latest
version, and a few minor modifications regarding
removing overlays and the static ip have been
added.

Signed-off-by: Ramona Alexandra Nechita <[email protected]>
  • Loading branch information
ranechita committed Jun 2, 2022
1 parent ab2fac0 commit 14f6e7d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions main_tests/synch/clk_disable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ clk_test_cmos()
return $(( ret1 ))
}

sudo dtoverlay -r
sudo dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044.dtbo

lsblk | grep "/media/analog/M2k"
Expand Down
2 changes: 1 addition & 1 deletion main_tests/synch/misc_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ run_test $TEST_ID "$SHORT_DESC" "$CMD"

TEST_ID="03"
SHORT_DESC="Test poweroff. Synchrona will be turned off now."
CMD="sshpass -p analog ssh -q -t -oConnectTimeout=10 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oCheckHostIP=no analog@analog \"sudo poweroff\" ;"
CMD="sshpass -p analog ssh -q -t -oConnectTimeout=10 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oCheckHostIP=no analog@192.168.2.1 \"sudo poweroff\" ;"
CMD+="YES_no 'Device should be turned off. Check if fan is off, STAT2 is off and STAT1 has turned red'"
run_test $TEST_ID "$SHORT_DESC" "$CMD"

Expand Down
Binary file modified main_tests/synch/rpi-ad9545-hmc7044-no-ad.dtbo
Binary file not shown.
Binary file modified main_tests/synch/rpi-ad9545-hmc7044-vcxo2.dtbo
Binary file not shown.
Binary file modified main_tests/synch/rpi-ad9545-hmc7044.dtbo
100644 → 100755
Binary file not shown.
3 changes: 2 additions & 1 deletion main_tests/synch/synch_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ source $SCRIPT_DIR/test_i2c_temp.sh
answer=$?
proceed_if_ok $answer


dtoverlay -r
dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044.dtbo
sudo fru-dump -i $SCRIPT_DIR/pieeprom-new.bin -o $SCRIPT_DIR/pieeprom-new.bin -I 524016 -O 524016 -d now -s $BOARD_SERIAL
rpi-eeprom-update -d -f $SCRIPT_DIR/pieeprom-new.bin

Expand Down
2 changes: 1 addition & 1 deletion main_tests/synch/test_uart.expect
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ send "\r"
expect -re "root@analog:~# "
send "cat /proc/device-tree/model | grep \"Raspberry Pi 4\"\r"
expect {
"Binary file (standard input) matches" { exit 0 }
"grep: (standard input): binary file matches" { exit 0 }
}
exit 1
4 changes: 1 addition & 3 deletions main_tests/synch/vcxo_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ source $SCRIPT_DIR/test_util.sh
TEST_NAME="TEST_CLK_OUTPUTS"

TEST_ID="01"
SHORT_DESC="TEST OUTPUT CHANNEL 01 - P. Make sure cable is connected!"
SHORT_DESC="TEST VCXO SWITCH"
CMD="dtoverlay -r;"
CMD+="echo 6 > /sys/class/gpio/export;"
CMD+="echo 1 > /sys/class/gpio/gpio6/value;"
CMD+="dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044-vcxo2.dtbo;"
CMD+="cat /sys/kernel/debug/iio/iio\:device0/status | grep \"PLL1 & PLL2 Locked\""
run_test $TEST_ID "$SHORT_DESC" "$CMD"

0 comments on commit 14f6e7d

Please sign in to comment.