Build DEB package
=================
Invoke in CLEAN source folder:
#> dpkg-buildpackage -rfakeroot

Building from source in custom folder
=====================================
See INSTALL in this folder

Running internal tests from device (a.k.a. Unit Tests)
======================================================
1. Install test package 'libas-common-utils-test' on device
2. > cd /usr/lib/libas-common-utils-tests/tests
   > ./run_as_common_utils_tests.sh
3. For run of all activesync unit tests on device:
   > cd /usr/lib/libas-common-utils-tests/tests
   > ./run_activesync_tests.sh
Note: The next activesync packages should be installed:
as-daemon-test, camel-as-provider-test, libas-common-utils-test,
libas-protocol-test, libas-storage-test

Running internal tests (a.k.a. Unit Tests)
==========================================
1. Building internal tests requires CPPUnit library so install it using your favorite package manager.
2. Configure the source with 'configure --enable-internal-tests=yes'
3. Build the source with make.
4. For testing of D-Bus API as-daemon should be started (see hints below)
5. Run tests with 'make check'. Ideaaly all test will be OK.

Hints:
- If you stop D-Bus daemon  tests for Configuration API will fail.
- Look at the syslog output to see test messages produced by Logger API 
  (in default Debian instalation it is /var/log/user.log)
- When running unit tests of D-Bus API - the D-Bus message is sent. To check that API works - as-daemon-test should be run

Generating test coverage report
===============================
1. Make sure that CPPUnit library is installed.
2. Configure the source with 'configure --enable-internal-tests=yes --enable-gcov'
3. Build the source with make.
4. Generate the report with 'make lcov'. Report will be stored in 'lcov_report' folder
     NB: It is not a typo: target is really named 'lcov' since lcov is a tool to generate 
     usefull HTML reports instead of boring text files produced by GCov.

