Skip to contentSkip to conversation

tabled: new test for x-amz-meta-* HTTP headers

PATCH New Jeff Garzik 1 participant 1 message Mar 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tabled: new test for x-amz-meta-* HTTP headers

commit 2fdf78e7753a1b717267e84370b9079b8ecf9e1a

Author: Jeff Garzik <[email protected]>
Date:   Sun Mar 7 17:17:18 2010 -0500

[test] add test for storage/retrieval of x-amz-meta-* HTTP headers

Also,
- move now-common code into a new internal libtest.a library.
- update hdr-content-type.c copyright header to 2010

test/.gitignore +4 -0
index 26ba541..1cc58b4 100644
@@ -1,9 +1,13 @@
 
 .libs
+
+libtest.a
+
 basic-bucket
 basic-object
 it-works
 large-object
 wait-for-listen
 hdr-content-type
+hdr-meta
 
test/Makefile.am +6 -1
index 62b279e..3d751bc 100644
@@ -25,19 +25,24 @@ TESTS =				\
 	basic-object		\
 	large-object		\
 	hdr-content-type	\
+	hdr-meta		\
 	stop-daemon		\
 	clean-db
 
 check_PROGRAMS		= basic-bucket basic-object it-works large-object \
-			  hdr-content-type wait-for-listen
+			  hdr-content-type hdr-meta wait-for-listen
+
+noinst_LIBRARIES	= libtest.a
 
 TESTLDADD		= ../lib/libhttpstor.la	\
 			  ../lib/libhttputil.a	\
+			  libtest.a \
 			  @LIBCURL@ @GLIB_LIBS@ @CRYPTO_LIBS@ @XML_LIBS@
 basic_bucket_LDADD	= $(TESTLDADD)
 basic_object_LDADD	= $(TESTLDADD)
 large_object_LDADD	= $(TESTLDADD)
 hdr_content_type_LDADD	= $(TESTLDADD)
+hdr_meta_LDADD		= $(TESTLDADD)
 it_works_LDADD		= $(TESTLDADD)
 
 wait_for_listen_LDADD	= ../lib/libhttputil.a
test/hdr-content-type.c +2 -43

68 lines not on this page · raw message

test/hdr-meta.c new file +96 -0

96 lines not on this page · raw message

test/libtest.c new file +62 -0

62 lines not on this page · raw message

test/test.h +2 -0
index e627a0c..50b7e36 100644
@@ -38,4 +38,6 @@
 		}				\
 	} while (0)
 
+extern bool find_our_hdr(const char *hdr, const void *data, size_t data_len);
+
 #endif /* __TABLED_TEST_H__ */