harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r549395 - in /harmony/enhanced/classlib/trunk/modules/portlib: ./ src/test/native/hyerror/unix/ src/test/native/hyerror/windows/ src/test/native/hynls/ src/test/native/hynls/shared/ src/test/native/hynls/unix/ src/test/native/hynls/windows/...
Date Thu, 21 Jun 2007 05:58:55 GMT
Author: tonywu
Date: Wed Jun 20 22:58:54 2007
New Revision: 549395

URL: http://svn.apache.org/viewvc?view=rev&rev=549395
Log:
Apply patch HARMONY-4254 ([classlib][portlib] Add native tests for hynls, hyport, hystr)

Added:
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c 
 (with props)
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c
  (with props)
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c 
 (with props)
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/makefile
Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/build.xml
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/unix/makefile
    harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/windows/makefile

Modified: harmony/enhanced/classlib/trunk/modules/portlib/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/build.xml?view=diff&rev=549395&r1=549394&r2=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/build.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/build.xml Wed Jun 20 22:58:54 2007
@@ -186,6 +186,9 @@
         <make dir="${hy.portlib.src.test.native}/hyfile/${hy.os.family}" />
         <make dir="${hy.portlib.src.test.native}/hygp/${hy.os.family}" />
         <make dir="${hy.portlib.src.test.native}/hymem/${hy.os.family}" />
+        <make dir="${hy.portlib.src.test.native}/hynls/${hy.os.family}" />
+        <make dir="${hy.portlib.src.test.native}/hyport/${hy.os.family}" />
+        <make dir="${hy.portlib.src.test.native}/hystr/${hy.os.family}" />
         <make dir="${hy.portlib.src.test.native}/hytime/${hy.os.family}" />
     </target>
 
@@ -202,6 +205,9 @@
         <!-- <exec-native test="hyfile" /> -->
         <exec-native test="hygp" />
         <exec-native test="hymem" />
+        <exec-native test="hynls" />
+        <exec-native test="hyport" />
+        <exec-native test="hystr" />
         <exec-native test="hytime" />
 	
         <move todir="${hy.tests.reports}">
@@ -225,6 +231,12 @@
         <make dir="${hy.portlib.src.test.native}/hygp/${hy.os.family}" 
               target="clean" />
         <make dir="${hy.portlib.src.test.native}/hymem/${hy.os.family}" 
+              target="clean" />
+        <make dir="${hy.portlib.src.test.native}/hynls/${hy.os.family}" 
+              target="clean" />
+        <make dir="${hy.portlib.src.test.native}/hyport/${hy.os.family}" 
+              target="clean" />
+        <make dir="${hy.portlib.src.test.native}/hystr/${hy.os.family}" 
               target="clean" />
         <make dir="${hy.portlib.src.test.native}/hytime/${hy.os.family}" 
               target="clean" />

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/unix/makefile?view=diff&rev=549395&r1=549394&r2=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/unix/makefile
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/unix/makefile
Wed Jun 20 22:58:54 2007
@@ -28,4 +28,5 @@
 endif
 EXENAME = ../hyerror
 
+CLEANFILES=../TEST-*.xml
 include $(HY_HDK)/build/make/rules.mk

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/windows/makefile?view=diff&rev=549395&r1=549394&r2=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/windows/makefile
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyerror/windows/makefile
Wed Jun 20 22:58:54 2007
@@ -32,5 +32,6 @@
 
 EXEFLAGS=$(conlflags) -subsystem:console
 EXEDLLFILES=$(conlibsdll)
