Permalink
Please sign in to comment.
Browse files
Adjust scripts to run Oil unit tests under OPy.
- compile more files: opy/ and test/ - Add a unit test for pyassem.py
- Loading branch information...
Showing
with
56 additions
and 31 deletions.
- +24 −28 opy/build.sh
- +1 −2 opy/compiler2/pyassem.py
- +26 −0 opy/compiler2/pyassem_test.py
- +5 −1 opy/test.sh
| @@ -0,0 +1,26 @@ | ||
| #!/usr/bin/python -S | ||
| from __future__ import print_function | ||
| """ | ||
| pyassem_test.py: Tests for pyassem.py | ||
| """ | ||
| import unittest | ||
| from compiler2 import pyassem # module under test | ||
| class PyAssemTest(unittest.TestCase): | ||
| def setUp(self): | ||
| pass | ||
| def tearDown(self): | ||
| pass | ||
| def testFoo(self): | ||
| g = pyassem.FlowGraph() | ||
| print(g) | ||
| if __name__ == '__main__': | ||
| unittest.main() |
0 comments on commit
9b90653