-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
7461251
commit c6f32b1
Showing
1 changed file
with
95 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters