Forward pror to Python achieved, still runs under 2.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 24 Apr 2019 15:56:13 +0000 (11:56 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 24 Apr 2019 15:56:13 +0000 (11:56 -0400)
sst.py
test/Makefile

diff --git a/sst.py b/sst.py
index 8466a481dbf7caec731003ee5aa64a52f0baa3b3..fec64ec815c8793c23c046301674da5582bdebe8 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -12,6 +12,8 @@ See the doc/HACKING file in the distribution for designers notes and advice
 on how to modify (and how not to modify!) this code.
 """
 from __future__ import print_function, division
+# Runs under Python 2 an Python 3. Preserve this property!
+# SPDX-License-Identifier: BSD-2-clause
 
 import os, sys, math, curses, time, pickle, copy, gettext, getpass
 import getopt, socket, locale
index 91983cec35efe09436cf04851d06add6681ea079..9c27e0396c15d297ab66116691f2b044edfe1d34 100644 (file)
@@ -1,8 +1,12 @@
 # Test-suite makefile for sst
 
-PYTHON=python2
+PYTHON=python
 
-all: regress
+all:
+       @echo "With Python 2:"
+       @make -e PYTHON=python2 regress
+       @echo "With Python 3:"
+       @make -e PYTHON=python3 regress
        @echo "No diff output is good news."
 
 .SUFFIXES: .log .chk