Hi,

not all OS/distributions have python in /usr/bin, so I'd suggest to modify
the scripts to use the /usr/bin/env trick to find python (as is already done
in some files) as in the attached patch.  This let me run the test suite
without modifying my systems.

   /Krister
Index: utils/test/ProgressBar.py
===================================================================
--- utils/test/ProgressBar.py   (revision 74781)
+++ utils/test/ProgressBar.py   (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Source: http://code.activestate.com/recipes/475116/, with
 # modifications by Daniel Dunbar.
Index: utils/test/TestRunner.py
===================================================================
--- utils/test/TestRunner.py    (revision 74781)
+++ utils/test/TestRunner.py    (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 #  TestRunner.py - This script is used to run arbitrary unit tests.  Unit
 #  tests must contain the command used to run them in the input file, starting
Index: utils/test/MultiTestRunner.py
===================================================================
--- utils/test/MultiTestRunner.py       (revision 74781)
+++ utils/test/MultiTestRunner.py       (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 """
 MultiTestRunner - Harness for running multiple tests in the simple clang style.
Index: utils/CaptureCmd
===================================================================
--- utils/CaptureCmd    (revision 74781)
+++ utils/CaptureCmd    (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 """CaptureCmd - A generic tool for capturing information about the
 invocations of another program.
Index: utils/SummarizeErrors
===================================================================
--- utils/SummarizeErrors       (revision 74781)
+++ utils/SummarizeErrors       (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, sys, re
 
Index: utils/FindSpecRefs
===================================================================
--- utils/FindSpecRefs  (revision 74781)
+++ utils/FindSpecRefs  (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os
 import re
Index: utils/ABITest/ABITestGen.py
===================================================================
--- utils/ABITest/ABITestGen.py (revision 74781)
+++ utils/ABITest/ABITestGen.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 from pprint import pprint
 import random, atexit, time
Index: utils/CmpDriver
===================================================================
--- utils/CmpDriver     (revision 74781)
+++ utils/CmpDriver     (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import subprocess
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to