File size: 763 Bytes
b66f126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
"""
Run tests involving SymEngine

These are separate from the other optional dependency tests because they need
to be run with the `USE_SYMENGINE=1` environment variable set.

Run this as:

    $ USE_SYMENGINE=1 bin/test_symengine.py

"""

TEST_LIST = [
    'sympy/physics/mechanics',
    'sympy/liealgebras',
]


if __name__ == "__main__":

    import os
    import sys
    os.environ["USE_SYMENGINE"] = "1"

    # Add the local SymPy to sys.path (needed for CI)
    from get_sympy import path_hack
    path_hack()
    import sympy

    # Note: The doctests are not tested here but there are many failures when
    # running them with symengine.
    args = TEST_LIST
    exit_code = sympy.test(*args, verbose=True)
    sys.exit(exit_code)