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>
@@ -1 +1 @@
|
||||
b2894c99d818c5155d90425e71327de847a833ae
|
||||
507af325610d089c8bdc2e6f8a76f80f1f8bd99d
|
||||
|
||||
@@ -47,25 +47,6 @@ do
|
||||
files({ 'bench/*.cpp' })
|
||||
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')
|
||||
do
|
||||
externalincludedirs({
|
||||
|
||||
@@ -39,6 +39,7 @@ function rive_tools_project(name, project_kind)
|
||||
RIVE_PLS_DIR .. '/src',
|
||||
RIVE_RUNTIME_DIR .. '/include',
|
||||
RIVE_RUNTIME_DIR .. '/cg_renderer/include',
|
||||
'unit_tests',
|
||||
})
|
||||
|
||||
includedirs({
|
||||
@@ -234,7 +235,7 @@ rive_tools_project('tools_common', 'StaticLib')
|
||||
do
|
||||
files({
|
||||
'common/*.cpp',
|
||||
'assets/*.cpp',
|
||||
'unit_tests/assets/*.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_vulkan.cpp',
|
||||
|
||||
@@ -5,4 +5,4 @@ BINARY_NAME="$(basename $BINARY_PATH)"
|
||||
shift
|
||||
|
||||
./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 $@"
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 522 KiB After Width: | Height: | Size: 522 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@@ -1,4 +1,4 @@
|
||||
#include "assets/batdude.png.hpp"
|
||||
#include "batdude.png.hpp"
|
||||
|
||||
namespace assets
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "assets/montserrat.ttf.hpp"
|
||||
#include "montserrat.ttf.hpp"
|
||||
|
||||
namespace assets
|
||||
{
|
||||
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 241 KiB |
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
@@ -1,4 +1,4 @@
|
||||
#include "assets/paper.riv.hpp"
|
||||
#include "paper.riv.hpp"
|
||||
|
||||
namespace assets
|
||||
{
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -1,4 +1,4 @@
|
||||
#include "assets/roboto_flex.ttf.hpp"
|
||||
#include "roboto_flex.ttf.hpp"
|
||||
|
||||
namespace assets
|
||||
{
|
||||