Makefile revision 0
883N/A# Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. 883N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 883N/A# This code is free software; you can redistribute it and/or modify it 883N/A# under the terms of the GNU General Public License version 2 only, as 883N/A# published by the Free Software Foundation. 883N/A# This code is distributed in the hope that it will be useful, but WITHOUT 883N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 883N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 883N/A# version 2 for more details (a copy is included in the LICENSE file that 883N/A# accompanied this code). 883N/A# You should have received a copy of the GNU General Public License version 883N/A# 2 along with this work; if not, write to the Free Software Foundation, 883N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 883N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 883N/A# Default bundle of all test results (passed or not) 883N/A# Default home for JTREG 883N/A# Root of this test area 883N/A# The test directories to run 883N/A# Files that hold total passed and failed counts (passed==0 is bad) 883N/A# Root of all test results 883N/A# Test results for one test directory 883N/A# Temp files used by this Makefile 883N/A# JTREG options (different for 2.1.6 and 3.2.2_01) 883N/A# Chaeck to make sure these directories exist 883N/A# Run the tests and determine the 'make' command exit status 883N/A# Just make sure these directires exist echo "ERROR: Directory $@ does not exist"; \
# Make sure this file exists echo "ERROR: File $@ does not exist"; \
# Process each test directory one by one, this rule always completes. # Note that the use of 'tee' tosses the jtreg process exit status, this # is as expected because even if jtreg fails, we need to save the # output. So we update the JTREG_PASSED and JTREG_FAILED count files. # Note that missing the 'results:' line in the last few lines of output # will indicate a failure (or a bump by one of the JTREG_FAILED file. # Note that passed: 0 or no passed: indication means a failure. # Note that any indication of the word 'failed' indicates failure. # Ultimately if the contents of JTREG_FAILED is not 0, we have failed # tests, and if the contents of JTREG_PASSED is 0, we consider that a echo "ERROR: Directory $@ does not exist"; \
@
echo "---------------------------------------------------" echo "Assume we are using jtreg 3.2.2_01 or newer"; \
echo "Assume we are using jtreg 2.1.6"; \
@
echo "---------------------------------------------------" @
echo "Extracting passed and failed counts from jtreg output" echo "ERROR: No passed indication in results"; \
echo "ERROR: Passed count appears to be 0"; \
echo "No indication anything failed"; \
echo "ERROR: Failed pattern but no failed count in results"; \
echo "ERROR: Failed count is 0, did something failed or not?"; \
@
echo "---------------------------------------------------" @
echo "---------------------------------------------------"