Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fpga): add fpga test target, update CI to run fpga-test #615

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ jobs:
with:
submodules: 'recursive'
- name: init mem and no ext mem
run: make fpga-run BOARD=CYCLONEV-GT-DK INIT_MEM=1 USE_EXTMEM=0
run: make fpga-test BOARD=CYCLONEV-GT-DK INIT_MEM=1 USE_EXTMEM=0
- name: no init mem and ext mem
run: make fpga-run BOARD=CYCLONEV-GT-DK INIT_MEM=0 USE_EXTMEM=1
run: make fpga-test BOARD=CYCLONEV-GT-DK INIT_MEM=0 USE_EXTMEM=1


aes-ku040:
Expand All @@ -106,9 +106,9 @@ jobs:
with:
submodules: 'recursive'
- name: init mem and no ext mem
run: make fpga-run BOARD=AES-KU040-DB-G INIT_MEM=1 USE_EXTMEM=0
run: make fpga-test BOARD=AES-KU040-DB-G INIT_MEM=1 USE_EXTMEM=0
- name: no init mem and ext mem
run: make fpga-run BOARD=AES-KU040-DB-G INIT_MEM=0 USE_EXTMEM=1
run: make fpga-test BOARD=AES-KU040-DB-G INIT_MEM=0 USE_EXTMEM=1

doc:
runs-on: self-hosted
Expand Down
3 changes: 3 additions & 0 deletions submodules/LIB/hardware/fpga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ else
endif
endif

test: run
sync && sleep 1 && test "$$(cat test.log)" = "Test passed!"

# clean
clean: $(FPGA_TOOL)-clean
find . -maxdepth 1 -type f -not \( -name "Makefile" -o -name "fpga_build.mk" -o -name "uut_build.mk" \) -delete
Expand Down
Loading