diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-08-22 09:59:25 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-08-22 09:59:33 +0200 |
commit | c475deec6c69d509ac828cca437e2b9502f7b0c3 (patch) | |
tree | 6a15b902569999ced894daa3eea505c3dc93d58f /tests | |
parent | f40d1b78b629dfebff7598e04b8470e6942f8f58 (diff) | |
download | yosys-c475deec6c69d509ac828cca437e2b9502f7b0c3.tar.gz yosys-c475deec6c69d509ac828cca437e2b9502f7b0c3.tar.bz2 yosys-c475deec6c69d509ac828cca437e2b9502f7b0c3.zip |
Switched to Python 3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bram/generate.py | 5 | ||||
-rwxr-xr-x | tests/bram/run-test.sh | 2 | ||||
-rw-r--r-- | tests/fsm/generate.py | 5 | ||||
-rwxr-xr-x | tests/fsm/run-test.sh | 2 | ||||
-rw-r--r-- | tests/realmath/generate.py | 5 | ||||
-rwxr-xr-x | tests/realmath/run-test.sh | 2 | ||||
-rw-r--r-- | tests/share/generate.py | 5 | ||||
-rwxr-xr-x | tests/share/run-test.sh | 2 | ||||
-rwxr-xr-x | tests/tools/txt2tikztiming.py | 5 |
9 files changed, 9 insertions, 24 deletions
diff --git a/tests/bram/generate.py b/tests/bram/generate.py index 766157eb3..05a7ed027 100644 --- a/tests/bram/generate.py +++ b/tests/bram/generate.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import os import sys diff --git a/tests/bram/run-test.sh b/tests/bram/run-test.sh index d617187ec..f0bf0131e 100755 --- a/tests/bram/run-test.sh +++ b/tests/bram/run-test.sh @@ -8,7 +8,7 @@ rm -rf temp mkdir -p temp echo "generating tests.." -python generate.py +python3 generate.py { echo -n "all:" diff --git a/tests/fsm/generate.py b/tests/fsm/generate.py index fb5695ff6..8757d4741 100644 --- a/tests/fsm/generate.py +++ b/tests/fsm/generate.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import sys import random diff --git a/tests/fsm/run-test.sh b/tests/fsm/run-test.sh index 57c2a5b12..423892334 100755 --- a/tests/fsm/run-test.sh +++ b/tests/fsm/run-test.sh @@ -8,7 +8,7 @@ set -e rm -rf temp mkdir -p temp echo "generating tests.." -python generate.py +python3 generate.py { all_targets="all_targets:" diff --git a/tests/realmath/generate.py b/tests/realmath/generate.py index aee211185..19d01c7c6 100644 --- a/tests/realmath/generate.py +++ b/tests/realmath/generate.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import sys import random diff --git a/tests/realmath/run-test.sh b/tests/realmath/run-test.sh index 8419688c9..f1ec5476b 100755 --- a/tests/realmath/run-test.sh +++ b/tests/realmath/run-test.sh @@ -4,7 +4,7 @@ set -e rm -rf temp mkdir -p temp echo "generating tests.." -python generate.py +python3 generate.py cd temp echo "running tests.." diff --git a/tests/share/generate.py b/tests/share/generate.py index 271dd9c40..01a19a8d9 100644 --- a/tests/share/generate.py +++ b/tests/share/generate.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import sys import random diff --git a/tests/share/run-test.sh b/tests/share/run-test.sh index 6e880677c..18dbbc279 100755 --- a/tests/share/run-test.sh +++ b/tests/share/run-test.sh @@ -8,7 +8,7 @@ set -e rm -rf temp mkdir -p temp echo "generating tests.." -python generate.py +python3 generate.py echo "running tests.." for i in $( ls temp/*.ys | sed 's,[^0-9],,g; s,^0*\(.\),\1,g;' ); do diff --git a/tests/tools/txt2tikztiming.py b/tests/tools/txt2tikztiming.py index cfefe339f..9c6cd3a19 100755 --- a/tests/tools/txt2tikztiming.py +++ b/tests/tools/txt2tikztiming.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import argparse import fileinput |