summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bram/generate.py5
-rwxr-xr-xtests/bram/run-test.sh2
-rw-r--r--tests/fsm/generate.py5
-rwxr-xr-xtests/fsm/run-test.sh2
-rw-r--r--tests/realmath/generate.py5
-rwxr-xr-xtests/realmath/run-test.sh2
-rw-r--r--tests/share/generate.py5
-rwxr-xr-xtests/share/run-test.sh2
-rwxr-xr-xtests/tools/txt2tikztiming.py5
9 files changed, 9 insertions, 24 deletions
diff --git a/tests/bram/generate.py b/tests/bram/generate.py
index 766157eb..05a7ed02 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 d617187e..f0bf0131 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 fb5695ff..8757d474 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 57c2a5b1..42389233 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 aee21118..19d01c7c 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 8419688c..f1ec5476 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 271dd9c4..01a19a8d 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 6e880677..18dbbc27 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 cfefe339..9c6cd3a1 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