Skip to content

Commit

Permalink
fix test_examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ponty committed Nov 3, 2015
1 parent 878ab74 commit b82b6d0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
from easyprocess import EasyProcess
from nose.tools import eq_
from pysimavr.examples import vcd, hello, simple
import tempfile
# import tempfile


vcd
hello
simple

def test_vcd():
vcdfile = tempfile.mkdtemp() + '/delay.vcd'
# vcdfile='delay.vcd'
vcd.run_sim(vcdfile=vcdfile)
# vcdfile = tempfile.mkdtemp() + '/delay.vcd'
eq_(0, EasyProcess('python -m pysimavr.examples.vcd').call().return_code)


def test_hello():
hello.run_sim()
eq_(0, EasyProcess('python -m pysimavr.examples.hello').call().return_code)


def test_simple():
simple.run_sim()
eq_(0, EasyProcess('python -m pysimavr.examples.simple').call().return_code)

0 comments on commit b82b6d0

Please sign in to comment.