forked from ZcashFoundation/zcash-fpga
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test script for automaticlly run fpga test
- Loading branch information
Showing
2 changed files
with
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
### these are for AWS FPGA config ### | ||
cd $AWS_FPGA_REPO_DIR && source sdk_setup.sh | ||
echo "always be sure to source the sdk_setup.sh" | ||
echo " " | ||
|
||
### prepare FPGA image ### | ||
echo -n "Do you need clear and reload the fpga AFI (Y/N)" | ||
read input | ||
if [[ $input = Y ]]; then | ||
echo "clear the fpga AFI..." | ||
sudo fpga-clear-local-image -S -0 | ||
echo " " | ||
echo "reload the fpga AFI..." | ||
sleep 3 | ||
sudo fpga-load-local-image -S 0 -I agfi-0ef71fd274fd5b46e | ||
echo "If FPGA image load correctlly, it is ready for the test" | ||
else | ||
echo "Now you should be ready for FPGA test" | ||
fi | ||
|
||
### run FPGA test ### | ||
cd ~/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime | ||
echo "Ready for run Zcash FPGA test!" | ||
|
||
sleep 2 | ||
echo " " | ||
sleep 2 | ||
echo " " | ||
sudo ./test_zcash |
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,20 @@ | ||
### these are for AWS FPGA config ### | ||
cd $AWS_FPGA_REPO_DIR && source sdk_setup.sh | ||
echo "always be sure to source the sdk_setup.sh" | ||
echo " " | ||
echo "clear the fpga AFI..." | ||
sudo fpga-clear-local-image -S -0 | ||
echo " " | ||
echo "reload the fpga AFI..." | ||
sleep 3 | ||
sudo fpga-load-local-image -S 0 -I agfi-0ef71fd274fd5b46e | ||
echo "If FPGA image load correctlly, it is ready for the test" | ||
|
||
cd ~/aws-fpga/hdk/cl/developer_designs/cl_zcash/software/runtime | ||
echo "Ready for run Zcash FPGA test!" | ||
|
||
sleep 2 | ||
echo " " | ||
sleep 2 | ||
echo " " | ||
sudo ./test_zcash |