You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tests/conftest.py

23 lines
493 B
Python

"""
This file should consist of global test fixtures.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import gdb
import pytest
@pytest.fixture
def entry_binary():
"""
Returns function that launches given binary with 'entry' command
"""
def _entry_binary(name):
gdb.execute('file ./tests/binaries/' + name)
gdb.execute('entry')
return _entry_binary