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
test: support switching godot versions in check.sh
Allows easily testing against a given version of Godot simply by passing
a version to the -a/--api-version parameter and/or the -g/--use-gdvm
parameter.
-a/--api-version is used to specify the Godot API version to use for
building the Rust bindings.
-g/--use-gdvm indicates that the script should use gdvm to match the
Godot version to the API version. It also accepts a version of Godot to
use instead, which allows testing for compatibility between versions of
Godot and the Rust bindings' API version.
Examples:
Test with Godot API version 4.2.1 and the detected version of Godot. If
gdvm is installed, it will use the version of Godot that matches the API
version.
./check.sh itest -a 4.2.1
Test with Godot API version 4.2.1 and Godot version 4.3.0.
./check.sh itest -g 4.3.0 -a 4.2.1
This commit also adds detection support for gdvm, such that if a user
has gdvm installed, the script will use it as the path to the Godot
executable, unless overridden by the GODOT4_BIN environment variable.
This way it can ensure passing the --console flag to gdvm, useful for
Windows users who otherwise default to the version of Godot that does
not attach to the console. This also enables the version selection
functionality described above.
0 commit comments