-
-
Notifications
You must be signed in to change notification settings - Fork 217
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/ --godot-version parameter. -a/--api-version is used to specify the Godot API version to use for building the Rust bindings. This flag works with or without gdvm. -g/--godot-version accepts a version of Godot to run the integration tests against. This flag is optional and defaults to the API version if provided. Under the hood, it uses gdvm to run the specified 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 c64574f
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