Commit 61af60fe authored by Rich Prohaska's avatar Rich Prohaska

port to linux fedora 6 i386

git-svn-id: file:///svn/tokudb@320 c7de825b-a66e-492c-adef-691d508d4ae1
parent f3e09918
CFLAGS = --pedantic -std=c99 -W -Wall -Werror -Wno-unused -g -fPIC -O CFLAGS = -std=gnu89 -W -Wall -Wno-unused -g -fPIC -O
LFLAGS = -l CPPFLAGS = -I../include -I../newbrt LFLAGS = -l CPPFLAGS = -I../include -I../newbrt
#cc $(CPPFLAGS) $(DBBINS) -shared -o libdb.so $(CFLAGS) #cc $(CPPFLAGS) $(DBBINS) -shared -o libdb.so $(CFLAGS)
...@@ -20,7 +20,7 @@ test: test_gen ...@@ -20,7 +20,7 @@ test: test_gen
test_gen: test_gen_hex test_gen: test_gen_hex
SHELL=/bin/bash # SHELL=/bin/bash
BDB_LOAD=/usr/local/BerkeleyDB.4.1/bin/db_load BDB_LOAD=/usr/local/BerkeleyDB.4.1/bin/db_load
BDB_DUMP=/usr/local/BerkeleyDB.4.1/bin/db_dump BDB_DUMP=/usr/local/BerkeleyDB.4.1/bin/db_dump
...@@ -31,10 +31,10 @@ test_gen_hex: ...@@ -31,10 +31,10 @@ test_gen_hex:
#Generating 10,000 keys. 0 to 1024 bytes (not including identifier overhead) #Generating 10,000 keys. 0 to 1024 bytes (not including identifier overhead)
echo "Generating text input > db > text" echo "Generating text input > db > text"
rm -f test_gen_1 rm -f test_gen_1
./ydb_gen $(TEST_GEN_HEX_FLAGS) -o >($(BDB_LOAD) test_gen_1) ./ydb_gen $(TEST_GEN_HEX_FLAGS) | $(BDB_LOAD) test_gen_1
$(BDB_DUMP) test_gen_1 > 1 $(BDB_DUMP) test_gen_1 > 1
./ydb_gen -Hf > 2 ./ydb_gen -Hf > 2
./ydb_gen $(TEST_GEN_HEX_FLAGS) -d g -s h | tr "h" "\n" | sort -t g -k 1,1 | tr -d "\n" | tr "g" "\n" >> 2 ./ydb_gen -hf $(TEST_GEN_HEX_FLAGS) -d g -s h | tr "h" "\n" | sort -t g -k 1,1 | tr -d "\n" | tr "g" "\n" >> 2
./ydb_gen -Fh >> 2 ./ydb_gen -Fh >> 2
diff -q 1 2 diff -q 1 2
if ! diff -q 1 2; then echo Files different!; exit 1; fi if ! diff -q 1 2; then echo Files different!; exit 1; fi
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>
extern char* optarg; extern char* optarg;
extern int optind; extern int optind;
...@@ -85,7 +86,6 @@ int main (int argc, char *argv[]) { ...@@ -85,7 +86,6 @@ int main (int argc, char *argv[]) {
break; break;
} }
case ('o'): { case ('o'): {
extern int errno;
if (freopen(optarg, "w", stdout) == NULL) if (freopen(optarg, "w", stdout) == NULL)
{ {
fprintf( fprintf(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment