Project

General

Profile

Actions

Support Request #11191

closed

Testing example for ADTF 2.x does not work

Added by hidden almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Customer:
VW
Department:
EEIS
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Ubuntu 18.04 64bit
Topic:
ADTF::Common
FAQ Links:

Description

Supportanfrage

Ja ADTF2 wird bald ersetzt aber durch das aktuelle Projekt bräuchte ich doch eure Hilfe.
Ich versuche aktuell die CTests für meine Filter zu implementieren allerdings scheitere ich schon am demo_tester_formatconversion Beispiel.
Es kompiliert und linkt aber zur Laufzeit bekomme ich folgende Meldung:

setUp: passed: IS_OK((adtf_test::pServiceEnv->Setup(&pException)))
/media/storage/j/workspace/dw_ADTF2_Core/ADTF_builder/PLATFORM/U1404_x64_gcc48/source/src/ucom/runtime.cpp(1285): info 0x00000000: Try to load "adtf_clock.srv"
/media/storage/j/workspace/dw_ADTF2_Core/ADTF_builder/PLATFORM/U1404_x64_gcc48/source/src/ucom/runtime.cpp(1299): error 0x00000000: The working directory "" for loading Plugin "adtf_clock.srv" could not be set !

Das Problem scheint beim Aufruf vom FILTER_ENV_SETUP; Macro aufzutreten. Die ADTF_DIR Umgebungsvariable ist auch korrekt gesetzt.
Könnt ihr mir eventuell weiterhelfen?

Lösung

Hast du ADTF_PLUGINS_DIR auch gesetzt, siehe https://support.digitalwerk.net/adtf/v2/adtf_sdk_html_docs/page_testframework.html ?
Ansonsten weiß der Test ja nicht, wo der Clock Service liegt.
Alternativ kannst du die Pfade auch angeben (oder in Kombination mit Env Variablen defineren) aber so sucht wird einfach nur anhand der Standardsuchpfade ein adtf_clock.srv gesucht... das wird nicht funktionieren, außer die Datei liegt im Path o.ä.

Actions

Also available in: Atom PDF