summaryrefslogtreecommitdiff
path: root/scripts/test-quick.sh
blob: a37c3994b00c4c1dd9763ea652984a0d2b5699ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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