Remove dead udp test.
authorBrian Aker <brian@gaz>
Thu, 14 Jan 2010 19:17:39 +0000 (11:17 -0800)
committerBrian Aker <brian@gaz>
Thu, 14 Jan 2010 19:17:39 +0000 (11:17 -0800)
tests/include.am
tests/udp.c [deleted file]

index 835096aadb2f67a1c9a15fe34ff599f24247d9b2..ab48b42f124d8ef4740f7167b135e80363ec9169 100644 (file)
@@ -37,8 +37,7 @@ noinst_PROGRAMS+= \
                  tests/startservers \
                  tests/testapp \
                  tests/testhashkit \
-                 tests/testplus \
-                 tests/udptest
+                 tests/testplus
 
 noinst_LTLIBRARIES+= tests/libserver.la
 tests_libserver_la_SOURCES= tests/server.c
@@ -60,10 +59,6 @@ tests_testplus_SOURCES= tests/plus.cpp
 tests_testplus_LDADD= tests/libtest.la tests/libserver.la $(TESTS_LDADDS)
 tests_testplus_DEPENDENCIES= $(tests_testplus_LDADD)
 
-tests_udptest_SOURCES= tests/udp.c
-tests_udptest_LDADD= tests/libtest.la tests/libserver.la $(TESTS_LDADDS)
-tests_udptest_DEPENDENCIES= $(tests_udptest_LDADD)
-
 tests_atomsmasher_SOURCES= tests/atomsmasher.c
 tests_atomsmasher_LDADD= \
        clients/libgenexec.la \
diff --git a/tests/udp.c b/tests/udp.c
deleted file mode 100644 (file)
index 232d6b6..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/* LibMemcached
- * Copyright (C) 2006-2009 Brian Aker
- * All rights reserved.
- *
- * Use and distribution licensed under the BSD license.  See
- * the COPYING file in the parent directory for full text.
- *
- * Summary:
- *
- */
-
-/*
-  Sample test application.
-*/
-#include <assert.h>
-#include <libmemcached/memcached.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <time.h>
-#include "test.h"
-#include "server.h"
-
-/* Prototypes */
-test_return_t set_test(memcached_st *memc);
-
-test_return_t set_test(memcached_st *memc)
-{
-  memcached_return_t rc;
-  const char *key= "foo";
-  const char *value= "when we sanitize";
-
-  rc= memcached_set(memc, key, strlen(key),
-                    value, strlen(value),
-                    (time_t)0, (uint32_t)0);
-  test_truth(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
-
-  return TEST_SUCCESS;
-}
-
-test_st tests[] ={
-  {"set", 1, (test_callback_fn)set_test },
-  {0, 0, 0}
-};
-
-collection_st collection[] ={
-  {"udp", 0, 0, tests},
-  {0, 0, 0, 0}
-};
-
-#define SERVERS_TO_CREATE 1
-
-#include "libmemcached_world.h"
-
-void get_world(world_st *world)
-{
-  world->collections= collection;
-
-  world->create= (test_callback_create_fn)world_create;
-  world->destroy= (test_callback_fn)world_destroy;
-
-  world->test.startup= (test_callback_fn)world_test_startup;
-  world->test.flush= (test_callback_fn)world_flush;
-  world->test.pre_run= (test_callback_fn)world_pre_run;
-  world->test.post_run= (test_callback_fn)world_post_run;
-  world->test.on_error= (test_callback_error_fn)world_on_error;
-
-  world->runner= &defualt_libmemcached_runner;
-}