From 175500529cfdce71764e920d3f0021a41e0813f8 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 12 Feb 2012 10:38:24 +0100 Subject: [PATCH] Extend Python tests to multiple versions --- Makefile | 5 ++++- python/{null.py => null.py26} | 2 +- python/null.py26-s | 5 +++++ python/{null.py-s => null.py27} | 2 +- python/null.py27-s | 5 +++++ python/null.py32 | 5 +++++ python/null.py32-s | 5 +++++ 7 files changed, 26 insertions(+), 3 deletions(-) rename python/{null.py => null.py26} (54%) create mode 100755 python/null.py26-s rename python/{null.py-s => null.py27} (54%) create mode 100755 python/null.py27-s create mode 100755 python/null.py32 create mode 100755 python/null.py32-s diff --git a/Makefile b/Makefile index fdfe3e7..b0cd5e7 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,10 @@ SCRIPTS = \ perl/null.pl ruby/null.rb \ php/null.php php/null.php-n \ tcl/null.tcl84 tcl/null.tcl85 \ - python/null.py-s python/null.py python/null.pypy + python/null.py26 python/null.py26-s \ + python/null.py27 python/null.py27-s \ + python/null.py32 python/null.py32-s \ + python/null.pypy METRICS = \ cycles,instructions,branches,branch-misses \ diff --git a/python/null.py b/python/null.py26 similarity index 54% rename from python/null.py rename to python/null.py26 index 1fda76c..9fea3b9 100755 --- a/python/null.py +++ b/python/null.py26 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2.6 import sys diff --git a/python/null.py26-s b/python/null.py26-s new file mode 100755 index 0000000..5987b46 --- /dev/null +++ b/python/null.py26-s @@ -0,0 +1,5 @@ +#!/usr/bin/python2.6 -S + +import sys + +sys.exit(0) diff --git a/python/null.py-s b/python/null.py27 similarity index 54% rename from python/null.py-s rename to python/null.py27 index c280a36..f9c8f17 100755 --- a/python/null.py-s +++ b/python/null.py27 @@ -1,4 +1,4 @@ -#!/usr/bin/python -S +#!/usr/bin/python2.7 import sys diff --git a/python/null.py27-s b/python/null.py27-s new file mode 100755 index 0000000..f30d22d --- /dev/null +++ b/python/null.py27-s @@ -0,0 +1,5 @@ +#!/usr/bin/python2.7 -S + +import sys + +sys.exit(0) diff --git a/python/null.py32 b/python/null.py32 new file mode 100755 index 0000000..0c96776 --- /dev/null +++ b/python/null.py32 @@ -0,0 +1,5 @@ +#!/usr/bin/python3.2 + +import sys + +sys.exit(0) diff --git a/python/null.py32-s b/python/null.py32-s new file mode 100755 index 0000000..19f2647 --- /dev/null +++ b/python/null.py32-s @@ -0,0 +1,5 @@ +#!/usr/bin/python3.2 -S + +import sys + +sys.exit(0) -- 2.39.2