File: testrun.sh

package info (click to toggle)
myhdl 0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,728 kB
  • sloc: python: 25,033; ansic: 2,203; makefile: 243; sh: 206
file content (58 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash

echo > teststats.dat

python convert.py

ghdl -a pck_myhdl_08dev.vhd
vlib work
vcom pck_myhdl_08dev.vhd

tests="
findmax
"

for test in $tests
do
echo Test: $test >> teststats.dat
echo ===== >> teststats.dat

echo python >> teststats.dat
echo ------ >> teststats.dat
#/usr/bin/time -o teststats.dat -a -p python test_$test.py > ${test}_python.out
echo >> teststats.dat

echo pypy >> teststats.dat
echo ---- >> teststats.dat
/usr/bin/time -o teststats.dat -a -p pypy test_$test.py > ${test}_pypy.out
echo >> teststats.dat

echo icarus >> teststats.dat
echo ------ >> teststats.dat
iverilog test_$test.v
/usr/bin/time -o teststats.dat -a -p vvp a.out test_$test > ${test}_icarus.out
echo >> teststats.dat

echo ghdl >> teststats.dat
echo ---- >> teststats.dat
ghdl -a test_$test.vhd 
ghdl -e test_$test
#/usr/bin/time -o teststats.dat -a -p ghdl -r test_$test > ${test}_ghdl.out
echo >> teststats.dat

echo vlog >> teststats.dat
echo ---- >> teststats.dat
vlog test_$test.v 
/usr/bin/time -o teststats.dat -a -p vsim -c -do run.do test_$test > ${test}_vlog.out
echo >> teststats.dat

echo vcom >> teststats.dat
echo ---- >> teststats.dat
vcom test_$test.vhd 
/usr/bin/time -o teststats.dat -a -p vsim -c -do run.do test_$test > ${test}_vcom.out
echo >> teststats.dat

done