You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CLI tool for testing Source engine game servers using the A2S protocol. Designed for use in CI/CD pipelines, container health checks, and manual server validation.
Features
Connectivity check: Verifies server responds to A2S_INFO queries
Map loaded check: Ensures a map is loaded and not in a loading state
Player slots check: Confirms players can join (max_players > 0 and not full)
JSON output: Structured output for scripting and automation
Exit codes: Specific codes for different failure types
Installation
From source
go install gameserver-testing/cmd/gstest@latest
Using Docker
docker pull gstest:latest
Build from source
git clone <repository>cd gameserver-testing
make build
Usage
# Basic connectivity test
gstest 192.168.1.100
# Specify port and timeout
gstest 192.168.1.100 --port 27016 --timeout 10s
# Run specific checks only
gstest 192.168.1.100 --checks connectivity,maploaded
# JSON output for scripting
gstest 192.168.1.100 --json
# Docker usage
docker run --rm gstest:latest 192.168.1.100 --port 27015 --json