sparrow-kata-full/apps/system/components/OpenTitanUARTDriver/test.sh
Matt Harvey 0a506b7c7f Merge "UartDriver receive interrupts, round 2"
GitOrigin-RevId: 26f67f1f11efd4aa664c68f9c638f3fa388b2f81
2022-10-06 18:02:08 +00:00

11 lines
302 B
Bash
Executable File

#!/bin/sh
# Quick and dirty script to test the pure C module the UART driver depends on.
# This can be run as needed with the development machine gcc.
TEST_BINARY=test_circular_buffer
cc -o $TEST_BINARY -Iinclude src/circular_buffer.c test/circular_buffer_test.c
./$TEST_BINARY
rm -f ./$TEST_BINARY