summaryrefslogtreecommitdiffstats
path: root/test/functional-tests/README.md
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/README.md
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/README.md')
-rw-r--r--test/functional-tests/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional-tests/README.md b/test/functional-tests/README.md
new file mode 100644
index 0000000..43f5c59
--- /dev/null
+++ b/test/functional-tests/README.md
@@ -0,0 +1,22 @@
+#Functional test
+
+#What ?
+Create a test suite for all tests about SET/GET commands.
+Types,functions and Domains are tested.
+
+#How ?
+We set environment variables in the cmake.
+All temporary file are stored in the build directory.
+XML files depends on cmake variables so they are configured at build time and stored in {build_dir}/tmp.
+
+We launch the functional tests with ACTCampaignEngine.py. This script launch every test present in the PfwTestCase directory. Note that functional tests cannot be launched using directly the script.
+We finalize the environment setting in this script. isAlive and needResync are needed by the subsystem.
+To avoid dependancies between to consecutive test, we remove all the temporary files except XML files at the end of the tests.
+
+#Practical
+By default, the BUILD_TESTING flag is set to true.
+Once the makefile is created, we can launch the test by running :
+
+ 'make && make test'
+
+Note that you can also use 'ctest -V' if you want to have the logs details.