Fix grep invocation in tests
This commit is contained in:
parent
947f1fca89
commit
4e67ba4a7c
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
test_btohex() {
|
||||
# FIXME: Remove grep when this bug is fixed:
|
||||
# https://github.com/sysprog21/rv32emu/issues/561
|
||||
result=$("${RV32EMU}" -d - -q tests/btohex.elf | grep -v '^\d' | "${JQ}" .x11)
|
||||
result=$("${RV32EMU}" -d - -q tests/btohex.elf | grep -v '^[0-9]' | "${JQ}" .x11)
|
||||
|
||||
# 16693 is 5A in ASCII (reversed from input due to little endian)
|
||||
test $? -eq 0 && test "${result}" -eq 13633
|
||||
|
@ -12,7 +12,7 @@ test_btohex() {
|
|||
test_tohex() {
|
||||
# FIXME: Remove grep when this bug is fixed:
|
||||
# https://github.com/sysprog21/rv32emu/issues/561
|
||||
result=$("${RV32EMU}" -q tests/tohex.elf | grep -v '^\d')
|
||||
result=$("${RV32EMU}" -q tests/tohex.elf | grep -v '^[0-9]')
|
||||
|
||||
test $? -eq 0 && test "${result}" = "CAFEFEED"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue