MPT basic: append config, don't hardcode network

If a firewall blocks traffic over one network but not another, and the
one happens to be the default pick of Cyclone, then the MPT basic tests
won't work properly.

With the recent changes to the configuration handling for supporting
multiple sources of configuration, it makes far more sense to remove the
hardcoded network interface selection in the test configurations and to
append the test configuration file to the environment list rather than
to replace it.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-05-24 13:05:02 +02:00 committed by eboasson
parent 4fc56c5cbe
commit e822dba9c1
3 changed files with 2 additions and 4 deletions

View file

@ -14,7 +14,6 @@
<Id>any</Id> <Id>any</Id>
</Domain> </Domain>
<General> <General>
<NetworkInterfaceAddress>auto</NetworkInterfaceAddress>
<AllowMulticast>true</AllowMulticast> <AllowMulticast>true</AllowMulticast>
<EnableMulticastLoopback>true</EnableMulticastLoopback> <EnableMulticastLoopback>true</EnableMulticastLoopback>
</General> </General>

View file

@ -14,7 +14,6 @@
<Id>${DOMAIN_ID}</Id> <Id>${DOMAIN_ID}</Id>
</Domain> </Domain>
<General> <General>
<NetworkInterfaceAddress>auto</NetworkInterfaceAddress>
<AllowMulticast>true</AllowMulticast> <AllowMulticast>true</AllowMulticast>
<EnableMulticastLoopback>true</EnableMulticastLoopback> <EnableMulticastLoopback>true</EnableMulticastLoopback>
</General> </General>

View file

@ -13,13 +13,13 @@
/* Environments */ /* Environments */
static mpt_env_t environment_any[] = { static mpt_env_t environment_any[] = {
{ "ETC_DIR", MPT_SOURCE_ROOT_DIR"/tests/basic/etc" }, { "ETC_DIR", MPT_SOURCE_ROOT_DIR"/tests/basic/etc" },
{ "CYCLONEDDS_URI", "file://${ETC_DIR}/config_any.xml" }, { "CYCLONEDDS_URI", "${CYCLONEDDS_URI},file://${ETC_DIR}/config_any.xml" },
{ NULL, NULL } { NULL, NULL }
}; };
static mpt_env_t environment_42[] = { static mpt_env_t environment_42[] = {
{ "ETC_DIR", MPT_SOURCE_ROOT_DIR"/tests/basic/etc" }, { "ETC_DIR", MPT_SOURCE_ROOT_DIR"/tests/basic/etc" },
{ "DOMAIN_ID", "42" }, { "DOMAIN_ID", "42" },
{ "CYCLONEDDS_URI", "file://${ETC_DIR}/config_specific.xml" }, { "CYCLONEDDS_URI", "${CYCLONEDDS_URI},file://${ETC_DIR}/config_specific.xml" },
{ NULL, NULL } { NULL, NULL }
}; };