X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2FREADME.md;h=b2fc212f1f2e5f9317a7680d1a52f78163a312d7;hb=a237eb6dda681d2a20d4c199031ba9747ed3dc47;hp=454a431453c7c5fc4c0dfa60624e0d59512a287e;hpb=41e9a0ad46f71f270f69e75a08098f5105275cd3;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/automated-tests/README.md b/automated-tests/README.md index 454a431..b2fc212 100644 --- a/automated-tests/README.md +++ b/automated-tests/README.md @@ -46,14 +46,13 @@ Building dali core: export CC=gcc export CXX=g++ git clean -fxd . # Only do this in the build folder - autoreconf --install - CXXFLAGS='-g -O0 --coverage' LDFLAGS='--coverage' ./configure --prefix=$DESKTOP_PREFIX --enable-debug + CXXFLAGS='-g -O0 --coverage' LDFLAGS='--coverage' cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_BUILD_TYPE=Debug make -j8 install -Repeat for dali-adaptor and toolkit. - Note, you __must__ use a local build and not a distributed build, and you __must__ also build with debug enabled to allow *DALI_ASSERT_DEBUG* to trigger on wrong behaviour ( Which should always be a test case failure! ) +Further note that, for the following, your gcov version must match the version of the compiler. + Building the tests ------------------ @@ -177,7 +176,7 @@ If you are adding test cases to existing files, then all you need to do is creat END_TEST; } -Note that **there must be no extra whitespace in the method signature** (i.e., it must violate our coding convention and follow __exactly__ this pattern: `int UtcDaliMyTestcaseName(void)`), as it's parsed by an awk script to auto-generate the testcase arrays in the main header file. +Note that **the parentheses in the method signature must not be empty** (i.e., it must violate our coding convention and follow __exactly__ this pattern: `int UtcDaliMyTestcaseName(void)`), as it's parsed by an awk script to auto-generate the testcase arrays in the main header file. Neither may any comments on the same line contain empty parentheses. You can contine to use the TET api, e.g. `tet_infoline`, `tet_result` and our test check methods `DALI_TEST_CHECK`, `DALI_TEST_EQUALS`, etc.