Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Jan 14, 2025
1 parent e5620b6 commit 2a1b523
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test -x simh/BIN/h316 || (build)
echo Starting ARPANET. Allow 30 seconds for IMP network to settle.
./arpanet.sh start
# Some time for NCP too.
sleep 10
sleep 3

echo "Test pinging another host."
NCP=ncp2 $APPS/ncp-ping -c3 003 | grep 'Reply from host 003: seq=3' || fail
Expand All @@ -37,15 +37,15 @@ NCP=ncp2 $APPS/ncp-ping -c1 004 && fail
echo "Test pinging a dead IMP."
NCP=ncp2 $APPS/ncp-ping -c1 005 && fail

echo "Test RFC to socket without server."
NCP=ncp3 $APPS/ncp-finger 002 && fail

echo "Test ICP and simple data transfer using the Finger protocol."
NCP=ncp2 $APPS/ncp-finser &
NCP=ncp2 $APPS/ncp-finser || fail &
PID=$!
sleep 1
NCP=ncp3 $APPS/ncp-finger 002 "Sample Finger command from client." &
sleep 10
NCP=ncp3 $APPS/ncp-finger 002 "Sample Finger command from client." || fail &
sleep 3
kill $! $PID 2>/dev/null || :

echo "Test RFC to socket without server."
NCP=ncp3 $(APPS)/ncp-finger 002

exit $RESULT

0 comments on commit 2a1b523

Please sign in to comment.