mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-26 09:41:05 +00:00
Rename src/tests/test.h -> src/tests/app_test.h to avoid confusion with observable tests/test.h
This commit is contained in:
parent
6836911661
commit
02de9be1ab
@ -1,3 +1,4 @@
|
|||||||
|
# Copyright (C) 2021 Igara Studio S.A.
|
||||||
# Copyright (C) 2001-2016 David Capello
|
# Copyright (C) 2001-2016 David Capello
|
||||||
# Find tests and add rules to compile them and run them
|
# Find tests and add rules to compile them and run them
|
||||||
|
|
||||||
@ -5,9 +6,6 @@ function(find_tests dir dependencies)
|
|||||||
file(GLOB tests ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*_tests.cpp)
|
file(GLOB tests ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*_tests.cpp)
|
||||||
list(REMOVE_AT ARGV 0)
|
list(REMOVE_AT ARGV 0)
|
||||||
|
|
||||||
# Add gtest include directory so we can #include <gtest/gtest.h> in tests source code
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/gtest/include)
|
|
||||||
|
|
||||||
# See if the test is linked with "laf-os" library.
|
# See if the test is linked with "laf-os" library.
|
||||||
list(FIND dependencies laf-os link_with_os)
|
list(FIND dependencies laf-os link_with_os)
|
||||||
if(link_with_os)
|
if(link_with_os)
|
||||||
@ -28,6 +26,13 @@ function(find_tests dir dependencies)
|
|||||||
|
|
||||||
target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
|
target_link_libraries(${testname} gtest ${ARGV} ${PLATFORM_LIBS})
|
||||||
|
|
||||||
|
target_include_directories(${testname} PUBLIC
|
||||||
|
# So we can include "tests/app_test.h"
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
# Add gtest include directory so we can #include <gtest/gtest.h>
|
||||||
|
# in tests source code
|
||||||
|
${CMAKE_SOURCE_DIR}/third_party/gtest/include)
|
||||||
|
|
||||||
if(extra_definitions)
|
if(extra_definitions)
|
||||||
set_target_properties(${testname}
|
set_target_properties(${testname}
|
||||||
PROPERTIES COMPILE_FLAGS ${extra_definitions})
|
PROPERTIES COMPILE_FLAGS ${extra_definitions})
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/cli/app_options.h"
|
#include "app/cli/app_options.h"
|
||||||
#include "app/cli/cli_processor.h"
|
#include "app/cli/cli_processor.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/cli/cli_processor.h"
|
#include "app/cli/cli_processor.h"
|
||||||
#include "doc/layer.h"
|
#include "doc/layer.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/color.h"
|
#include "app/color.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/context.h"
|
#include "app/context.h"
|
||||||
#include "app/doc.h"
|
#include "app/doc.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/context.h"
|
#include "app/context.h"
|
||||||
#include "app/doc.h"
|
#include "app/doc.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/context.h"
|
#include "app/context.h"
|
||||||
#include "app/doc.h"
|
#include "app/doc.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "base/thread.h"
|
#include "base/thread.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
#include "app/context.h"
|
#include "app/context.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/file/split_filename.h"
|
#include "app/file/split_filename.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/filename_formatter.h"
|
#include "app/filename_formatter.h"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
#include "app/ini_file.h"
|
#include "app/ini_file.h"
|
||||||
#include "base/fs.h"
|
#include "base/fs.h"
|
||||||
|
2
src/clip
2
src/clip
@ -1 +1 @@
|
|||||||
Subproject commit 4b8e4cf03836fb2bd48d64434e6271be7e6ec728
|
Subproject commit c46c49141f72dd753b260eea4e6d7b37413f0ff6
|
@ -1 +1 @@
|
|||||||
Subproject commit bddbeed8b94d2639fa945bdf14a90d7afbd58506
|
Subproject commit 8e03c3cb060120b25517503e6c1d9072686d1cd3
|
@ -5,7 +5,7 @@
|
|||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
|
|
||||||
#define TEST_GUI
|
#define TEST_GUI
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
|
|
||||||
using namespace ui;
|
using namespace ui;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
|
|
||||||
#define TEST_GUI
|
#define TEST_GUI
|
||||||
#include "tests/test.h"
|
#include "tests/app_test.h"
|
||||||
#include "gfx/rect_io.h"
|
#include "gfx/rect_io.h"
|
||||||
#include "gfx/size.h"
|
#include "gfx/size.h"
|
||||||
|
|
||||||
|
2
src/undo
2
src/undo
@ -1 +1 @@
|
|||||||
Subproject commit e72730478aa6d4dc3be0c914058a7e0561aabe1e
|
Subproject commit 3cf8f20d08bf38b06b8e0e75757a18e31ddb12d9
|
Loading…
x
Reference in New Issue
Block a user