Custom program context for unit tests
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 29 Dec 2014 06:14:48 +0000 (08:14 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 7 Jan 2015 06:32:54 +0000 (07:32 +0100)
commitaf77ccb2f01aaf246e63bdf90a22f9babb32169d
tree0a4c190529da08c77e844255a7837e77005b5029
parente6a591b99f33555f0a5b6c0c634c0910e336aa9c
Custom program context for unit tests

This improves the usability and robustness of the tests:
 - The data files in share/top/ are now always looked up from the source
   directory, without relying on any detection of the binary location.
 - It is possible to override the location of the source directory for
   some cross-compilation scenarios, which changes both the lookup
   location of share/top/ and the test input/reference files.

Change-Id: I1be5861ee594217bf27895563feb2c09fafe86c7
src/testutils/TestMacros.cmake
src/testutils/testfilemanager.cpp
src/testutils/testfilemanager.h
src/testutils/testinit.cpp