소스 검색

[Test] Add minimal test for templates inclusion.

We probably want to test more than just them being able to compile, but
this is a start.
Fabio Alessandrelli 3 년 전
부모
커밋
e272d92827
2개의 변경된 파일53개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      test/src/register_types.cpp
  2. 52 0
      test/src/tests.h

+ 1 - 0
test/src/register_types.cpp

@@ -12,6 +12,7 @@
 #include <godot_cpp/godot.hpp>
 
 #include "example.h"
+#include "tests.h"
 
 using namespace godot;
 

+ 52 - 0
test/src/tests.h

@@ -0,0 +1,52 @@
+/*************************************************************************/
+/*  tests.h                                                              */
+/*************************************************************************/
+/*                       This file is part of:                           */
+/*                           GODOT ENGINE                                */
+/*                      https://godotengine.org                          */
+/*************************************************************************/
+/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md).   */
+/*                                                                       */
+/* Permission is hereby granted, free of charge, to any person obtaining */
+/* a copy of this software and associated documentation files (the       */
+/* "Software"), to deal in the Software without restriction, including   */
+/* without limitation the rights to use, copy, modify, merge, publish,   */
+/* distribute, sublicense, and/or sell copies of the Software, and to    */
+/* permit persons to whom the Software is furnished to do so, subject to */
+/* the following conditions:                                             */
+/*                                                                       */
+/* The above copyright notice and this permission notice shall be        */
+/* included in all copies or substantial portions of the Software.       */
+/*                                                                       */
+/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       */
+/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    */
+/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
+/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  */
+/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,  */
+/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
+/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
+/*************************************************************************/
+
+#ifndef TESTS_H
+#define TESTS_H
+
+#include "godot_cpp/templates/cowdata.hpp"
+#include "godot_cpp/templates/hash_map.hpp"
+#include "godot_cpp/templates/hash_set.hpp"
+#include "godot_cpp/templates/hashfuncs.hpp"
+#include "godot_cpp/templates/list.hpp"
+#include "godot_cpp/templates/pair.hpp"
+#include "godot_cpp/templates/rb_map.hpp"
+#include "godot_cpp/templates/rb_set.hpp"
+#include "godot_cpp/templates/rid_owner.hpp"
+#include "godot_cpp/templates/safe_refcount.hpp"
+#include "godot_cpp/templates/search_array.hpp"
+#include "godot_cpp/templates/sort_array.hpp"
+#include "godot_cpp/templates/spin_lock.hpp"
+#include "godot_cpp/templates/thread_work_pool.hpp"
+#include "godot_cpp/templates/vector.hpp"
+#include "godot_cpp/templates/vmap.hpp"
+#include "godot_cpp/templates/vset.hpp"
+
+#endif // TESTS_H