@@ -343,7 +343,7 @@ EXPECTED_pi = 3.1415926535897932384626433832795028841971693993751058209749445923
343
343
344
344
check-hello : $(BIN )
345
345
$(Q )$(PRINTF ) " Running hello.elf ... " ; \
346
- if [ " $( shell $( BIN) $( OUT) /hello.elf | uniq) " = " $( strip $( EXPECTED_hello) ) inferior exit code 0" ]; then \
346
+ if [ " $( shell LC_ALL=C $( BIN) $( OUT) /hello.elf | uniq) " = " $( strip $( EXPECTED_hello) ) inferior exit code 0" ]; then \
347
347
$(call notice, [OK]) ; \
348
348
else \
349
349
$(PRINTF ) " Failed.\n" ; \
@@ -353,7 +353,7 @@ check-hello: $(BIN)
353
353
check : $(BIN ) check-hello artifact
354
354
$(Q )$(foreach e,$(CHECK_ELF_FILES ) ,\
355
355
$(PRINTF ) " Running $( e) ... " ; \
356
- if [ " $( shell $( BIN) $( OUT) /riscv32/$( e) | uniq) " = " $( strip $( EXPECTED_$( e) ) ) inferior exit code 0" ]; then \
356
+ if [ " $( shell LC_ALL=C $( BIN) $( OUT) /riscv32/$( e) | uniq) " = " $( strip $( EXPECTED_$( e) ) ) inferior exit code 0" ]; then \
357
357
$(call notice, [OK]) ; \
358
358
else \
359
359
$(PRINTF ) " Failed.\n" ; \
@@ -364,7 +364,7 @@ check: $(BIN) check-hello artifact
364
364
EXPECTED_aes_sha1 = 1242a6757c8aef23e50b5264f5941a2f4b4a347e -
365
365
misalign : $(BIN ) artifact
366
366
$(Q )$(PRINTF ) " Running uaes ... " ;
367
- $(Q ) if [ " $( shell $( BIN) -m $( OUT) /riscv32/uaes | $( SHA1SUM) ) " = " $( EXPECTED_aes_sha1) " ]; then \
367
+ $(Q ) if [ " $( shell LC_ALL=C $( BIN) -m $( OUT) /riscv32/uaes | $( SHA1SUM) ) " = " $( EXPECTED_aes_sha1) " ]; then \
368
368
$(call notice, [OK]) ; \
369
369
else \
370
370
$(PRINTF ) " Failed.\n" ; \
@@ -373,7 +373,7 @@ misalign: $(BIN) artifact
373
373
EXPECTED_misalign = MISALIGNED INSTRUCTION FETCH TEST PASSED!
374
374
misalign-in-blk-emu : $(BIN )
375
375
$(Q )$(PRINTF ) " Running misalign.elf ... " ; \
376
- if [ " $( shell $( BIN) tests/system/alignment/misalign.elf | tail -n 2) " = " $( strip $( EXPECTED_misalign) ) inferior exit code 0" ]; then \
376
+ if [ " $( shell LC_ALL=C $( BIN) tests/system/alignment/misalign.elf | tail -n 2) " = " $( strip $( EXPECTED_misalign) ) inferior exit code 0" ]; then \
377
377
$(call notice, [OK]) ; \
378
378
else \
379
379
$(PRINTF ) " Failed.\n" ; \
@@ -383,7 +383,7 @@ misalign-in-blk-emu: $(BIN)
383
383
EXPECTED_mmu = STORE PAGE FAULT TEST PASSED!
384
384
mmu-test : $(BIN )
385
385
$(Q )$(PRINTF ) " Running vm.elf ... " ; \
386
- if [ " $( shell $( BIN) tests/system/mmu/vm.elf | tail -n 2) " = " $( strip $( EXPECTED_mmu) ) inferior exit code 0" ]; then \
386
+ if [ " $( shell LC_ALL=C $( BIN) tests/system/mmu/vm.elf | tail -n 2) " = " $( strip $( EXPECTED_mmu) ) inferior exit code 0" ]; then \
387
387
$(call notice, [OK]) ; \
388
388
else \
389
389
$(PRINTF ) " Failed.\n" ; \
@@ -392,13 +392,13 @@ mmu-test: $(BIN)
392
392
393
393
# Non-trivial demonstration programs
394
394
ifeq ($(call has, SDL) , 1)
395
- doom_action := (cd $(OUT ) ; ../$(BIN ) riscv32/doom)
395
+ doom_action := (cd $(OUT ) ; LC_ALL=C ../$(BIN ) riscv32/doom)
396
396
doom_deps += $(DOOM_DATA ) $(BIN )
397
397
doom : artifact $(doom_deps )
398
398
$(doom_action )
399
399
400
400
ifeq ($(call has, EXT_F) , 1)
401
- quake_action := (cd $(OUT ) ; ../$(BIN ) riscv32/quake)
401
+ quake_action := (cd $(OUT ) ; LC_ALL=C ../$(BIN ) riscv32/quake)
402
402
quake_deps += $(QUAKE_DATA ) $(BIN )
403
403
quake : artifact $(quake_deps )
404
404
$(quake_action )
0 commit comments