diff options
Diffstat (limited to 'scripts/test-quick.sh')
| -rwxr-xr-x | scripts/test-quick.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/test-quick.sh b/scripts/test-quick.sh new file mode 100755 index 0000000..a37c399 --- /dev/null +++ b/scripts/test-quick.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# Quick test to verify simulation runs correctly +# + +echo "Quick DS-Sim Protocol Test" +echo "=========================" +echo + +# Test ping-pong with shorter timeout +echo "Testing ping-pong protocol..." +timeout 5 java -cp target/classes:target/test-classes \ + -Djava.awt.headless=true \ + -Dds.sim.headless=true \ + testing.HeadlessProtocolRunner saved-simulations/ping-pong.dat + +if [ $? -eq 124 ]; then + echo "✗ Test timed out after 5 seconds" +else + echo "✓ Test completed successfully" +fi
\ No newline at end of file |
