To facilitate automated testing, the test vector feature can be run from the command line:
logisim --test-vector <circuit_name> <test_vector_file> <project.circ>
Or using the JAR file:
java -jar logisim-evolution.jar --test-vector <circuit_name> <test_vector_file> <project.circ>
TestsDLatch.txt)java -jar logisim-evolution.jar --test-vector dlatch TestsRegisterFile.txt /home/user/Computer.circ
The command will:
The result of a successful test will be sent to standard output (stdout), for example:
Loading test vector "testv1b.txt" ... Running 4 vectors ... 1 2 3 4 Passed : 4, Failed : 0
And in case of failure:
Loading test vector "testv1a.txt" ... Running 4 vectors ... 1 2 3 ob = 0 (expected 1) 4 ob = 1 (expected 0) Passed : 2, Failed : 2
Note: In the error output (stderr) you will read:
Error on test vector 3: Error on test vector 4:
Previous: Sequential Testing | Next: Tips and Best Practices.