build2-packaging / godot-cpp

build2 package for Godot's GDExtension library
2 stars 1 forks source link

Add test using Godot Engine loading the extension without error and doing something with it. #5

Open Klaim opened 1 year ago

Klaim commented 1 year ago

The Godot Engine executable being small might be ok to put directly in git, or maybe just downloading it directly as part of the test is best. Just make sure it's the same version as the version of the godot-cpp package.

Then add as testscript to the gdexample the cli run of the godot engine after the generated binaries from the gdextension test are moved into the demo project (provided by upstream). There is a cli api for the godot engine that should be useful. There must be no error on startup of the Godot Engine, and then you should be able to generate and run the demo. Not sure how to handle how to test the generated demo, need to check.