diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 16:58:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 16:58:01 -0700 |
commit | f272e0e484c0a8e847dea621a658f4e550ac0557 (patch) | |
tree | 747511dc6134c726a02e064ec037e25f72894902 | |
parent | 6ad418da827d09b84f2e542908302cebaa7c272c (diff) |
add working bullet static linking test
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 429933d9..51745180 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10803,12 +10803,23 @@ f.close() std::string side() { return "and hello from side"; } ''', ['hello from main and hello from side\n']) - # test a simple call from one module to another. only one has a string (and constant memory initialization for it) + # zlib compression library. tests function pointers in initializers and many other things test('zlib', '', open(path_from_root('tests', 'zlib', 'example.c'), 'r').read(), self.get_library('zlib', os.path.join('libz.a'), make_args=['libz.a']), open(path_from_root('tests', 'zlib', 'ref.txt'), 'r').read(), args=['-I' + path_from_root('tests', 'zlib')], suffix='c') + # bullet physics engine. tests all the things + test('bullet', '', open(path_from_root('tests', 'bullet', 'Demos', 'HelloWorld', 'HelloWorld.cpp'), 'r').read(), + self.get_library('bullet', [os.path.join('src', '.libs', 'libBulletDynamics.a'), + os.path.join('src', '.libs', 'libBulletCollision.a'), + os.path.join('src', '.libs', 'libLinearMath.a')]), + [open(path_from_root('tests', 'bullet', 'output.txt'), 'r').read(), # different roundings + open(path_from_root('tests', 'bullet', 'output2.txt'), 'r').read(), + open(path_from_root('tests', 'bullet', 'output3.txt'), 'r').read()], + args=['-I' + path_from_root('tests', 'bullet', 'src')]) + + def test_symlink(self): if os.name == 'nt': return self.skip('Windows FS does not need to be tested for symlinks support, since it does not have them.') |