optimizerclient : chaque Handshake envoyé ; socketscheduler : tout ce que le moteur envoie au faux optimiseur, plus testTheEngineSpeaksTheContractItServes (GetOptimizerProtocol == embarqué == docs, requêtes jugées avec le contrat servi) ; refoptimizer : session capturée par la référence, requêtes toujours, session entière et règles sémantiques en normal et en 1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.3 KiB
Prolog
30 lines
1.3 KiB
Prolog
QT += testlib network
|
|
QT -= gui
|
|
|
|
CONFIG += testcase c++17 link_pkgconfig
|
|
PKGCONFIG += nymea
|
|
|
|
TARGET = etm-powersync-optimizerclient
|
|
|
|
# Lot contrat OpenRPC : les Handshake envoyés sont jugés par tools/etm-powersync-schema-check contre
|
|
# docs/etm-powersync-optimizer-protocol.openrpc.json. Surchargée par $ETM_POWERSYNC_SOURCE_DIR.
|
|
DEFINES += ETM_POWERSYNC_SOURCE_DIR=\\\"$$clean_path($$PWD/../../..)\\\"
|
|
|
|
# Cible VOLONTAIREMENT légère, comme loadmodel : aucun serveur nymea, aucun EnergyTestBase, et
|
|
# du moteur le seul client de transport (brief 4 T2). Les faux optimiseurs sont des
|
|
# QLocalServer/QTcpServer du processus de test, et le temps est SIMULÉ : aucun des délais
|
|
# (5 s, 10 s, backoff 1 → 60 s) ne s'écoule réellement.
|
|
|
|
INCLUDEPATH += $$PWD/../../../energyplugin
|
|
|
|
HEADERS += $$PWD/../../../energyplugin/etm/scheduler/optimizerclient.h \
|
|
$$PWD/../../../energyplugin/etm/scheduler/optimizersecret.h \
|
|
$$PWD/../common/etm-powersync-fakeoptimizer.h \
|
|
$$PWD/../common/etm-powersync-contrat.h
|
|
SOURCES += $$PWD/../../../energyplugin/etm/scheduler/optimizerclient.cpp \
|
|
$$PWD/../../../energyplugin/etm/scheduler/optimizersecret.cpp \
|
|
testoptimizerclient.cpp
|
|
|
|
target.path = $$[QT_INSTALL_PREFIX]/bin
|
|
INSTALLS += target
|