brew install socat
socat -d -d pty,raw,echo=0 pty,raw,echo=0
When running socat I get an output with two serial ports. I put the two serial ports into NERVES_UART_PORT1 and NERVES_UART_PORT2 Running this gets all but 6 tests to pass.
No environment vars - 27 failures