fix(tests) fix UI tests when run from scratch
The STATUSQ_SHADOW_BUILD will allow loading the qml files from sources
The StatusQ dependency helps building StatusQ which is used for C++
helpers
Updates #12639
ghstack-source-id: cbe0a994e7
Pull Request resolved: https://github.com/status-im/status-desktop/pull/12787
This commit is contained in:
parent
961babc65a
commit
a87a11f92f
1
Makefile
1
Makefile
|
@ -314,6 +314,7 @@ statusq-tests:
|
|||
-DSTATUSQ_BUILD_SANDBOX=OFF \
|
||||
-DSTATUSQ_BUILD_SANITY_CHECKER=OFF \
|
||||
-DSTATUSQ_BUILD_TESTS=ON \
|
||||
-DSTATUSQ_SHADOW_BUILD=OFF \
|
||||
-B $(STATUSQ_BUILD_PATH) \
|
||||
-S $(STATUSQ_SOURCE_PATH) \
|
||||
$(HANDLE_OUTPUT)
|
||||
|
|
|
@ -15,6 +15,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|||
add_definitions(-DQUICK_TEST_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
add_executable(${PROJECT_NAME} main.cpp)
|
||||
add_dependencies(${PROJECT_NAME} StatusQ)
|
||||
|
||||
add_test(NAME ${PROJECT_NAME} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} -input "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
|
Loading…
Reference in New Issue