Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
61af60fe
Commit
61af60fe
authored
Sep 18, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port to linux fedora 6 i386
git-svn-id:
file:///svn/tokudb@320
c7de825b-a66e-492c-adef-691d508d4ae1
parent
f3e09918
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
utils/Makefile
utils/Makefile
+4
-4
utils/ydb_gen.c
utils/ydb_gen.c
+1
-1
No files found.
utils/Makefile
View file @
61af60fe
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
...
...
utils/ydb_gen.c
View file @
61af60fe
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment