test/jdk/java/nio/Buffer/genOrder.sh
author mgronlun
Sun, 22 Sep 2019 17:31:57 +0200 (2019-09-22)
branchJEP-349-branch
changeset 58259 b6efcf2217f1
parent 53648 6d37b8ec36fa
permissions -rw-r--r--
clear_artifacts in the correct location
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31723
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     1
#! /bin/sh
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     2
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     3
#
53648
6d37b8ec36fa 8218460: Test generation scripts do not invoke stream preprocessor correctly
bpb
parents: 52147
diff changeset
     4
# Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
31723
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     6
#
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     7
# This code is free software; you can redistribute it and/or modify it
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     8
# under the terms of the GNU General Public License version 2 only, as
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
     9
# published by the Free Software Foundation.
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    10
#
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    15
# accompanied this code).
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    16
#
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    20
#
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    23
# questions.
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    24
#
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    25
53648
6d37b8ec36fa 8218460: Test generation scripts do not invoke stream preprocessor correctly
bpb
parents: 52147
diff changeset
    26
javac -d . ../../../../../make/jdk/src/classes/build/tools/spp/Spp.java
31723
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    27
gen() {
53648
6d37b8ec36fa 8218460: Test generation scripts do not invoke stream preprocessor correctly
bpb
parents: 52147
diff changeset
    28
    out=Order$2.java
6d37b8ec36fa 8218460: Test generation scripts do not invoke stream preprocessor correctly
bpb
parents: 52147
diff changeset
    29
    rm -f $out
6d37b8ec36fa 8218460: Test generation scripts do not invoke stream preprocessor correctly
bpb
parents: 52147
diff changeset
    30
    java  build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 -iOrder-X.java.template -o$out
31723
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    31
}
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    32
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    33
gen char Char Character
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    34
gen short Short Short
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    35
gen int Int Integer
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    36
gen long Long Long
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    37
gen float Float Float
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    38
gen double Double Double
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    39
2e16a59cc5cb 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
bpb
parents:
diff changeset
    40
rm -rf build