* Fix duplicate armv7rf test name * Small refactor of armv7rf * Proper test classes names
38 lines
816 B
Python
38 lines
816 B
Python
|
|
import unittest
|
|
import sys
|
|
import shutil
|
|
import tempfile
|
|
import os
|
|
import hashlib
|
|
import subprocess
|
|
import collections
|
|
import time
|
|
|
|
from manticore import Manticore, issymbolic
|
|
from manticore.core.smtlib import BitVecVariable
|
|
|
|
class ManticoreDriverTest(unittest.TestCase):
|
|
_multiprocess_can_split_ = True
|
|
def setUp(self):
|
|
# Create a temporary directory
|
|
self.test_dir = tempfile.mkdtemp()
|
|
|
|
def tearDown(self):
|
|
# Remove the directory after the test
|
|
shutil.rmtree(self.test_dir)
|
|
|
|
|
|
def testCreating(self):
|
|
m = Manticore('/bin/ls')
|
|
m.log_file = '/dev/null'
|
|
|
|
def test_issymbolic(self):
|
|
v = BitVecVariable(32, 'sym')
|
|
self.assertTrue(issymbolic(v))
|
|
|
|
def test_issymbolic_neg(self):
|
|
v = 1
|
|
self.assertFalse(issymbolic(v))
|
|
|