Makefile revision 163
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# This code is free software; you can redistribute it and/or modify it
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# under the terms of the GNU General Public License version 2 only, as
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# published by the Free Software Foundation. Sun designates this
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# particular file as subject to the "Classpath" exception as provided
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# by Sun in the LICENSE file that accompanied this code.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# This code is distributed in the hope that it will be useful, but WITHOUT
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# version 2 for more details (a copy is included in the LICENSE file that
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# accompanied this code).
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# You should have received a copy of the GNU General Public License version
b616f6ed69209ab4c87f610b472aeb20760652f2Mark Andrews# 2 along with this work; if not, write to the Free Software Foundation,
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# CA 95054 USA or visit www.sun.com if you need additional information or
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# have any questions.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Makefile to run tests from multiple sibling directories
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Root of the forest that was built
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# This makefile depends on the availability of sibling directories.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Macro to run a test target in a subdir
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyif [ -d $1 ] ; then \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence echo "ERROR: File does not exist: $1/test/Makefile"; \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence echo "WARNING: No testing done, directory does not exist: $1"; \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# Test target list for langtools repository
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews# Test target list for jdk repository
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence jdk_management jdk_management1 jdk_management2 \
8319af16557b81eba3277ee67215285f0823b587Mark Andrews jdk_security jdk_security1 jdk_security2 jdk_security3 \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Default test target (everything)
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# Test targets
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence @$(call SUBDIR_TEST, $(LANGTOOLS_DIR), $(subst langtools_,,$@))
2320f230995995595438a9d9301d84931fd266ceMark Andrews################################################################
6dcb47e37f9f0cdb94bdabc3fa157ff07983c590Mark Andrews# Phony targets (e.g. these are not filenames)
6dcb47e37f9f0cdb94bdabc3fa157ff07983c590Mark Andrews.PHONY: all clean $(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley################################################################