Path: blob/master/test/hotspot/jtreg/applications/ctw/modules/generate.bash
41155 views
#!/bin/bash1#2# Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4#5# This code is free software; you can redistribute it and/or modify it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 2 along with this work; if not, write to the Free Software Foundation,17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18#19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#2324# generates CTW tests for modules passed as argument2526for module in $@27do28file=${module//./_}.java29echo creating $file for $module...30cat > $file <<EOF31/*32* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.33* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.34*35* This code is free software; you can redistribute it and/or modify it36* under the terms of the GNU General Public License version 2 only, as37* published by the Free Software Foundation.38*39* This code is distributed in the hope that it will be useful, but WITHOUT40* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or41* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License42* version 2 for more details (a copy is included in the LICENSE file that43* accompanied this code).44*45* You should have received a copy of the GNU General Public License version46* 2 along with this work; if not, write to the Free Software Foundation,47* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.48*49* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA50* or visit www.oracle.com if you need additional information or have any51* questions.52*/5354/*55* @test56* @summary run CTW for all classes from $module module57*58* @library /test/lib / /testlibrary/ctw/src59* @modules java.base/jdk.internal.access60* java.base/jdk.internal.jimage61* java.base/jdk.internal.misc62* java.base/jdk.internal.reflect63* @modules $module64*65* @build sun.hotspot.WhiteBox66* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox67* @run driver/timeout=7200 sun.hotspot.tools.ctw.CtwRunner modules:$module68*/69EOF7071done727374