1*c33452fbSAndroid Build Coastguard Worker#Functional test 2*c33452fbSAndroid Build Coastguard Worker 3*c33452fbSAndroid Build Coastguard Worker#What ? 4*c33452fbSAndroid Build Coastguard WorkerCreate a test suite for all tests about SET/GET commands. 5*c33452fbSAndroid Build Coastguard WorkerTypes,functions and Domains are tested. 6*c33452fbSAndroid Build Coastguard Worker 7*c33452fbSAndroid Build Coastguard Worker#How ? 8*c33452fbSAndroid Build Coastguard WorkerWe set environment variables in the cmake. 9*c33452fbSAndroid Build Coastguard WorkerAll temporary file are stored in the build directory. 10*c33452fbSAndroid Build Coastguard WorkerXML files depends on cmake variables so they are configured at build time and stored in {build_dir}/tmp. 11*c33452fbSAndroid Build Coastguard Worker 12*c33452fbSAndroid Build Coastguard WorkerWe 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. 13*c33452fbSAndroid Build Coastguard WorkerWe finalize the environment setting in this script. isAlive and needResync are needed by the subsystem. 14*c33452fbSAndroid Build Coastguard WorkerTo avoid dependancies between to consecutive test, we remove all the temporary files except XML files at the end of the tests. 15*c33452fbSAndroid Build Coastguard Worker 16*c33452fbSAndroid Build Coastguard Worker#Practical 17*c33452fbSAndroid Build Coastguard WorkerBy default, the BUILD_TESTING flag is set to true. 18*c33452fbSAndroid Build Coastguard WorkerOnce the makefile is created, we can launch the test by running : 19*c33452fbSAndroid Build Coastguard Worker 20*c33452fbSAndroid Build Coastguard Worker 'make && make test' 21*c33452fbSAndroid Build Coastguard Worker 22*c33452fbSAndroid Build Coastguard WorkerNote that you can also use 'ctest -V' if you want to have the logs details. 23