Skip to content

Instantly share code, notes, and snippets.

@grrussel
grrussel / gist:831851
Created February 17, 2011 14:49
GDB user commands
define hookpost-step
list
end
define hookpost-stepi
x /i $pc
end
define hookpost-continue
backtrace
@grrussel
grrussel / simple_test_runner2.py
Created February 3, 2011 08:24
Simple python 2.x unit test system which dynamically builds list of tests to run
# Improvement over https://gist.github.com/803854
import optparse
def test_function1():
# Do some test code
# return True on Pass, False on Fail
return True
def test_function2_EXPECTED_FAIL():
@grrussel
grrussel / simple_test_runner.py
Created January 31, 2011 10:11
Simple test runner for python unit tests
def test_function1():
# Do some test code
# return True on Pass, False on Fail
return True
def test_function2_EXPECTED_FAIL():
# Do some test (more) code
# return True on Pass, False on Fail
return False