Add tests for weather and time of day system
This commit is contained in:
19
run-tests.sh
19
run-tests.sh
@@ -44,6 +44,25 @@ flee
|
||||
quit
|
||||
EOF
|
||||
|
||||
ssh_mud smoketest@localhost <<'EOF' > weather_test.out
|
||||
go south
|
||||
go down
|
||||
look
|
||||
quit
|
||||
EOF
|
||||
|
||||
if ! grep -q "The sky is\|raining\|storm\|snow\|fog" weather_test.out; then
|
||||
echo "Error: Weather info not found in look output"
|
||||
cat weather_test.out
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -q "\[Night\]\|\[Morning\]\|\[Afternoon\]\|\[Evening\]" weather_test.out; then
|
||||
echo "Error: Time of day info not found in look output"
|
||||
cat weather_test.out
|
||||
exit 1
|
||||
fi
|
||||
rm weather_test.out
|
||||
|
||||
ssh_mud smoketest@localhost <<'EOF'
|
||||
look
|
||||
stats
|
||||
|
||||
Reference in New Issue
Block a user