diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-06-04 22:15:05 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-06-04 22:15:05 +0300 |
commit | 7f482c48963acda7f683199b404ee0ec256c7912 (patch) | |
tree | e763c47f21e4010cd92eaad1a3e0b4680a220a3b /tests/test_other.py | |
parent | 03d78f8afd6ac1b186a43330a7aaf7ee794127d5 (diff) | |
parent | 561b8424a05057caa12efb73905dda57489a25a0 (diff) |
Merge branch 'mhenschel-cmake_response_files' into incoming
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 59dc8cfe..39796b71 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -355,9 +355,10 @@ f.close() except KeyError: postbuild = None - cmake_cases = ['target_js', 'target_html'] - cmake_outputs = ['test_cmake.js', 'hello_world_gles.html'] - for i in range(0, 2): + cmake_cases = ['target_js', 'target_html', 'target_library', 'target_library'] + cmake_outputs = ['test_cmake.js', 'hello_world_gles.html', 'libtest_cmake.a', 'libtest_cmake.so'] + cmake_arguments = ['', '', '-DBUILD_SHARED_LIBS=OFF', '-DBUILD_SHARED_LIBS=ON'] + for i in range(0, len(cmake_cases)): for configuration in ['Debug', 'Release']: # CMake can be invoked in two ways, using 'emconfigure cmake', or by directly running 'cmake'. # Test both methods. @@ -375,11 +376,11 @@ f.close() if invoke_method == 'cmake': # Test invoking cmake directly. cmd = ['cmake', '-DCMAKE_TOOLCHAIN_FILE='+path_from_root('cmake', 'Platform', 'Emscripten.cmake'), - '-DCMAKE_BUILD_TYPE=' + configuration, '-G', generator, cmakelistsdir] + '-DCMAKE_BUILD_TYPE=' + configuration, cmake_arguments[i], '-G', generator, cmakelistsdir] else: # Test invoking via 'emconfigure cmake' - cmd = [emconfigure, 'cmake', '-DCMAKE_BUILD_TYPE=' + configuration, '-G', generator, cmakelistsdir] - + cmd = [emconfigure, 'cmake', '-DCMAKE_BUILD_TYPE=' + configuration, cmake_arguments[i], '-G', generator, cmakelistsdir] + ret = Popen(cmd, stdout=None if verbose_level >= 2 else PIPE, stderr=None if verbose_level >= 1 else PIPE).communicate() if len(ret) > 1 and ret[1] != None and len(ret[1].strip()) > 0: logging.error(ret[1]) # If there were any errors, print them directly to console for diagnostics. |