-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
703aeea
commit a61244f
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Tests haystack.basicmodel .""" | ||
|
||
import logging | ||
import unittest | ||
|
||
import os | ||
import subprocess | ||
import sys | ||
from haystack import cli | ||
from test.haystack import SrcTests | ||
|
||
|
||
class TestCLI(SrcTests): | ||
|
||
def test_find_heap(self): | ||
p = os.path.sep.join([os.getcwd(), 'scripts']) | ||
sys.path.append(p) | ||
cmd = 'python scripts/haystack-find-heap.py -v test/dumps/minidump/alg.dmp'.split(" ") | ||
args=['scripts/haystack-find-heap.py'] | ||
ret = subprocess.check_output(cmd) | ||
self.assertIn('0x000d0000', ret) | ||
return | ||
|
||
|
||
if __name__ == '__main__': | ||
logging.basicConfig(level=logging.INFO) | ||
# logging.basicConfig(level=logging.INFO) | ||
unittest.main(verbosity=2) |