summaryrefslogtreecommitdiff
path: root/websvcs/tests
diff options
context:
space:
mode:
Diffstat (limited to 'websvcs/tests')
-rw-r--r--websvcs/tests/Makefile76
-rw-r--r--websvcs/tests/Test_URL_Addr.cpp216
-rw-r--r--websvcs/tests/Test_URL_Addr.dsp98
-rw-r--r--websvcs/tests/tests.dsw29
4 files changed, 0 insertions, 419 deletions
diff --git a/websvcs/tests/Makefile b/websvcs/tests/Makefile
deleted file mode 100644
index cdd9a16c3fc..00000000000
--- a/websvcs/tests/Makefile
+++ /dev/null
@@ -1,76 +0,0 @@
-#----------------------------------------------------------------------------
-#
-# $Id$
-#
-# Makefile for all the ACE/websvcs ``one-button' tests
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-BIN = Test_URL_Addr
-
-LSRC = $(addsuffix .cpp,$(BIN))
-
-BUILD = $(VBIN)
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-VLDLIBS := -lwebsvcs $(VLDLIBS)
-
-# To build multiple executables in the same directory on AIX, it works
-# best to wipe out any previously-created tempinc directory.
-# The compiler/linker isn't too smart about instantiating templates...
-ifdef TEMPINCDIR
-COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc)
-endif
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-.obj/Test_URL_Addr.o .obj/Test_URL_Addr.so .shobj/Test_URL_Addr.o .shobj/Test_URL_Addr.so: Test_URL_Addr.cpp \
- $(ACE_ROOT)/websvcs/lib/URL_Addr.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(ACE_ROOT)/websvcs/lib/websvcs_export.h \
- $(ACE_ROOT)/websvcs/lib/URL_Addr.i
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/websvcs/tests/Test_URL_Addr.cpp b/websvcs/tests/Test_URL_Addr.cpp
deleted file mode 100644
index 644f0ebd467..00000000000
--- a/websvcs/tests/Test_URL_Addr.cpp
+++ /dev/null
@@ -1,216 +0,0 @@
-// $Id$
-
-#include "websvcs/lib/URL_Addr.h"
-
-ACE_RCSID(WEBSVCS_Test, Test_URL_Addr, "$Id$")
-
-void test_http_addr (void);
-void test_ftp_addr (void);
-void test_mailto_addr (void);
-void test_url_addr (void);
-
-int main (int, char*[])
-{
- test_http_addr ();
- test_ftp_addr ();
- test_mailto_addr ();
- test_url_addr ();
- return 0;
-}
-
-#define HTTP_TEST_ARRAY \
- ASYS_TEXT("http://www.cs.wustl.edu/"), \
- ASYS_TEXT("http://www.cs.wustl.edu/index.html"), \
- ASYS_TEXT("http://www.cs.wustl.edu/form?var=foo"), \
- ASYS_TEXT("http://www.notexist.com:8080/index.html"), \
- ASYS_TEXT("http://www.notexist.com:80/index.html"), \
- ASYS_TEXT("ftp://foo"), \
- ASYS_TEXT("http://www/?kkk//")
-
-#define FTP_TEST_ARRAY \
- ASYS_TEXT("ftp://www.cs.wustl.edu/"), \
- ASYS_TEXT("ftp://user@www.cs.wustl.edu/"), \
- ASYS_TEXT("ftp://user:pass@www.cs.wustl.edu/"), \
- ASYS_TEXT("ftp://user:pass@www.cs.wustl.edu/path"), \
- ASYS_TEXT("ftp://www.cs.wustl.edu"), \
- ASYS_TEXT("http://www.cs.wustl.edu/index.html")
-
-#define MAILTO_TEST_ARRAY \
- ASYS_TEXT("mailto:ace-users@cs.wustl.edu"), \
- ASYS_TEXT("mailto:majordomo@cs.wustl.edu?Subject: subscribe ace-users"), \
- ASYS_TEXT("mailto:nobody"), \
- ASYS_TEXT("http://www.cs.wustl.edu")
-
-#define URL_TEST_ARRAY \
- ASYS_TEXT("file:/etc/passwd")
-
-void test_http_addr (void)
-{
- static LPCTSTR addresses[] = {
- HTTP_TEST_ARRAY
- };
- static int naddresses = sizeof(addresses)/sizeof(addresses[0]);
- for (int i = 0; i < naddresses; ++i)
- {
- ACE_HTTP_Addr addr;
- if (addr.string_to_addr (addresses[i]) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "HTTP[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
- continue;
- }
-
- ASYS_TCHAR buffer[BUFSIZ];
- if (addr.addr_to_string (buffer, BUFSIZ, i%2) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "HTTP[%d]\n"
- " \"%s\"\n"
- " <%s>\n"
- " <%s>\n",
- i, addresses[i],
- addr.get_url (),
- buffer));
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "HTTP[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
- }
- }
-}
-
-void test_ftp_addr (void)
-{
- static LPCTSTR addresses[] = {
- FTP_TEST_ARRAY
- };
- static int naddresses = sizeof(addresses)/sizeof(addresses[0]);
- for (int i = 0; i < naddresses; ++i)
- {
- ACE_FTP_Addr addr;
- if (addr.string_to_addr (addresses[i]) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "FTP[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
- continue;
- }
-
- ASYS_TCHAR buffer[BUFSIZ];
- if (addr.addr_to_string (buffer, BUFSIZ, i%2) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "FTP[%d]\n"
- " \"%s\"\n"
- " <%s>\n"
- " <%s>\n",
- i, addresses[i],
- addr.get_url (),
- buffer));
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "FTP[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
-
- }
- }
-}
-
-void test_mailto_addr (void)
-{
- static LPCTSTR addresses[] = {
- MAILTO_TEST_ARRAY
- };
- static int naddresses = sizeof(addresses)/sizeof(addresses[0]);
- for (int i = 0; i < naddresses; ++i)
- {
- ACE_Mailto_Addr addr;
- if (addr.string_to_addr (addresses[i]) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "Mailto[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
- continue;
- }
-
- ASYS_TCHAR buffer[BUFSIZ];
- if (addr.addr_to_string (buffer, BUFSIZ, i%2) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Mailto[%d]\n"
- " \"%s\"\n"
- " <%s>\n"
- " <%s>\n",
- i, addresses[i],
- addr.get_url (),
- buffer));
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "Mailto[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
-
- }
- }
-}
-
-void test_url_addr (void)
-{
- static LPCTSTR addresses[] = {
- HTTP_TEST_ARRAY,
- FTP_TEST_ARRAY,
- MAILTO_TEST_ARRAY,
- URL_TEST_ARRAY
- };
- static int naddresses = sizeof(addresses)/sizeof(addresses[0]);
- for (int i = 0; i < naddresses; ++i)
- {
- ACE_URL_Addr* addr =
- ACE_URL_Addr::create_address (addresses[i]);
- if (addr == 0)
- {
- ACE_ERROR ((LM_ERROR,
- "URL[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
- continue;
- }
-
- ASYS_TCHAR buffer[BUFSIZ];
- if (addr->addr_to_string (buffer, BUFSIZ, i%2) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "URL[%d]\n"
- " \"%s\"\n"
- " <%s>\n"
- " <%s>\n",
- i, addresses[i],
- addr->get_url (),
- buffer));
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "URL[%d]\n"
- " \"%s\" ERROR\n",
- i, addresses[i]));
-
- }
- }
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/websvcs/tests/Test_URL_Addr.dsp b/websvcs/tests/Test_URL_Addr.dsp
deleted file mode 100644
index 2457e73a887..00000000000
--- a/websvcs/tests/Test_URL_Addr.dsp
+++ /dev/null
@@ -1,98 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Test_URL_Addr" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Test_URL_Addr - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "tests.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "tests.mak" CFG="Test_URL_Addr - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Test_URL_Addr - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Test_URL_Addr - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Test_URL_Addr - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib websvcs.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\ace" /libpath:"..\lib"
-
-!ELSEIF "$(CFG)" == "Test_URL_Addr - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib websvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\ace" /libpath:"..\lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Test_URL_Addr - Win32 Release"
-# Name "Test_URL_Addr - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\Test_URL_Addr.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# End Target
-# End Project
diff --git a/websvcs/tests/tests.dsw b/websvcs/tests/tests.dsw
deleted file mode 100644
index d8fc39be375..00000000000
--- a/websvcs/tests/tests.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Test_URL_Addr"=.\Test_URL_Addr.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-