Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dshikashio committed Mar 12, 2022
1 parent 15fc904 commit ce90010
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ MANIFEST

build/
dist/

*.exe
*.obj
1 change: 1 addition & 0 deletions run_tests.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python -m tests.test_idebugclient
python -m tests.test_target

REM python -m unittest discover
16 changes: 16 additions & 0 deletions tests/test_target.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import unittest
import os

from pybag import DbgEng, UserDbg

target = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'target', 'target.exe')

class TestTarget(unittest.TestCase):
def test_init(self):
dbg = UserDbg()
dbg.create(target)
dbg.r()


if __name__ == '__main__':
unittest.main()

0 comments on commit ce90010

Please sign in to comment.