diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-16 14:03:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-16 14:03:43 -0700 |
commit | 985765d9a5b2dcca05bc5f8401e3d2423964d0f2 (patch) | |
tree | 994fa25d2d1eee8688e7b334a186081a5b679739 /tests/runner.py | |
parent | 3cbdfcc318e45219edbe78c21cd25fe23f5c1c52 (diff) | |
parent | 8ae67d7642ebdd77a3c5f0d8fa7115fb372e98ff (diff) |
Merge pull request #1044 from imvu/embind_update
Embind update
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/tests/runner.py b/tests/runner.py index 6753e534..db5ba108 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10247,58 +10247,12 @@ f.close() print args, fail self.clear() try_delete(self.in_dir('a.out.js')) - Popen([PYTHON, EMCC, path_from_root('tests', 'embind', 'embind_test.cpp'), '--post-js', path_from_root('tests', 'embind', 'embind_test.js')] + args, stderr=PIPE if fail else None).communicate() + Popen([PYTHON, EMCC, path_from_root('tests', 'embind', 'embind_test.cpp'), '--post-js', path_from_root('tests', 'embind', 'underscore-1.4.2.js'), '--post-js', path_from_root('tests', 'embind', 'imvu_test_adapter.js'), '--post-js', path_from_root('tests', 'embind', 'embind.test.js')] + args, stderr=PIPE if fail else None).communicate() assert os.path.exists(self.in_dir('a.out.js')) == (not fail) if not fail: - output = run_js(self.in_dir('a.out.js')) - self.assertContained('''fixture: embind ---test: test value creation ---test: test passthrough ---test: test void return converts to undefined ---test: test booleans can be marshalled ---test: test convert double to unsigned ---test: test get length of array ---test: test add a bunch of things ---test: test sum array ---test: test strings ---test: test no memory leak when passing strings in by const reference -fixture: classes ---test: test class instance ---test: test class methods ---test: test can't call methods on deleted class instances ---test: test isinstance ---test: test can return class instances by value ---test: test can pass class instances to functions by reference ---test: test can access struct fields ---test: test can set struct fields ---test: test assignment returns value ---test: test assigning string to integer raises TypeError ---test: test can return tuples by value ---test: test tuples can contain tuples ---test: test can pass tuples by value ---test: test can return structs by value ---test: test can pass structs by value ---test: test can pass and return tuples in structs ---test: test can clone handles ---test: test can't clone if already deleted ---test: test moving handles is a clone+delete ---test: test StringHolder -fixture: embind enumerations ---test: test can compare enumeration values ---test: test repr includes enum value ---test: test instanceof ---test: test can pass and return enumeration values to functions -fixture: C++11 enum class ---test: test can compare enumeration values ---test: test repr includes enum value ---test: test instanceof ---test: test can pass and return enumeration values to functions -fixture: emval call tests ---test: test can call functions from C++ -fixture: interfaces ---test: test can wrap JS object in native interface ---test: test can pass arguments and return complicated values ---test: test can call interface methods that return nothing''', output) + output = run_js(self.in_dir('a.out.js'), stdout=PIPE, stderr=PIPE, full_output=True) + print >> sys.stderr, output + assert "FAIL" not in output def test_llvm_nativizer(self): try: |