forked from ponty/pysimavr
-
Notifications
You must be signed in to change notification settings - Fork 0
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
ponty
committed
Nov 3, 2015
1 parent
878ab74
commit b82b6d0
Showing
1 changed file
with
11 additions
and
6 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 |
---|---|---|
@@ -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) |