Skip to content

Commit

Permalink
Fix test targets in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wkkuna committed Oct 28, 2022
1 parent 93b9e2e commit f0495f6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ before_script:

test:
script:
- ./.github/scripts/test.sh
- make testall
- mkdir out/
- mv out*.png out/
artifacts:
paths:
- out/
19 changes: 0 additions & 19 deletions .github/scripts/test.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
- name: Test
run: |
./.github/scripts/setup-environment.sh
./.github/scripts/test.sh
make testall
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@ export TAG
verilog:
$(SBT) "runMain $(DRIVER)"

test:
testsetup:
convert -resize $(SIZE_HALF)x$(SIZE_HALF) $(IMG) img0.rgba
convert -resize $(SIZE)x$(SIZE) $(IMG) img1.rgba
$(SBT) "testOnly -t *$(TB)"
convert -size $(SIZE)x$(SIZE) -depth 8 out.rgba out.png

testM2M: export DMACONFIG = AXI_AXIL_AXI
testM2M: testsetup
$(SBT) "test:testOnly -t *$(TB)"
convert -size $(SIZE)x$(SIZE) -depth 8 out.rgba outM2M.png

testS2M: export DMACONFIG = AXIS_AXIL_AXI
testS2M: testsetup
$(SBT) "test:testOnly -t *$(TB)"
convert -size $(SIZE)x$(SIZE) -depth 8 out.rgba outS2M.png

test: testS2M testM2M

testall: test
$(SBT) "test"
Expand Down

0 comments on commit f0495f6

Please sign in to comment.