Possible Duplicate:
How can I unit test Arduino code?
What is the best way to have unit tests for embedded code? Specifically for Arduino. I'm writing a CNC controller, and I'd like to unit test my code for the motor control (that is, I know the sequence of output states, etc.). Is there a standard way of unit testing code for architectures other than the development machine?
Is the only way to compile for x_86 and run unit tests that way? Is that good enough? The avr-gcc
compiler has very specific settings obviously. I'd like to test in the most relevant manner possible.