head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	99.02.16.15.03.33;	author bkoz;	state dead;
branches;
next	1.1;

1.1
date	99.02.10.21.40.54;	author bkoz;	state Exp;
branches;
next	;


desc
@@


1.2
log
@#
1999-02-16  Benjamin Kosnik  <bkoz@@cygnus.com>
	* src/Makefile.in (locale-inst.lo): Compile with
 	-fimplicit-templates to fix Solaris link problem.
	-* libio/Makefile.in: Revert. Glomming on all the libio
 	functionality only helps when debugging iostreams vs. libio: if
 	this is desired, use the r1.2 version of this file.
	* src/locale.cc: Provide some kind of def for _S_tolower.
	* bits/locfacets.h: Fix declarations of ctype<wchar_t> to
 	match ctype<char> for _S_tolower, _S_toupper, _S_table.
@
text
@#!/bin/sh
#
# 981020 bkoz
# make_check_PHconf
# This is an attempt to get a sane script for automating the
# libsuite++ runs.  It's going to be a bit different than the usual
# scripts, and heavily documented because my status as a legendary
# shell hacker is laughable. I am going to steal a lot of Brendan's
# excellent scripts for the SUITE++ and PERENNIAL runs for g++, so if
# you see anything that strikes you as clever, rest assured it's not mine.


#
# Section 1: Invocation
#
# This script is going to assume two directories are already
# created. The location of these directories will be passed into this
# script as arguments, along with an argument which is similar to
# the configure --verbose setting and helps when debugging the script itself.
# The last arguments are the locations of the library sources and binary.
# Sample invocation is as follows:
# 
#  ./DO-LIBSUITE++ [01] /src-tests.dir /bld-tests.dir /src-lib.dir /bin-lib.dir
#

# first argument: if you'd like verbose output from this script
LSPP_VERBOSE=$1
if [ $LSPP_VERBOSE != "1" ]; then
  LSPP_VERBOSE=0
elif [ $LSPP_VERBOSE -eq 1 ]; then
  echo "$0: verbose output is enabled $1"
fi
export LSPP_VERBOSE

# second argument: /src-tests.dir
LSPP_SRC=$2
if [ ! -d "$LSPP_SRC" ]; then
  echo "$0: can't find libsuite++ srcdir $2"
  exit 1
fi
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo "libsuite++ source directory set to: $LSPP_SRC"
fi
export LSPP_SRC

# third argument: /bld-tests.dir
LSPP_BLD=$3
if [ ! -d "$LSPP_BLD" ]; then
  echo "$0: can't find libsuite++ blddir $3"
  exit 1
fi
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo "libsuite++ build directory set to: $LSPP_BLD"
fi
export LSPP_BLD

# fourth argument: /src-lib.dir
LIB_SRC=$4
if [ ! -d "$LIB_SRC" ]; then
  echo "$0: can't find library source dir $4"
  exit 1
fi
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo "libstdc++ source directory set to: $LIB_SRC"
fi
export LIB_SRC

# fifth argument: /bin-lib.dir
LIB_BIN=$5
if [ ! -d "$LIB_BIN" ]; then
  echo "$0: can't find library binary dir $5"
  exit 1
fi
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo "libstdc++ binary directory set to: $LIB_BIN"
fi
export LIB_BIN


#
# Section 2: Setup
#
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo ""
  echo "Setting up. . . "
fi

cd $LSPP_BLD

if [ -z "$CONT" ]; then
# Copy everything over to the build directory. . . 
cp $LSPP_SRC/*.c .
cp $LSPP_SRC/conform.exp .
cp $LSPP_SRC/dst.3/* .
(cd $LSPP_SRC/dst.3/; tar cf - conform ) | tar xf -
sh chmodall
# CONT?
fi

# This sets up the variables and flags that libstuite++ expects,
# matching the inputs of DO-LIBSUITE++ with the harness from Plum Hall (PH).
# In particular, the CFLAGS, PHCC, and directories are set here.
chmod +x envsuite.mkck
. ./envsuite.mkck
if [ -n "$CC" ]; then
  PHCC="$CC"
  PHHOCC="$CC"
  export PHCC PHHOCC
fi
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo "path is $PATH"
fi

# Make all the random object files like summary, unsharc that PH wants.
if [ -z "$CONT" ]; then
make all
gcc -O -c -I. $PHSRC/conform/util.c
# CONT?
fi

#
# Section 3: Running the conformance tests
#
if [ $LSPP_VERBOSE -eq 1 ]; then
  echo ""
  echo "Running the conformance tests. . . "
fi

# Start the tests. . .
sh ./makeconf


















@


1.1
log
@*** empty log message ***
@
text
@@

