15 Commits
Author SHA1 Message Date
Dario LipicarandClaude Opus 4.8 b8de686bce fix(tests): avoid core boot during gtest discovery timeout (#160)
* fix(tests): avoid core boot during gtest discovery timeout

gtest_discover_tests defaulted to POST_BUILD discovery mode, which runs
the freshly-built logos_core_tests binary with --gtest_list_tests at build
time. test_app_lifecycle.cpp's main() called logos_core_init() before
gtest parsed its flags, so even a bare test-listing booted the full Qt
core (QCoreApplication + subprocess/socket/IOKit) and loaded the entire
dylib closure. In the Nix sandbox this blew past the 5s
TEST_DISCOVERY_TIMEOUT, killing the binary with empty output and failing
the whole derivation (cascading up to run-logos-standalone-ui).

Fix, two parts:
- CMakeLists.txt: use DISCOVERY_MODE PRE_TEST so enumeration is deferred
  to ctest time; the binary never runs during the build. This alone
  deterministically fixes the failure.
- test_app_lifecycle.cpp: run InitGoogleTest first and return early when
  only listing tests, before logos_core_init(). Safety net so listing
  never boots the core regardless of discovery mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(tests): use GTEST_FLAG_GET for list-tests guard

Read the list_tests flag via GTEST_FLAG_GET(list_tests) instead of
::testing::GTEST_FLAG(list_tests). GTEST_FLAG(name) is only a plain bool
in the non-Abseil gtest build; with the Abseil flags backend it is an
absl::Flag object, so the raw macro is not portable in a boolean context.
GTEST_FLAG_GET dispatches correctly for both backends.

The macro already qualifies with ::testing:: internally, so it must be
used unqualified — prefixing it (::testing::GTEST_FLAG_GET) expands to a
doubled ::testing::::testing:: token and fails to compile.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 16:03:38 -03:00
Iuri Matias 098fed4527 support setting access policy (#145) 2026-06-10 18:17:54 -04:00
Iuri Matias 68e408a5de add api for access policy (#143) 2026-06-10 11:08:24 -04:00
Iuri Matias 6b7e66da80 simplify c api by merging redudant functions; deprecate more functions no longer in use (#130)
* simplify c api by merging redudant functions; deprecate more functions no longer in use

simplify c api by merging redudant functions; deprecate more functions no longer in use

update docs

* remove deprecated methods
2026-05-19 16:20:32 -04:00
Iuri Matias b82145ce9a rename plugins to modules (#122) 2026-04-23 09:20:45 -04:00
Iuri Matias 732ab9e3c1 remove qt app context from logos_core (#111) 2026-04-15 16:52:32 -04:00
Iuri Matias 198c261b5a add more tests to catch potential regressions (#107)
* add more tests to catch potential regressions

* remove qt from the tests

remove qt from the tests

revert changes made to src; update tests
2026-04-09 15:38:57 -04:00
Iuri Matias c45417b6e3 Reorganize plugin manager into clearer files with defined responsibility; move (mostly) from qt json to nlohmann_json (#89)
* remove unused methods

* separate plugin manaager into separatge files with better defined responsibility

* move from Qt JSON to nlohmann_json
2026-03-27 12:33:38 -04:00
Iuri Matias 28700caf10 liblogos cleanup (wip) (#85)
* simplify app lifecycle; move to plugin manager

* simplify code; remove core_context and logos_core_internal and scope vars

* remove isAppOwnedByUs

* remove unused methods
2026-03-25 21:09:59 -04:00
Iuri MatiasandLogos Workspace 9a17418613 Abstract proxy api (#83)
* abstract/move some of proxy api logic to cpp-sdk

* use qFatal

* remove jsonParamToQVariant

* simplify using qFatal

* remove old interface.h use logos-module

* remove local code for now (will be re-added later)

* remove unnecessary methods and qDebugs

* update flake

---------

Co-authored-by: Logos Workspace <logos@workspace.local>
2026-03-25 09:31:06 -04:00
Iuri Matias 39b3711a83 remove outdated scripts and folders; simplify cmakliests; remove old static module methods (#80)
* remove outdated scripts and folders

* simplify cmakelists

* remove old static module methods
2026-03-24 13:55:09 -04:00
Iuri MatiasandLogos Workspace 4af040e19c Finish Abstraction & Refactor (Ongoing) - part 1 (#72)
* use abstracted logos registry isntead of qt registry

* clean: remove for now Q_OS_WIn and Q_OS_IOS

* use LogosObject instead of QObject

* remove core manager

* remove annoying recurrent logs

* update flake

---------

Co-authored-by: Logos Workspace <logos@workspace.local>
2026-03-23 13:55:48 -04:00
Iuri Matias 8c673b1a38 use cassert 2026-01-22 14:09:32 -05:00
Iuri Matias 9e0ef572fa add query methods to avoid testing internals directly
add query methods to avoid testing internals directly

cleanup
2026-01-22 11:27:32 -05:00
Iuri Matias cefc6d0b13 add tests for app lifecycle 2026-01-21 16:54:32 -05:00