- Fixed some more compilation issues
- Added some more information to the licensing section of README.md
This commit is contained in:
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.30)
|
||||
project(fennec-test)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 26)
|
||||
set(CMAKE_C_STANDARD 26)
|
||||
|
||||
add_executable(fennec-test main.cpp
|
||||
test.h
|
||||
@@ -22,8 +23,11 @@ add_executable(fennec-test main.cpp
|
||||
tests/fproc/test_strings.h
|
||||
tests/fproc/strings/test_cstring.h
|
||||
tests/test_fproc.h
|
||||
tests/fproc/test_io.h
|
||||
)
|
||||
|
||||
target_compile_definitions(fennec-test PUBLIC FENNEC_TEST_CWD="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
||||
|
||||
target_link_libraries(fennec-test PRIVATE
|
||||
fennec
|
||||
)
|
||||
40
test/tests/fproc/test_io.h
Normal file
40
test/tests/fproc/test_io.h
Normal file
@@ -0,0 +1,40 @@
|
||||
// =====================================================================================================================
|
||||
// fennec, a free and open source game engine
|
||||
// Copyright © 2025 Medusa Slockbower
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
#ifndef FENNEC_TEST_FPROC_IO_H
|
||||
#define FENNEC_TEST_FPROC_IO_H
|
||||
|
||||
#include "../../test.h"
|
||||
|
||||
#include <fennec/fproc/io/common.h>
|
||||
|
||||
namespace fennec
|
||||
{
|
||||
|
||||
namespace test
|
||||
{
|
||||
|
||||
inline void fennec_test_fproc_io() {
|
||||
fennec_test_run(getcwd(), string(FENNEC_TEST_CWD));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // FENNEC_TEST_FPROC_IO_H
|
||||
@@ -20,7 +20,9 @@
|
||||
#define FENNEC_TEST_FPROC_H
|
||||
|
||||
#include "../test.h"
|
||||
|
||||
#include "./fproc/test_strings.h"
|
||||
#include "./fproc/test_io.h"
|
||||
|
||||
namespace fennec
|
||||
{
|
||||
@@ -28,13 +30,16 @@ namespace fennec
|
||||
namespace test
|
||||
{
|
||||
|
||||
inline void fennec_test_fproc()
|
||||
{
|
||||
inline void fennec_test_fproc() {
|
||||
fennec_test_header("strings");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_fproc_strings();
|
||||
fennec_test_spacer(3);
|
||||
|
||||
fennec_test_header("io");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_fproc_io();
|
||||
fennec_test_spacer(3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user