-SUBDIRS=api gils malxml config usmarc dmoz xpath sort xelm cddb \
+SUBDIRS=codec api gils malxml config usmarc dmoz xpath sort xelm cddb \
rusmarc zsh marcxml charmap
--- /dev/null
+# $Id: Makefile.am,v 1.1 2004-06-09 12:13:03 adam Exp $
+
+TESTS = tstcodec
+
+tstcodec_SOURCES = tstcodec.c
+
+noinst_PROGRAMS = tstcodec
+
+AM_CPPFLAGS = -I$(top_srcdir)/include $(YAZINC)
+
+LDADD = ../../index/libzebra.a $(YAZLIB) $(TCL_LIB)
--- /dev/null
+#include "../index/index.h"
+
+
+void tst_encode(int num)
+{
+ struct it_key key;
+ int i;
+ void *codec_handle =iscz1_code_start(ISAMC_ENCODE);
+
+ for (i = 0; i<num; i++)
+ {
+ char dst_buf[200];
+ char *dst = dst_buf;
+ char *src = (char*) &key;
+
+ key.sysno = num;
+ key.seqno = 1;
+ iscz1_code_item (ISAMC_ENCODE, codec_handle, &dst, &src);
+ }
+ iscz1_code_stop(ISAMC_ENCODE, codec_handle);
+}
+
+int main(int argc, char **argv)
+{
+ tst_encode(1000000);
+ exit(0);
+}
+