diff --git a/test/functionalTest/cases/0000_cli/bool_option_with_value.test b/test/functionalTest/cases/0000_cli/bool_option_with_value.test index 93512e8990..2207552b71 100644 --- a/test/functionalTest/cases/0000_cli/bool_option_with_value.test +++ b/test/functionalTest/cases/0000_cli/bool_option_with_value.test @@ -114,13 +114,12 @@ Usage: orionld [option '-U' (extended usage)] [option '-cSubCounters' ] [option '-distributed' (turn on distributed operation)] [option '-brokerId' ] + [option '-subordinateEndpoint' ] + [option '-pageSize' ] [option '-dds' (turn on DDS support)] [option '-ddsSubsTopics' ] [option '-ddsTopicType' ] - [option '-configFile' ] - [option '-ddsEnablerConfigFile' ] - [option '-subordinateEndpoint' ] - [option '-pageSize' ] + [option '-configFile' ] [option '-duc' ] --TEARDOWN-- diff --git a/test/functionalTest/cases/0000_cli/command_line_options.test b/test/functionalTest/cases/0000_cli/command_line_options.test index d382d0801f..eabadca47c 100644 --- a/test/functionalTest/cases/0000_cli/command_line_options.test +++ b/test/functionalTest/cases/0000_cli/command_line_options.test @@ -103,13 +103,12 @@ Usage: orionld [option '-U' (extended usage)] [option '-cSubCounters' ] [option '-distributed' (turn on distributed operation)] [option '-brokerId' ] + [option '-subordinateEndpoint' ] + [option '-pageSize' ] [option '-dds' (turn on DDS support)] [option '-ddsSubsTopics' ] [option '-ddsTopicType' ] - [option '-configFile' ] - [option '-ddsEnablerConfigFile' ] - [option '-subordinateEndpoint' ] - [option '-pageSize' ] + [option '-configFile' ] [option '-duc' ] --TEARDOWN-- diff --git a/test/functionalTest/cases/0000_dds/dds_notifications.test b/test/functionalTest/cases/0000_dds/dds_notifications.test index 8b2b031f98..9c2a9ac48a 100644 --- a/test/functionalTest/cases/0000_dds/dds_notifications.test +++ b/test/functionalTest/cases/0000_dds/dds_notifications.test @@ -24,9 +24,9 @@ the test client publishes on DDS, the broker receives DDS notifications and creates/updates the corresponding NGSI-LD entities --SHELL-INIT-- -$REPO_HOME/scripts/configFile.sh "P1,Camera,urn:ngsi-ld:camera:cam1,shutterSpeed" "P2,Arm,urn:ngsi-ld:arm:arm1,armReach" > /tmp/ddsConfig +$REPO_HOME/scripts/configFile.sh "P1,Camera,urn:ngsi-ld:camera:cam1,shutterSpeed" "P2,Arm,urn:ngsi-ld:arm:arm1,armReach" > $HOME/.orionld dbInit CB -orionldStart CB -mongocOnly -dds -configFile /tmp/ddsConfig +orionldStart CB -mongocOnly -dds ftClientStart -t 0-5000 --SHELL-- diff --git a/test/functionalTest/cases/0000_ngsild/ngsild_ftClient_normal_notifications.test b/test/functionalTest/cases/0000_ngsild/ngsild_ftClient_normal_notifications.test index 8949d7409e..6f57359d63 100644 --- a/test/functionalTest/cases/0000_ngsild/ngsild_ftClient_normal_notifications.test +++ b/test/functionalTest/cases/0000_ngsild/ngsild_ftClient_normal_notifications.test @@ -26,6 +26,9 @@ Test of orionld version service, with branch name --SHELL-INIT-- dbInit CB orionldStart CB -mongocOnly +$REPO_HOME/scripts/configFile.sh > ~/.ftClient +chmod 777 ~/.ftClient + ftClientStart -v -t 200 mkdir -p /tmp/orion/logs/ftClient2 ftClientStart -v -t 200 --port $FT2_PORT --logDir $FT2_LOG_DIR diff --git a/test/functionalTest/ftClient/ftClient.cpp b/test/functionalTest/ftClient/ftClient.cpp index 3a2e0796a4..92d9c04edf 100644 --- a/test/functionalTest/ftClient/ftClient.cpp +++ b/test/functionalTest/ftClient/ftClient.cpp @@ -252,17 +252,6 @@ int main(int argC, char* argV[]) const char* progName = "ftClient"; char configFilePath[256]; - // Config file - if (configFile == NULL) - { - char* home = getenv("HOME"); - if (home != NULL) - { - snprintf(configFilePath, sizeof(configFilePath) - 1, "%s/.ftClient", home); - configFile = configFilePath; - } - } - ks = kargsInit(progName, kargs, "FTCLIENT"); if (ks != KargsOk) { @@ -277,6 +266,20 @@ int main(int argC, char* argV[]) exit(1); } + // Config file + if (configFile == NULL) + { + char* home = getenv("HOME"); + if (home != NULL) + { + snprintf(configFilePath, sizeof(configFilePath) - 1, "%s/.ftClient", home); + configFile = configFilePath; + } + } + + if (configFile != NULL) + configFile = strdup(configFile); + int kt = ktInit(progName, logDir, logToScreen, logLevel, traceLevels, kaBuiltinVerbose, kaBuiltinDebug, fixme); if (kt != 0)