Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Nov 10, 2023
1 parent b6601b2 commit 777e36b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added test/srcds-cs2-query
Binary file not shown.
8 changes: 8 additions & 0 deletions test/test-game-image-game-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ for i in $( ls hlds-* srcds-* | grep -v srcds-cs2 ); do
cat "$i" | grep -iE '\bexe\b|version' | sed 's/[^0-9]//g'
echo
done

for i in srcds-cs2-query; do
echo "[$i]"
cat "$i" | tr "[:cntrl:]" "\\n" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'
echo
cat "$i" | tr "[:cntrl:]" "\\n" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sed 's/[^0-9]//g'
echo
done

0 comments on commit 777e36b

Please sign in to comment.