+CLEANFILES=..\TEST-*.xml
 
 !include <$(HY_HDK)\build\make\rules.mak>

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c (added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c Wed
Jun 20 22:58:54 2007
@@ -0,0 +1,242 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+#include "hyport.h"
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include "hycunit.h"
+
+int test_hynls_get_language(struct HyPortLibrary *hyportLibrary);
+int test_hynls_get_region(struct HyPortLibrary *hyportLibrary);
+int test_hynls_get_variant(struct HyPortLibrary *hyportLibrary);
+int test_hynls_lookup_message(struct HyPortLibrary *hyportLibrary);
+int test_hynls_printf(struct HyPortLibrary *hyportLibrary);
+int test_hynls_vprintf(struct HyPortLibrary *hyportLibrary);
+int test_hynls_set_catalog(struct HyPortLibrary *hyportLibrary);
+int test_hynls_set_locale(struct HyPortLibrary *hyportLibrary);
+int test_hynls_shutdown(struct HyPortLibrary *hyportLibrary);
+int test_hynls_startup(struct HyPortLibrary *hyportLibrary);
+void forVprintfTest(struct HyPortLibrary *hyportLibrary,UDATA flags,U_32 module_name,U_32
message_num,char *format,...);
+
+int main (int argc, char **argv, char **envp)
+{
+  HyPortLibrary hyportLibrary;
+  HyPortLibraryVersion portLibraryVersion;
+  int ret;
+
+  printf("hynls:\n");
+
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    fprintf(stderr, "portlib init failed\n");
+    return 1;
+  }
+
+  printf("  portlib initialized\n");
+  
+  Hytest_init(&hyportLibrary, "Portlib.Hynls");
+  Hytest_func(&hyportLibrary, test_hynls_get_language, "hynls_get_language");
+  Hytest_func(&hyportLibrary, test_hynls_get_region, "hynls_get_region");
+  Hytest_func(&hyportLibrary, test_hynls_get_variant, "hynls_get_variant");
+  Hytest_func(&hyportLibrary, test_hynls_lookup_message, "hynls_lookup_message");
+  Hytest_func(&hyportLibrary, test_hynls_printf, "hynls_printf");
+  Hytest_func(&hyportLibrary, test_hynls_vprintf, "hynls_vprintf");
+  Hytest_func(&hyportLibrary, test_hynls_set_catalog, "hynls_set_catalog");
+  Hytest_func(&hyportLibrary, test_hynls_set_locale, "hynls_set_locale");
+  Hytest_func(&hyportLibrary, test_hynls_startup, "hynls_startup");
+  Hytest_func(&hyportLibrary, test_hynls_shutdown, "hynls_shutdown");
+  ret = Hytest_close_and_output(&hyportLibrary);
+  
+  if (0 != hyportLibrary.port_shutdown_library (&hyportLibrary)) {
+    fprintf(stderr, "portlib shutdown failed\n");
+    return 1;
+  }
+  
+  printf("  portlib shutdown\n");
+  return ret;
+}
+
+int test_hynls_get_language(struct HyPortLibrary *hyportLibrary)
+{
+  const char * language;
+  language = hyportLibrary->nls_get_language(hyportLibrary);
+  printf("language:\t%s\n",language);
+  if(!language){
+    Hytest_setErrMsg(hyportLibrary,
+            "hynls_get_language Output should be [%s] not null (%s)\n",language ,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hynls_get_region(struct HyPortLibrary *hyportLibrary)
+{
+  const char * region;
+  region = hyportLibrary->nls_get_region(hyportLibrary);
+  printf("region:\t%s\n",region);
+  if(!region){
+    Hytest_setErrMsg(hyportLibrary,
+            "hynls_get_region Output should be [%s] not null (%s)\n",region ,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hynls_get_variant(struct HyPortLibrary *hyportLibrary)
+{
+  const char * variant;
+  variant = hyportLibrary->nls_get_variant(hyportLibrary);
+  printf("variant:\t%s\n",variant);
+  if(!variant){
+    Hytest_setErrMsg(hyportLibrary,
+            "hynls_get_variant Output should be [%s] not null (%s)\n",variant ,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hynls_lookup_message(struct HyPortLibrary *hyportLibrary)
+{
+  const char * message;
+  message = hyportLibrary->nls_lookup_message(hyportLibrary,HYNLS_INFO,0,0,"Not Found");
+  printf("message:\t%s\n",message);
+  if(!message){
+    Hytest_setErrMsg(hyportLibrary,
+            "hynls_lookup_message Output should be [%s] not null (%s)\n",message ,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hynls_printf(struct HyPortLibrary *hyportLibrary)
+{
+  hyportLibrary->nls_printf(hyportLibrary,HYNLS_INFO,0,0,"Not Found");
+  return 0;
+}
+int test_hynls_vprintf(struct HyPortLibrary *hyportLibrary)
+{
+  forVprintfTest(hyportLibrary,HYNLS_INFO,0,0,"","Not Found");
+  return 0;
+}
+
+int test_hynls_set_catalog(struct HyPortLibrary *hyportLibrary)
+{
+  char *currentPath = NULL;
+  char * endPathPtr = NULL;
+  
+  hyportLibrary->sysinfo_get_executable_name (hyportLibrary, NULL, &currentPath);
+  endPathPtr = strrchr (currentPath, DIR_SEPARATOR);
+  endPathPtr[1] = '\0';
+  
+  hyportLibrary->nls_set_catalog (hyportLibrary, (const char**) &currentPath,
+                   1, "harmony", "properties");
+  return 0;
+}
+
+int test_hynls_set_locale(struct HyPortLibrary *hyportLibrary)
+{
+  const char *lang = "en";
+  const char *region = "US";
+  const char *variant = "Test";
+  const char *langGet;
+  const char *regionGet;
+  const char *variantGet;
+  
+  hyportLibrary->nls_set_locale (hyportLibrary, lang, region, variant);
+  langGet = hyportLibrary->nls_get_language(hyportLibrary);
+  regionGet = hyportLibrary->nls_get_region(hyportLibrary);
+  variantGet = hyportLibrary->nls_get_variant(hyportLibrary);
+  
+  if(strcmp(lang,langGet)){
+    Hytest_setErrMsg(hyportLibrary,
+            "langGet Output should be [%s] not [%s] (%s)\n", lang, langGet,HY_GET_CALLSITE());
+    return -1;
+  }
+  
+  if(strcmp(region,regionGet)){
+    Hytest_setErrMsg(hyportLibrary,
+            "langGet Output should be [%s] not [%s] (%s)\n", region, regionGet,HY_GET_CALLSITE());
+    return -1;
+  }
+  
+  if(strcmp(variant,variantGet)){
+    Hytest_setErrMsg(hyportLibrary,
+            "langGet Output should be [%s] not [%s] (%s)\n", variant, variantGet,HY_GET_CALLSITE());
+    return -1;
+  }
+  
+  return 0;
+}
+
+int test_hynls_shutdown(struct HyPortLibrary *hyportLibrary)
+{ 
+  HyPortLibrary hyportLibrary2;
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 rc;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    fprintf(stderr, "portlib init failed\n");
+    return -1;
+  }
+  rc =
+    hyportLibrary2.nls_startup (&hyportLibrary2);
+  if (0 != rc)
+  {
+    Hytest_setErrMsg(hyportLibrary, "nls startup failed: %s (%s)\n",
+    hyportLibrary->error_last_error_message(hyportLibrary),HY_GET_CALLSITE());
+    return -1;
+  }
+  hyportLibrary2.nls_shutdown (&hyportLibrary2);
+  return 0;
+}
+
+int test_hynls_startup(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibrary hyportLibrary2;
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 rc;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    fprintf(stderr, "portlib init failed\n");
+    return -1;
+  }
+  rc =
+    hyportLibrary2.nls_startup (&hyportLibrary2);
+  if (0 != rc)
+  {
+    Hytest_setErrMsg(hyportLibrary, "nls startup failed: %s (%s)\n",
+    hyportLibrary->error_last_error_message(hyportLibrary),HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+void forVprintfTest(struct HyPortLibrary *hyportLibrary,UDATA flags,U_32 module_name,U_32
message_num,char *format,...)
+{
+  va_list args;
+  va_start (args, format);
+  hyportLibrary->nls_vprintf (hyportLibrary, flags,
+               module_name, message_num, args);
+  va_end (args);
+}
+

Propchange: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/shared/hynls.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/makefile (added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/unix/makefile Wed
Jun 20 22:58:54 2007
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for 'hynls'
+#
+
+include $(HY_HDK)/build/make/defines.mk
+
+INCLUDES += -I../../hycunit
+BUILDFILES = $(SHAREDSUB)hynls.o
+BUILDFILES += ../../hycunit/hycunit.o
+MDLLIBFILES += $(DLLPATH)libhyprt$(HY_LINKLIB_SUFFIX)
+ifeq ($(HY_NO_THR),true)
+MDLLIBFILES += $(LIBPATH)libhythr$(HY_LINKLIB_SUFFIX)
+endif
+EXENAME = ../hynls
+
+CLEANFILES=../TEST-*.xml
+include $(HY_HDK)/build/make/rules.mk

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/makefile
(added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hynls/windows/makefile
Wed Jun 20 22:58:54 2007
@@ -0,0 +1,37 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for module 'hynls.exe'
+#
+
+!include <$(HY_HDK)\build\make\defines.mak>
+
+EXENAME=..\hynls.exe
+HYCFLAGS = $(HYCFLAGS) /I$(SHAREDSUB) /I..\..\hycunit
+
+BUILDFILES = $(SHAREDSUB)hynls.obj
+BUILDFILES = $(BUILDFILES) ..\..\hycunit\hycunit.obj
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hyprt$(HY_LINKLIB_SUFFIX)
+
+!IF "$(HY_NO_THR)" == "true"
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hythr$(HY_LINKLIB_SUFFIX)
+!ENDIF
+
+EXEFLAGS=$(conlflags) -subsystem:console
+EXEDLLFILES=$(conlibsdll)
+CLEANFILES=..\TEST-*.xml
+
+!include <$(HY_HDK)\build\make\rules.mak>

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c
(added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c
Wed Jun 20 22:58:54 2007
@@ -0,0 +1,230 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+#include "hycomp.h"
+#include "hyport.h"
+#include "hycunit.h"
+#include <stdlib.h>
+#include <stdio.h>
+
+int test_hyport_init_library(struct HyPortLibrary *hyportLibrary);
+int test_hyport_create_library(struct HyPortLibrary *hyportLibrary);
+int test_hyport_shutdown_library(struct HyPortLibrary *hyportLibrary);
+int test_hyport_getSize(struct HyPortLibrary *hyportLibrary);
+int test_hyport_allocate_library(struct HyPortLibrary *hyportLibrary);
+int test_hyport_getVersion(struct HyPortLibrary *hyportLibrary);
+int test_hyport_isCompatible(struct HyPortLibrary *hyportLibrary);
+int test_hyport_isFunctionOverridden(struct HyPortLibrary *hyportLibrary);
+
+int main (int argc, char **argv, char **envp)
+{
+  HyPortLibrary hyportLibrary;
+  HyPortLibraryVersion portLibraryVersion;
+  int ret;
+  
+  printf("hyport:\n");
+
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    fprintf(stderr, "portlib init failed\n");
+    return 1;
+  }
+  
+  printf("  portlib initialized\n");
+  
+  Hytest_init(&hyportLibrary, "Portlib.Hyport");
+  Hytest_func(&hyportLibrary, test_hyport_init_library, "hyport_init_library");
+  Hytest_func(&hyportLibrary, test_hyport_shutdown_library, "hyport_shutdown_library");
+  Hytest_func(&hyportLibrary, test_hyport_getSize, "hyport_getSize");
+  Hytest_func(&hyportLibrary, test_hyport_create_library, "hyport_create_library");
+  Hytest_func(&hyportLibrary, test_hyport_allocate_library, "hyport_allocate_library");
+  Hytest_func(&hyportLibrary, test_hyport_getVersion, "hyport_getVersion");
+  Hytest_func(&hyportLibrary, test_hyport_isCompatible, "hyport_isCompatible");
+  Hytest_func(&hyportLibrary, test_hyport_isFunctionOverridden, "hyport_isFunctionOverridden");
+  
+  ret = Hytest_close_and_output(&hyportLibrary);
+    
+  if (0 != hyportLibrary.port_shutdown_library (&hyportLibrary)) {
+    fprintf(stderr, "portlib shutdown failed\n");
+    return 1;
+  }
+  printf("  portlib shutdown\n");
+
+  return ret;
+}
+
+int test_hyport_init_library(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibraryVersion portLibraryVersion;
+  HyPortLibrary hyportLibrary2;
+  
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    Hytest_setErrMsg(hyportLibrary, "portlib init failed(%s) \n",HY_GET_CALLSITE());
+    return -1;
+  }
+  if (0 != hyportLibrary->port_shutdown_library (&hyportLibrary2)) {
+    Hytest_setErrMsg(hyportLibrary, "portlib shutdown failed (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_shutdown_library(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibraryVersion portLibraryVersion;
+  HyPortLibrary hyportLibrary2;
+  
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    Hytest_setErrMsg(hyportLibrary, "portlib init failed (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  if (0 != hyportLibrary->port_shutdown_library (&hyportLibrary2)) {
+    Hytest_setErrMsg(hyportLibrary, "portlib shutdown failed (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_getSize(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibraryVersion portLibraryVersion;
+  UDATA size;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  size = hyport_getSize(&portLibraryVersion);
+  printf("size:\t%d\n",size);
+  if(size == 0)
+  {
+    Hytest_setErrMsg(hyportLibrary, "fail to get the size of portLibrary (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_create_library(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibrary hyportLibrary2;
+  HyPortLibraryVersion portLibraryVersion;
+  UDATA size;
+  I_32 ret;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  size = hyport_getSize(&portLibraryVersion);
+  if(size == 0)
+  {
+    Hytest_setErrMsg(hyportLibrary, "fail to get the size of portLibrary (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  ret = hyport_create_library(&hyportLibrary2, &portLibraryVersion, size);
+  
+  if(ret!=0)
+  {
+    Hytest_setErrMsg(hyportLibrary, "fail to create the portLibrary (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_allocate_library(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibrary *portLibraryPointer = NULL;
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 ret;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  ret = hyport_allocate_library(&portLibraryVersion, &portLibraryPointer);
+  if(ret != 0||!portLibraryPointer)
+  {
+    Hytest_setErrMsg(hyportLibrary, "fail to allocate memory to the portLibrary (%s)\n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_getVersion(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibrary portLibrary2;
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 ret;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  if (0 != hyport_init_library (&portLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    Hytest_setErrMsg(hyportLibrary, "portlib init failed(%s) \n",HY_GET_CALLSITE());
+    return -1;
+  }
+  ret = hyport_getVersion(&portLibrary2,&portLibraryVersion);
+  if(ret!=0)
+  {
+    Hytest_setErrMsg(hyportLibrary, "hyport getVersion failed(%s) \n",HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_isCompatible(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 ret;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  ret = hyport_isCompatible(&portLibraryVersion);
+  if(ret != 1)
+  {
+    Hytest_setErrMsg(hyportLibrary, "hyport_isCompatible Output shoule be [%d] but [%d] (%s)
\n",1,ret,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+
+int test_hyport_isFunctionOverridden(struct HyPortLibrary *hyportLibrary)
+{
+  HyPortLibrary portLibrary2;
+  HyPortLibraryVersion portLibraryVersion;
+  I_32 ret;
+  UDATA offset;
+  HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+  
+  if (0 != hyport_init_library (&portLibrary2, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+  {
+    Hytest_setErrMsg(hyportLibrary, "portlib init failed(%s) \n",HY_GET_CALLSITE());
+    return -1;
+  }
+  offset = offsetof(HyPortLibrary,port_isFunctionOverridden);
+  printf("offset:\t%d\n",offset);
+  ret = hyportLibrary->port_isFunctionOverridden(&portLibrary2,offset);
+  if(ret != 0)
+  {
+    Hytest_setErrMsg(hyportLibrary, "hyport_isFunctionOverridden Output shoule be [%d] but
[%d] (%s) \n",0,ret,HY_GET_CALLSITE());
+    return -1;
+  }
+  portLibrary2.port_isFunctionOverridden = NULL;
+  
+  ret = hyportLibrary->port_isFunctionOverridden(&portLibrary2,offset);
+  
+  if(ret != 1)
+  {
+    Hytest_setErrMsg(hyportLibrary, "hyport_isFunctionOverridden Output shoule be [%d] but
[%d] (%s) \n",1,ret,HY_GET_CALLSITE());
+    return -1;
+  }
+  return 0;
+}
+

Propchange: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/shared/hyport.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/makefile (added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/unix/makefile Wed
Jun 20 22:58:54 2007
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for 'hyport'
+#
+
+include $(HY_HDK)/build/make/defines.mk
+
+INCLUDES += -I../../hycunit
+BUILDFILES = $(SHAREDSUB)hyport.o
+BUILDFILES += ../../hycunit/hycunit.o
+MDLLIBFILES += $(DLLPATH)libhyprt$(HY_LINKLIB_SUFFIX)
+ifeq ($(HY_NO_THR),true)
+MDLLIBFILES += $(LIBPATH)libhythr$(HY_LINKLIB_SUFFIX)
+endif
+EXENAME = ../hyport
+
+CLEANFILES=../TEST-*.xml
+include $(HY_HDK)/build/make/rules.mk

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/makefile
(added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyport/windows/makefile
Wed Jun 20 22:58:54 2007
@@ -0,0 +1,37 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for module 'hyport.exe'
+#
+
+!include <$(HY_HDK)\build\make\defines.mak>
+
+EXENAME=..\hyport.exe
+HYCFLAGS = $(HYCFLAGS) /I$(SHAREDSUB) /I..\..\hycunit
+
+BUILDFILES = $(SHAREDSUB)hyport.obj
+BUILDFILES = $(BUILDFILES) ..\..\hycunit\hycunit.obj
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hyprt$(HY_LINKLIB_SUFFIX)
+
+!IF "$(HY_NO_THR)" == "true"
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hythr$(HY_LINKLIB_SUFFIX)
+!ENDIF
+
+EXEFLAGS=$(conlflags) -subsystem:console
+EXEDLLFILES=$(conlibsdll)
+CLEANFILES=..\TEST-*.xml
+
+!include <$(HY_HDK)\build\make\rules.mak>

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c (added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c Wed
Jun 20 22:58:54 2007
@@ -0,0 +1,225 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+#include "hycomp.h"
+#include "hyport.h"
+#include "hycunit.h"
+
+int test_hystr_printf_int(struct HyPortLibrary *hyportLibrary);
+int test_hystr_printf_double(struct HyPortLibrary *hyportLibrary);
+int test_hystr_printf (struct HyPortLibrary *hyportLibrary);
+int test_hystr_vprintf (struct HyPortLibrary *hyportLibrary);
+int test_hystr_shutdown(struct HyPortLibrary *hyportLibrary);
+int test_hystr_startup(struct HyPortLibrary *hyportLibrary);
+U_32 forVprintfTest(struct HyPortLibrary *hyportLibrary,char *buf,U_32 buflen,char* format,...);
+
+int main (int argc, char **argv, char **envp)
+{
+   HyPortLibrary hyportLibrary;
+   HyPortLibraryVersion portLibraryVersion;
+   int ret;
+
+   printf("hystr:\n");
+
+   HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+   if (0 != hyport_init_library (&hyportLibrary, &portLibraryVersion,
+                                sizeof (HyPortLibrary)))
+   {
+      fprintf(stderr, "portlib init failed\n");
+      return 1;
+   }
+
+   printf("  portlib initialized\n");
+
+   Hytest_init(&hyportLibrary, "Portlib.Hystr");
+   Hytest_func(&hyportLibrary, test_hystr_printf_int, "hystr_printf_int");
+   Hytest_func(&hyportLibrary, test_hystr_printf_double, "hystr_printf_double");
+   Hytest_func(&hyportLibrary, test_hystr_printf, "hystr_printf");
+   Hytest_func(&hyportLibrary, test_hystr_vprintf, "hystr_vprintf");
+   Hytest_func(&hyportLibrary, test_hystr_startup, "test_hystr_startup");
+   Hytest_func(&hyportLibrary, test_hystr_shutdown, "hystr_shutdown");
+   ret = Hytest_close_and_output(&hyportLibrary);
+     
+   if (0 != hyportLibrary.port_shutdown_library (&hyportLibrary)) {
+      fprintf(stderr, "portlib shutdown failed\n");
+      return 1;
+   }
+   printf("  portlib shutdown\n");
+
+   return ret;
+}
+
+int test_hystr_printf_int(struct HyPortLibrary *hyportLibrary)
+{
+   PORT_ACCESS_FROM_PORT(hyportLibrary);
+   char buf[1000];
+   int testcase[]={0, 1, -1, 1000, -2000, 999999};
+   char *testout[]={"  0", "  1", " -1", "1000", "-2000", "999999"};
+   int i;
+   for (i=0; i<sizeof(testcase)/sizeof(int); i++)
+   {
+      hyportLibrary->str_printf(hyportLibrary, buf, 1000, "%3d", testcase[i]);
+      if (strcmp(buf, testout[i])!=0)
+      {
+	 Hytest_setErrMsg(hyportLibrary, "Output should be [%s] not [%s] (%s)", testout[i], buf,
HY_GET_CALLSITE());
+	 return -1;
+      }
+   }
+   return 0;
+}
+
+int test_hystr_printf_double(struct HyPortLibrary *hyportLibrary)
+{
+   PORT_ACCESS_FROM_PORT(hyportLibrary);
+   char buf[1000];
+   double testcase[]={0, 1, -1.090909, 1000.12345, -2000.999999};
+   char *testout[]={" 0.000", " 1.000", "-1.091", "1000.123", "-2001.000"};
+   int i;
+   for (i=0; i<sizeof(testcase)/sizeof(double); i++)
+   {
+      hyportLibrary->str_printf(hyportLibrary, buf, 1000, "%6.3lf", testcase[i]);
+      if (strcmp(buf, testout[i])!=0)
+      {
+	 Hytest_setErrMsg(hyportLibrary, "Output should be [%s] not [%s] (%s)", testout[i], buf,
HY_GET_CALLSITE());
+	 return -1;
+      }
+   }
+   return 0;
+}
+
+int test_hystr_printf (struct HyPortLibrary *hyportLibrary)
+{
+   char buf[512];
+   U_32 ret;
+   ret = hyportLibrary->str_printf(hyportLibrary, buf, 10,"%d",-1);
+   if(ret!=2)
+   {
+      Hytest_setErrMsg(hyportLibrary, "The character num Output should be [2] not [%d] (%s)\n",
ret, HY_GET_CALLSITE());
+      return -1;
+   }
+   if(strcmp(buf,"-1"))
+   {
+      Hytest_setErrMsg(hyportLibrary, "The buffer Output should be [-1] not [%s] (%s)\n",
buf, HY_GET_CALLSITE());
+      return -1;
+   }
+
+   ret = hyportLibrary->str_printf(hyportLibrary, buf, 10,"%09d %7.4d %7.2f",9,-2,3.1415926535);
+   if(ret!=9)
+   {
+      Hytest_setErrMsg(hyportLibrary, "The character num Output should be [10] not [%d] (%s)\n",
ret, HY_GET_CALLSITE());
+      return -1;
+   }
+   if(strcmp(buf,"000000009"))
+   {
+      Hytest_setErrMsg(hyportLibrary, "The buffer Output should be [000000009   -0002   
3.14] not [%s] (%s)\n", buf, HY_GET_CALLSITE());
+      return -1;
+   } 
+   return 0;
+}
+
+int test_hystr_vprintf (struct HyPortLibrary *hyportLibrary)
+{
+   char buf[512];
+   U_32 ret;
+   ret = forVprintfTest(hyportLibrary, buf, 10,"%d",-1);
+   if(ret!=2)
+   {
+      Hytest_setErrMsg(hyportLibrary, "The character num Output should be [2] not [%d] (%s)\n",
ret, HY_GET_CALLSITE());
+      return -1;
+   }
+   if(strcmp(buf,"-1"))
+   {
+      Hytest_setErrMsg(hyportLibrary, "The buffer Output should be [-1] not [%s] (%s)\n",
buf, HY_GET_CALLSITE());
+      return -1;
+   }
+
+   ret = forVprintfTest(hyportLibrary, buf, 10,"%09d %7.4d %7.2f",9,-2,3.1415926535);
+   if(ret!=9)
+   {
+      Hytest_setErrMsg(hyportLibrary, "The character num Output should be [10] not [%d] (%s)\n",
ret, HY_GET_CALLSITE());
+      return -1;
+   }
+   if(strcmp(buf,"000000009"))
+   {
+      Hytest_setErrMsg(hyportLibrary, "The buffer Output should be [000000009   -0002   
3.14] not [%s] (%s)\n", buf, HY_GET_CALLSITE());
+      return -1;
+   } 
+   return 0;
+}
+
+int test_hystr_shutdown(struct HyPortLibrary *hyportLibrary)
+{
+   HyPortLibrary hyportLibrary2;
+   HyPortLibraryVersion portLibraryVersion;
+   I_32 rc;
+   HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+   if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                 sizeof (HyPortLibrary)))
+   {
+      fprintf(stderr, "portlib init failed\n");
+      return -1;
+   }
+   rc =
+      hyportLibrary2.str_startup (&hyportLibrary2);
+   if (0 != rc)
+   {
+      Hytest_setErrMsg(hyportLibrary, "error startup failed: %s (%s)\n",
+      hyportLibrary->error_last_error_message(hyportLibrary),HY_GET_CALLSITE());
+      return -1;
+   }
+   hyportLibrary2.str_shutdown(&hyportLibrary2);
+   return 0;
+}
+
+int test_hystr_startup(struct HyPortLibrary *hyportLibrary)
+{
+   HyPortLibrary hyportLibrary2;
+   HyPortLibraryVersion portLibraryVersion;
+   I_32 rc;
+   HYPORT_SET_VERSION (&portLibraryVersion, HYPORT_CAPABILITY_MASK);
+   if (0 != hyport_init_library (&hyportLibrary2, &portLibraryVersion,
+                                 sizeof (HyPortLibrary)))
+   {
+      fprintf(stderr, "portlib init failed\n");
+      return -1;
+   }
+   rc =
+     hyportLibrary2.str_startup (&hyportLibrary2);
+   if (0 != rc)
+   {
+      Hytest_setErrMsg(hyportLibrary, "time startup failed: %s (%s)\n",
+      hyportLibrary->error_last_error_message(hyportLibrary),HY_GET_CALLSITE());
+      return -1;
+   }
+   hyportLibrary2.str_shutdown(&hyportLibrary2);
+   return 0;
+}
+
+U_32 forVprintfTest(struct HyPortLibrary *hyportLibrary,char *buf ,U_32 buflen,char* format,...)
+{
+   U_32 ret;
+   va_list args;
+   va_start (args, format);
+   ret = hyportLibrary->str_vprintf(hyportLibrary, buf, buflen ,format, args);
+   va_end (args);
+   return ret;
+}
+

Propchange: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/shared/hystr.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/makefile (added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/unix/makefile Wed
Jun 20 22:58:54 2007
@@ -0,0 +1,32 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for 'hystr'
+#
+
+include $(HY_HDK)/build/make/defines.mk
+
+INCLUDES += -I../../hycunit
+BUILDFILES = $(SHAREDSUB)hystr.o
+BUILDFILES += ../../hycunit/hycunit.o
+MDLLIBFILES += $(DLLPATH)libhyprt$(HY_LINKLIB_SUFFIX)
+ifeq ($(HY_NO_THR),true)
+MDLLIBFILES += $(LIBPATH)libhythr$(HY_LINKLIB_SUFFIX)
+endif
+EXENAME = ../hystr
+
+CLEANFILES=../TEST-*.xml
+include $(HY_HDK)/build/make/rules.mk

Added: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/makefile?view=auto&rev=549395
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/makefile
(added)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hystr/windows/makefile
Wed Jun 20 22:58:54 2007
@@ -0,0 +1,37 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+#
+# Makefile for module 'hystr.exe'
+#
+
+!include <$(HY_HDK)\build\make\defines.mak>
+
+EXENAME=..\hystr.exe
+HYCFLAGS = $(HYCFLAGS) /I$(SHAREDSUB) /I..\..\hycunit
+
+BUILDFILES = $(SHAREDSUB)hystr.obj
+BUILDFILES = $(BUILDFILES) ..\..\hycunit\hycunit.obj
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hyprt$(HY_LINKLIB_SUFFIX)
+
+!IF "$(HY_NO_THR)" == "true"
+MDLLIBFILES = $(MDLLIBFILES) $(LIBPATH)hythr$(HY_LINKLIB_SUFFIX)
+!ENDIF
+
+EXEFLAGS=$(conlflags) -subsystem:console
+EXEDLLFILES=$(conlibsdll)
+CLEANFILES=..\TEST-*.xml
+
+!include <$(HY_HDK)\build\make\rules.mak>



Mime
View raw message