From 9b3b1847ce5c12902ab2b1ba1018208d33ae8c9d Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Wed, 13 May 2009 16:09:14 +0000 Subject: Disabled "natives" test because its annoyance /... Disabled "natives" test because its annoyance / usefulness ratio was considered to be too low. --- test/files/jvm/mkLibNatives.sh | 62 ------------------------------------------ 1 file changed, 62 deletions(-) delete mode 100755 test/files/jvm/mkLibNatives.sh (limited to 'test/files/jvm/mkLibNatives.sh') diff --git a/test/files/jvm/mkLibNatives.sh b/test/files/jvm/mkLibNatives.sh deleted file mode 100755 index 0d530a7ac9..0000000000 --- a/test/files/jvm/mkLibNatives.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -############################################################################## -# Author : Stephane Micheloud -# Revision: $Id$ -############################################################################## - -############################################################################## -# variables - -# set any value to enable debugging output -debug= - -cygwin=false; -darwin=false; -case "`uname`" in - CYGWIN*) cygwin=true ;; - Darwin*) darwin=true ;; -esac - -CLASS_NAME=Test\$ -CLASS_DIR=natives-jvm.obj - -OBJ_NAME=natives -LIB_NAME=libnatives - -if [ -z "${JAVA_HOME}" ]; then - echo "environment variable JAVA_HOME is undefined." - exit -elif $cygwin; then - echo "Cygwin not supported (use 'mkLibNatives.bat')." - exit -fi - -JAVAH=${JAVA_HOME}/bin/javah -JAVAH_OPTIONS="-jni -force -classpath ${CLASS_DIR} -o ${OBJ_NAME}.h" - -CC=gcc - -if $darwin; then - CC_OPTIONS="-c -arch ppc -arch i386" - CC_INCLUDES="-I/System/Library/Frameworks/JavaVM.framework/Headers" - LNK_OPTIONS="-dynamiclib -framework JavaVM" - FULL_LIB_NAME=${LIB_NAME}.jnilib -else - CC_OPTIONS=-c - CC_INCLUDES="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OSTYPE}" - LNK_OPTIONS="-shared -Wl,-soname,${LIB_NAME}" - FULL_LIB_NAME=${LIB_NAME}.so -fi - -############################################################################## -# commands - -[ $debug ] && echo ${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME} -${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME} - -[ $debug ] && echo ${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c -${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c - -[ $debug ] && echo ${CC} ${LNK_OPTIONS} -o ${FULL_LIB_NAME} ${OBJ_NAME}.o -${CC} ${LNK_OPTIONS} -o ${FULL_LIB_NAME} ${OBJ_NAME}.o -- cgit v1.2.3