Patrick Schurig fc41c4ff40 test: suite etm-powersync-optimizer-conformance pour un optimiseur quelconque
Lance l'optimiseur de $ETM_POWERSYNC_OPTIMIZER_CMD (défaut : la référence,
mode normal) et y branche le vrai moteur : handshake direct accepté, GetPlan
répondus sous 10 s, session entière conforme au contrat embarqué (règles
sémantiques comprises), chaque plan appliqué sans fallbackCode, consigne hors
bornes écrêtée et surcharge délestée par L4. Relais transparent pour capturer
la session. README : la lancer contre un autre optimiseur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 21:46:53 +02:00

45 lines
1.6 KiB
Prolog

# Lot « contrat OpenRPC » — suite de CONFORMITÉ d'un optimiseur QUELCONQUE : le vrai moteur
# (serveur nymea, arbitre, SocketScheduler, OptimizerClient, adaptateurs, mocks de `simulation`)
# branché sur l'optimiseur que lance $ETM_POWERSYNC_OPTIMIZER_CMD. Mode d'emploi : README.md.
#
# Suite À PART, comme `refoptimizer` : elle ne touche pas la référence `decisions`.
include(../common/common.pri)
include(../../../energyplugin/energyplugin.pri)
include(../../mocks/spotmarketprovider/spotmarketdataprovidermock.pri)
CONFIG += testcase
TARGET = etm-powersync-optimizer-conformance
DEFINES += ENERGY_SIMULATION
# Racine des sources : l'optimiseur de référence (commande par défaut) et le validateur. Surchargée
# à l'exécution par $ETM_POWERSYNC_SOURCE_DIR (arbre mutant, arbre archivé).
DEFINES += ETM_POWERSYNC_SOURCE_DIR=\\\"$$clean_path($$PWD/../../..)\\\"
SIM = $$PWD/../simulation
INCLUDEPATH += $$SIM
RESOURCES += \
$$SIM/simulationresources.qrc
HEADERS += \
$$SIM/experience/energyexperienceenergymock.h \
$$SIM/experience/energyjsonhandler.h \
$$SIM/experience/energylogger.h \
$$SIM/experience/energymanagermock.h \
$$SIM/simulationbase.h \
$$PWD/../common/etm-powersync-fakeoptimizer.h \
$$PWD/../common/etm-powersync-contrat.h
SOURCES += \
$$SIM/experience/energyexperienceenergymock.cpp \
$$SIM/experience/energyjsonhandler.cpp \
$$SIM/experience/energylogger.cpp \
$$SIM/experience/energymanagermock.cpp \
$$SIM/simulationbase.cpp \
testconformance.cpp
target.path = $$[QT_INSTALL_PREFIX]/bin
INSTALLS += target