Skip to content

Commit

Permalink
Fix test instance dependency
Browse files Browse the repository at this point in the history
Fix #1234
  • Loading branch information
wengxt committed Jan 23, 2025
1 parent 448b4fd commit 7d71627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ foreach(TESTCASE ${FCITX_CORE_TEST})
endforeach()

add_dependencies(testaddon dummyaddon)
add_dependencies(testinstance copy-addon testfrontend testim)
add_dependencies(testinputcontext copy-addon testfrontend testim)

if (ENABLE_KEYBOARD)
add_executable(testxkbrules testxkbrules.cpp ../src/im/keyboard/xkbrules.cpp ../src/im/keyboard/xmlparser.cpp)
Expand Down
3 changes: 2 additions & 1 deletion test/testinstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ void testModifierOnlyHotkey(Instance &instance) {

int main() {
setupTestingEnvironment(FCITX5_BINARY_DIR,
{"testing/testim", "testing/testfrontend"}, {});
{"testing/testim", "testing/testfrontend"},
{"test"});

char arg0[] = "testinstance";
char arg1[] = "--disable=all";
Expand Down

0 comments on commit 7d71627

Please sign in to comment.