[V1,1/7] power_bidirection_channel: support meson
Commit Message
support meson build.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
tests/TestSuite_power_bidirection_channel.py | 5 +++++
1 file changed, 5 insertions(+)
Comments
Hi, yufeng
We have configure the app path in the config file, so it does not need re-combine the path of it in the suite.
So it does not need to judge the build method in the suite.
Regards,
Ma,lihong
> -----Original Message-----
> --- a/tests/TestSuite_power_bidirection_channel.py
> +++ b/tests/TestSuite_power_bidirection_channel.py
>
> +from settings import load_global_setting from settings import
> +HOST_BUILD_TYPE_SETTING
> from utils import create_mask as dts_create_mask from qemu_libvirt import
> LibvirtKvm from exception import VerifyFailure @@ -63,6 +65,9 @@ class
> TestPowerBidirectionChannel(TestCase):
> _host_crb = host_crb if host_crb else self.dut
> example_dir = "examples/" + name
> out = _host_crb.build_dpdk_apps('./' + example_dir)
> + if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING):
> + return os.path.join(self.target_dir,
> +
> + _host_crb.apps_name[os.path.basename(name)])
@@ -37,6 +37,8 @@ import os
import time
import traceback
+from settings import load_global_setting
+from settings import HOST_BUILD_TYPE_SETTING
from utils import create_mask as dts_create_mask
from qemu_libvirt import LibvirtKvm
from exception import VerifyFailure
@@ -63,6 +65,9 @@ class TestPowerBidirectionChannel(TestCase):
_host_crb = host_crb if host_crb else self.dut
example_dir = "examples/" + name
out = _host_crb.build_dpdk_apps('./' + example_dir)
+ if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING):
+ return os.path.join(self.target_dir,
+ _host_crb.apps_name[os.path.basename(name)])
self.verify("Error" not in out, "Compilation error")
self.verify("No such" not in out, "Compilation error")
binary_dir = os.path.join(self.target_dir, example_dir, 'build')