fomu-workshop/.github/tests.sh

87 lines
1.7 KiB
Bash
Raw Normal View History

#!/bin/bash
set -e
2020-01-03 16:55:19 +00:00
TOOLCHAIN_PATH="$PWD/$(find fomu-toolchain-* -type d -maxdepth 0 2>/dev/null)"
2020-01-03 16:40:56 +00:00
echo "TOOLCHAIN_PATH: $TOOLCHAIN_PATH"
export PATH=$TOOLCHAIN_PATH/bin:$PATH
# Test the RISC-V C example
2020-01-03 19:06:48 +00:00
travis_fold start riscv-c
echo "RISC-V C Example"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
cd riscv-blink
make
file riscv-blink.dfu
)
travis_time_finish
2020-01-03 19:06:48 +00:00
travis_fold end riscv-c
2020-01-23 10:27:50 +00:00
# Test the Verilog Blink example
travis_fold start verilog-blink
echo "Verilog Blink example"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-23 10:27:50 +00:00
cd verilog/blink
2020-01-23 10:34:32 +00:00
make FOMU_REV=pvt
file blink.dfu
)
travis_time_finish
2020-01-23 10:27:50 +00:00
travis_fold end verilog-blink
2020-01-03 16:55:19 +00:00
# Test the Verilog Blink (expanded) example for Hacker
2020-01-03 19:06:48 +00:00
travis_fold start verilog-blink-expanded-hacker
echo "Verilog Blink (expanded) example for Hacker board"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-03 16:55:19 +00:00
cd verilog/blink-expanded
2020-01-03 19:06:48 +00:00
make FOMU_REV=hacker
file blink.dfu
)
travis_time_finish
2020-01-03 19:06:48 +00:00
travis_fold end verilog-blink-expanded-hacker
2020-01-03 16:55:19 +00:00
# Test the Verilog Blink (expanded) example for PVT
2020-01-03 19:06:48 +00:00
travis_fold start verilog-blink-expanded-pvt
echo "Verilog Blink (expanded) example for PVT board"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-03 16:55:19 +00:00
cd verilog/blink-expanded
2020-01-03 19:06:48 +00:00
make FOMU_REV=pvt
file blink.dfu
)
travis_time_finish
2020-01-03 19:06:48 +00:00
travis_fold end verilog-blink-expanded-pvt
# Test the LiteX example for Hacker
2020-01-03 19:06:48 +00:00
travis_fold start litex-hacker
echo "LiteX example for Hacker"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
cd litex
./workshop.py --board=hacker
file build/gateware/top.dfu
)
travis_time_finish
2020-01-03 19:06:48 +00:00
travis_fold end litex-hacker
# Test the LiteX example for PVT
2020-01-03 19:06:48 +00:00
travis_fold start litex-pvt
echo "LiteX example for PVT"
travis_time_start
(
2020-01-03 16:40:56 +00:00
set -x
cd litex
./workshop.py --board=pvt
file build/gateware/top.dfu
)
travis_time_finish
2020-01-03 19:06:48 +00:00
travis_fold end litex-pvt