@@ -229,36 +229,35 @@ tool: $(TOOLS_BIN)
229
229
include mk/riscv-arch-test.mk
230
230
include mk/tests.mk
231
231
232
- CHECK_ELF_FILES := \
233
- hello \
234
- puzzle \
235
- fcalc
232
+ # the prebuilt executables are built for "rv32im"
233
+ CHECK_ELF_FILES :=
236
234
237
235
ifeq ($(call has, EXT_M) , 1)
238
236
CHECK_ELF_FILES += \
237
+ puzzle \
238
+ fcalc \
239
239
pi
240
240
endif
241
241
242
- EXPECTED_hello = Hello World!
243
242
EXPECTED_puzzle = success in 2005 trials
244
243
EXPECTED_fcalc = Performed 12 tests, 0 failures, 100% success rate.
245
244
EXPECTED_pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086
246
245
247
- check : $(BIN )
246
+ check : $(BIN ) build-testbenches
248
247
$(Q )$(foreach e,$(CHECK_ELF_FILES ) ,\
249
- $(PRINTF ) " Running $( e) .elf ... " ; \
250
- if [ " $( shell $( BIN) $( OUT) /$( e) .elf | uniq) " = " $( strip $( EXPECTED_$( e) ) ) inferior exit code 0" ]; then \
248
+ $(PRINTF ) " Running $( e) ... " ; \
249
+ if [ " $( shell $( BIN) $( OUT) /bin/riscv32/ $( e) | uniq) " = " $( strip $( EXPECTED_$( e) ) ) inferior exit code 0" ]; then \
251
250
$(call notice, [OK]) ; \
252
251
else \
253
252
$(PRINTF ) " Failed.\n" ; \
254
253
exit 1; \
255
254
fi ; \
256
255
)
257
256
258
- EXPECTED_aes_sha1 = 1242a6757c8aef23e50b5264f5941a2f4b4a347e -
259
- misalign : $(BIN )
260
- $(Q )$(PRINTF ) " Running aes.elf ... " ;
261
- $(Q ) if [ " $( shell $( BIN) -m $( OUT) /aes.elf | $( SHA1SUM) ) " = " $( EXPECTED_aes_sha1) " ]; then \
257
+ EXPECTED_aes_sha1 = f9924635666d3d58d5b60c0bde8b986a2a99effb -
258
+ misalign : $(BIN ) build-testbenches
259
+ $(Q )$(PRINTF ) " Running aes ... " ;
260
+ $(Q ) if [ " $( shell $( BIN) -m $( OUT) /bin/riscv32/ aes | $( SHA1SUM) ) " = " $( EXPECTED_aes_sha1) " ]; then \
262
261
$(call notice, [OK]) ; \
263
262
else \
264
263
$(PRINTF ) " Failed.\n" ; \
0 commit comments