diff options
| author | Camille Mougey <commial@gmail.com> | 2016-03-21 16:14:20 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2016-03-21 16:14:20 +0100 |
| commit | 786d97b5ac3d32090cb67a35c43c64eb34041ec7 (patch) | |
| tree | 5798beedfa52bb89dbd278e7585098537a011642 /test/analysis/dg_check.py | |
| parent | 22e01a8eae35096b38a9cb87018700e422cdd2d9 (diff) | |
| parent | c7167b49e4147e337b925564bacdb34b34069c72 (diff) | |
| download | miasm-786d97b5ac3d32090cb67a35c43c64eb34041ec7.tar.gz miasm-786d97b5ac3d32090cb67a35c43c64eb34041ec7.zip | |
Merge pull request #339 from serpilliere/new_depgraph_mod_fix01
New DependencyGraph algorithm
Diffstat (limited to 'test/analysis/dg_check.py')
| -rw-r--r-- | test/analysis/dg_check.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/analysis/dg_check.py b/test/analysis/dg_check.py new file mode 100644 index 00000000..0d680b6f --- /dev/null +++ b/test/analysis/dg_check.py @@ -0,0 +1,20 @@ +from pdb import pm +import sys +import subprocess +import json + + +expected_file = sys.argv[1] +dg = subprocess.Popen(["python"] + sys.argv[2:], stdout=subprocess.PIPE) + +stdout, _ = dg.communicate() +expected = json.load(open(expected_file)) +result = json.loads(stdout) + + +expected.sort() +result.sort() + +print expected +print result +assert expected == result |