-
Notifications
You must be signed in to change notification settings - Fork 3
Testing instructions
Ariel Malka edited this page Jun 19, 2015
·
12 revisions
Prerequisites:
- iOS: device connected and accessible via
ios-deploy - Android: device connected and accessible via
adb - Emscripten:
nodeaccessible from the command-line
Starting point:
- Boost:
- Building instructions
- Define the
BOOST_ROOTvariable, e.g.
export BOOST_ROOT=~/DEV/chronotext-boost
- GoogleTest:
- Building instructions
- Define the
GTEST_ROOTvariable, e.g.
export GTEST_ROOT=~/DEV/chronotext-gtest
- Emscripten:
- Apply this tiny patch to 1.32.0
Build and run TestBoost.cpp on the relevant platforms:
cd test
$RUN_TEST -DPLATFORM=osx
$RUN_TEST -DPLATFORM=ios
$RUN_TEST -DPLATFORM=android
$RUN_TEST -DPLATFORM=emscripten
Expected output:
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from TestBoost
[ RUN ] TestBoost.TestIEquals
[ OK ] TestBoost.TestIEquals (0 ms)
[ RUN ] TestBoost.TestLexicalCast
[ OK ] TestBoost.TestLexicalCast (0 ms)
[ RUN ] TestBoost.TestFileSystem
[ OK ] TestBoost.TestFileSystem (0 ms)
[ RUN ] TestBoost.TestFilteringStream
[ OK ] TestBoost.TestFilteringStream (0 ms)
[----------] 4 tests from TestBoost (0 ms total)
[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (0 ms total)
[ PASSED ] 4 tests.
Notes:
- A platform-agnostic CMakeLists.txt is used, together with CTestConfig.cmake
-
$RUN_TESTis a shortcut to"ctest -S $GTEST_ROOT/cmake/run.cmake -VV"- It invokes this CTest script
- Pass
-Vinstead of-VVin order to reduce verbosity