Skip to content

Commit

Permalink
Pre-check for required programs in fg_full_integration_test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
julianneswinoga committed Nov 17, 2024
1 parent a046635 commit c96de5c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/fg_full_integration_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#!/bin/bash
set -eu

# Check programs available
function check_cmd_exists {
if ! command -v "$1" 2>&1 >/dev/null; then
echo "$1 not found"
exit 1
fi
}
check_cmd_exists socat
check_cmd_exists nc
check_cmd_exists timeout
check_cmd_exists curl
check_cmd_exists wget
check_cmd_exists tar
check_cmd_exists ps
check_cmd_exists poetry

base_dir='/tmp/fg-py-integration-test'
# Names from the sourceforge download URL
# See https://sourceforge.net/projects/flightgear/files/
Expand Down

0 comments on commit c96de5c

Please sign in to comment.