[exim-cvs] cvs commit: exim/exim-test-orig/AutoTest runtest

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] cvs commit: exim/exim-test-orig/AutoTest runtest
ph10 2005/01/13 11:38:10 GMT

  Modified files:
    exim-test-orig/AutoTest runtest 
  Log:
  Quick extension to the test script to allow the binary to be explicitly
  defined.


  Revision  Changes    Path
  1.4       +5 -5      exim/exim-test-orig/AutoTest/runtest


  Index: runtest
  ===================================================================
  RCS file: /home/cvs/exim/exim-test-orig/AutoTest/runtest,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- runtest    21 Dec 2004 09:26:31 -0000    1.3
  +++ runtest    13 Jan 2005 11:38:10 -0000    1.4
  @@ -1,10 +1,12 @@
   #! /bin/sh
  -# $Cambridge: exim/exim-test-orig/AutoTest/runtest,v 1.3 2004/12/21 09:26:31 ph10 Exp $
  +# $Cambridge: exim/exim-test-orig/AutoTest/runtest,v 1.4 2005/01/13 11:38:10 ph10 Exp $


# A script to run some automatic testing of Exim. This has been needed for
# quite some time. I am finally thinking about it in February 1999.
# Since when, it has been hacked and hacked and hacked.....

+# The binary to be tested is taken from the environment variable called
+# TESTINGEXIM. If that is not set, a screwed-in value is used.

# Flags:
#
@@ -126,10 +128,8 @@

# Find an Exim to test

-$exim = "/usr/lib/sendmail" if (-f "/usr/lib/sendmail");
-$exim = "/usr/local/exim/bin/exim" if (-f "/opt/exim/bin/exim");
-$exim = "/source/exim4/build-Linux-i386/exim"
- if (-f "/source/exim4/build-Linux-i386/exim");
+$exim = $ENV{'TESTINGEXIM'};
+$exim = "/source/exim4/build-Linux-i386/exim" if !defined $exim;

open(IN, "$exim") || die "Failed to open $exim: $!\n";
open(OUT, ">exim")|| die "Failed to open exim: $!\n";