Add android unit tests and remove running tests in platform testing

Diffs=
507af3256 Add android unit tests and remove running tests in platform testing (#8067)

Co-authored-by: rivessamr <suki@rive.app>
This commit is contained in:
rivessamr
2024-09-06 21:12:06 +00:00
parent c6f5ae2bde
commit d674f970da
157 changed files with 145 additions and 163 deletions

View File

@@ -1 +1 @@
b2894c99d818c5155d90425e71327de847a833ae 507af325610d089c8bdc2e6f8a76f80f1f8bd99d

View File

@@ -47,25 +47,6 @@ do
files({ 'bench/*.cpp' }) files({ 'bench/*.cpp' })
end end
rive_tools_project('tests', _OPTIONS['os'] == 'ios' and 'StaticLib' or 'ConsoleApp')
do
exceptionhandling('On')
defines({
'TESTING',
'ENABLE_QUERY_FLAT_VERTICES',
})
externalincludedirs({
'../include', -- For catch.hpp
})
files({
'unit_tests/runtime/main_test.cpp', -- main() function for catch.hpp
'unit_tests/renderer/*.cpp',
})
end
rive_tools_project('gms', 'RiveTool') rive_tools_project('gms', 'RiveTool')
do do
externalincludedirs({ externalincludedirs({

View File

@@ -39,6 +39,7 @@ function rive_tools_project(name, project_kind)
RIVE_PLS_DIR .. '/src', RIVE_PLS_DIR .. '/src',
RIVE_RUNTIME_DIR .. '/include', RIVE_RUNTIME_DIR .. '/include',
RIVE_RUNTIME_DIR .. '/cg_renderer/include', RIVE_RUNTIME_DIR .. '/cg_renderer/include',
'unit_tests',
}) })
includedirs({ includedirs({
@@ -234,7 +235,7 @@ rive_tools_project('tools_common', 'StaticLib')
do do
files({ files({
'common/*.cpp', 'common/*.cpp',
'assets/*.cpp', 'unit_tests/assets/*.cpp',
RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_gl.cpp', RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_gl.cpp',
RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_d3d.cpp', RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_d3d.cpp',
RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_vulkan.cpp', RIVE_PLS_DIR .. '/path_fiddle/fiddle_context_vulkan.cpp',

View File

@@ -5,4 +5,4 @@ BINARY_NAME="$(basename $BINARY_PATH)"
shift shift
./push_console_app_to_android.sh $BINARY_PATH ./push_console_app_to_android.sh $BINARY_PATH
adb shell "cd /data/local/tmp; export LD_LIBRARY_PATH=/data/local/tmp; ./$BINARY_NAME $@" adb shell "cd /data/local/tmp; ./$BINARY_NAME $@"

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 522 KiB

After

Width:  |  Height:  |  Size: 522 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -1,4 +1,4 @@
#include "assets/batdude.png.hpp" #include "batdude.png.hpp"
namespace assets namespace assets
{ {

View File

@@ -1,4 +1,4 @@
#include "assets/montserrat.ttf.hpp" #include "montserrat.ttf.hpp"
namespace assets namespace assets
{ {

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 241 KiB

View File

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 214 KiB

View File

@@ -1,4 +1,4 @@
#include "assets/paper.riv.hpp" #include "paper.riv.hpp"
namespace assets namespace assets
{ {

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,4 +1,4 @@
#include "assets/roboto_flex.ttf.hpp" #include "roboto_flex.ttf.hpp"
namespace assets namespace assets
{ {

Some files were not shown because too many files have changed in this diff Show More