This commit is contained in:
Lee Lup Yuen 2022-12-09 18:34:02 +08:00
parent 5dfc47106d
commit cdb6bbc8e5

View file

@ -9,6 +9,7 @@ clear
## Compile test code
gcc \
-o test \
-I . \
-I ../../nuttx/arch/arm64/src/a64 \
test.c \
../../nuttx/arch/arm64/src/a64/a64_mipi_dphy.c \
@ -20,6 +21,7 @@ gcc \
## Diff the actual and expected test logs
./test >test.log
set +e # Ignore errors
diff \
--ignore-all-space \
expected.log test.log \
@ -32,3 +34,5 @@ diff \
| grep -v "ret=" \
| grep -v "pktlen=" \
| grep -v "hello" \
set -e # Exit when any command fails