#!/bin/ksh
# $XConsortium: run_tests,v 1.0 93/11/22 12:27:02 rws Exp $
#
#
#   (c) Copyright Hewlett-Packard Company, 1993, Fort Collins, Colorado       
#                                                                            
#                             All Rights Reserved                           
#                                                                          
#   Permission to use, copy, modify, and distribute this software and its 
#   documentation for any purpose and without fee is hereby granted,     
#   provided that the above copyright notices appear in all copies and that   
#   both the copyright notices and this permission notice appear in          
#   supporting documentation, and that the name of Hewlett-Packard not be   
#   used in advertising or publicity pertaining to distribution of the     
#   software without specific, written prior permission.                  
#                                                                        
#   HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS   
#   SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
#   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  Hewlett-Packard    
#   shall not be liable for errors contained herein or direct, indirect,     
#   special, incidental or consequential damages in connection with the     
#   furnishing, performance or use of this software.                       
#                                                                         
#

unset PAUSE

NON_OC_TESTS="fnt_err \
              fnt_info \
              fnt_list \
              fnt_load \
	      fnt_ref"

OC_TESTS="fnt_atext \
	  fnt_atext2D \
	  fnt_bundle \
	  fnt_text \
	  fnt_text2D"

if [ $RUN_IMM = 1 ] 
then 
    REF_IMAGE_DIR=$REF_IMM; export REF_IMAGE_DIR
    CUR_IMAGE_DIR=$CUR_IMM; export CUR_IMAGE_DIR
    BAD_IMAGE_DIR=$BAD_IMM; export BAD_IMAGE_DIR
    echo "\n# Running Immediate Mode Tests"
    for test in $OC_TESTS
    do
	$EXECUTE_TEST $test -i
    done
fi

if [ $RUN_STR = 1 ] 
then 
    REF_IMAGE_DIR=$REF_STR; export REF_IMAGE_DIR
    CUR_IMAGE_DIR=$CUR_STR; export CUR_IMAGE_DIR
    BAD_IMAGE_DIR=$BAD_STR; export BAD_IMAGE_DIR
    echo "\n# Running Structure Mode Tests"
    for test in $OC_TESTS
    do
	$EXECUTE_TEST $test -s

    done
fi

if [ $RUN_NOC = 1 ] 
then 
    REF_IMAGE_DIR=$REF_NOC; export REF_IMAGE_DIR
    CUR_IMAGE_DIR=$CUR_NOC; export CUR_IMAGE_DIR
    BAD_IMAGE_DIR=$BAD_NOC; export BAD_IMAGE_DIR
    echo "\n# Running Non-OC Tests"
    for test in $NON_OC_TESTS
    do
	$EXECUTE_TEST $test -n
    done
fi

