#!/bin/ksh
# $XConsortium: run_tests,v 1.0 93/11/22 12:30:30 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

TESTS="attr_errors \
       clip_attrs \
       clip_attrs_push \
       dq_attrs \
       dq_attrs_push \
       hlhsr_attrs \
       hlhsr_attrs_push \
       idle_renderer \
       line_attrs \
       line_attrs_push \
       marker_attrs \
       marker_attrs_push \
       misc_attrs \
       refl_attrs \
       struct_attrs \
       surf_attrs \
       surf_attrs_push \
       xform_attrs \
       xform_attrs_push"

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 $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 $TESTS
    do
	$EXECUTE_TEST $test -s

    done
fi

