Add automated tests that run a GDExtension (rather than just building it)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <godot_cpp/classes/control.hpp>
|
||||
#include <godot_cpp/classes/global_constants.hpp>
|
||||
#include <godot_cpp/classes/image.hpp>
|
||||
#include <godot_cpp/classes/viewport.hpp>
|
||||
|
||||
#include <godot_cpp/core/binder_common.hpp>
|
||||
@@ -38,6 +39,7 @@ public:
|
||||
ExampleRef();
|
||||
~ExampleRef();
|
||||
|
||||
void set_id(int p_id);
|
||||
int get_id() const;
|
||||
};
|
||||
|
||||
@@ -90,8 +92,13 @@ public:
|
||||
// Functions.
|
||||
void simple_func();
|
||||
void simple_const_func() const;
|
||||
int custom_ref_func(Ref<ExampleRef> p_ref);
|
||||
int custom_const_ref_func(const Ref<ExampleRef> &p_ref);
|
||||
String image_ref_func(Ref<Image> p_image);
|
||||
String image_const_ref_func(const Ref<Image> &p_image);
|
||||
String return_something(const String &base);
|
||||
Viewport *return_something_const() const;
|
||||
Ref<ExampleRef> return_ref() const;
|
||||
Ref<ExampleRef> return_empty_ref() const;
|
||||
ExampleRef *return_extended_ref() const;
|
||||
Ref<ExampleRef> extended_ref_checks(Ref<ExampleRef> p_ref) const;
|
||||
@@ -102,7 +109,7 @@ public:
|
||||
int def_args(int p_a = 100, int p_b = 200);
|
||||
|
||||
Array test_array() const;
|
||||
void test_tarray_arg(const TypedArray<int64_t> &p_array);
|
||||
int test_tarray_arg(const TypedArray<int64_t> &p_array);
|
||||
TypedArray<Vector2> test_tarray() const;
|
||||
Dictionary test_dictionary() const;
|
||||
Example *test_node_argument(Example *p_node) const;
|
||||
|
||||
Reference in New Issue
Block a user