aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py
diff options
context:
space:
mode:
authorAdrien M <adrienx.martin@intel.com>2015-03-10 15:21:30 +0100
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:12 -0700
commitec5130b950992fe79400ba66336d19169772a530 (patch)
tree0ddf66f1d680bf4be582b949d2596b7f08c8b74a /test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py
parent5aaddd16f2aabccf07687f1761567eb6455abe61 (diff)
downloadexternal_parameter-framework-ec5130b950992fe79400ba66336d19169772a530.zip
external_parameter-framework-ec5130b950992fe79400ba66336d19169772a530.tar.gz
external_parameter-framework-ec5130b950992fe79400ba66336d19169772a530.tar.bz2
Add functionnal tests to the pfw.
This patch adds functionnal test to the PFW. The execution of these tests needs the test-subsystem to be compiled. The tests can be launch with 'make test'. We set the environment vars in the cmake. Then we launch ACTCampaignEngine.py. Temporary files like build time conf files are placed on the build directory. Next steps : - Test-subsystem needs to be reworked (with binding python). Signed-off-by: Adrien M <adrienx.martin@intel.com>
Diffstat (limited to 'test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py')
-rwxr-xr-xtest/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py b/test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py
index ea83d5f..029af64 100755
--- a/test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py
+++ b/test/functional-tests/PfwTestCase/Types/tFP8_Q7_0.py
@@ -101,7 +101,7 @@ class TestCases(PfwTestCase):
assert float(out) == float(value), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s"
% (self.param_name, value, out))
#Check parameter value on filesystem
- assert commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
+ assert commands.getoutput('cat $PFW_RESULT/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
log.I("test OK")
def test_TypeMin(self):
@@ -139,7 +139,7 @@ class TestCases(PfwTestCase):
assert float(out) == float(value), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s"
% (self.param_name, value, out))
#Check parameter value on filesystem
- assert commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
+ assert commands.getoutput('cat $PFW_RESULT/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
log.I("test OK")
def test_TypeMin_Overflow(self):
@@ -163,7 +163,7 @@ class TestCases(PfwTestCase):
"""
log.D(self.test_TypeMin_Overflow.__doc__)
value = "-128.1"
- param_check = commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0')
+ param_check = commands.getoutput('cat $PFW_RESULT/FP8_Q7.0')
log.I("Setting %s to value %s" % (self.type_name, value))
#Set parameter value
out, err = self.pfw.sendCmd("setParameter", self.param_name, value)
@@ -172,7 +172,7 @@ class TestCases(PfwTestCase):
assert out != "Done", log.F("PFW : Error not detected when setting parameter %s out of bounds"
% (self.param_name))
#Check parameter value on filesystem
- assert commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0') == param_check, log.F("FILESYSTEM : Forbiden parameter change")
+ assert commands.getoutput('cat $PFW_RESULT/FP8_Q7.0') == param_check, log.F("FILESYSTEM : Forbiden parameter change")
log.I("test OK")
def test_TypeMax(self):
@@ -210,7 +210,7 @@ class TestCases(PfwTestCase):
assert float(out) == float(value), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s"
% (self.param_name, value, out))
#Check parameter value on filesystem
- assert commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
+ assert commands.getoutput('cat $PFW_RESULT/FP8_Q7.0') == hex_value, log.F("FILESYSTEM : parameter update error")
log.I("test OK")
def test_TypeMax_Overflow(self):
@@ -234,7 +234,7 @@ class TestCases(PfwTestCase):
"""
log.D(self.test_TypeMax_Overflow.__doc__)
value = "127.1"
- param_check = commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0')
+ param_check = commands.getoutput('cat $PFW_RESULT/FP8_Q7.0')
log.I("Setting %s to value %s" % (self.type_name, value))
#Set parameter value
out, err = self.pfw.sendCmd("setParameter", self.param_name, value)
@@ -243,5 +243,5 @@ class TestCases(PfwTestCase):
assert out != "Done", log.F("PFW : Error not detected when setting parameter %s out of bounds"
% (self.param_name))
#Check parameter value on filesystem
- assert commands.getoutput('cat $PFW_FILESYSTEM/FP8_Q7.0') == param_check, log.F("FILESYSTEM : Forbiden parameter change")
+ assert commands.getoutput('cat $PFW_RESULT/FP8_Q7.0') == param_check, log.F("FILESYSTEM : Forbiden parameter change")
log.I("test OK")