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
32e57a78
Commit
32e57a78
authored
Dec 18, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shorten the tests. addresses #198
git-svn-id:
file:///svn/tokudb@1199
c7de825b-a66e-492c-adef-691d508d4ae1
parent
9bd83f9f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
9 deletions
+33
-9
src/tests/test.h
src/tests/test.h
+1
-1
src/tests/test_dup_search.c
src/tests/test_dup_search.c
+7
-3
src/tests/test_dupsort_get.c
src/tests/test_dupsort_get.c
+5
-1
src/tests/test_dupsort_get_both.c
src/tests/test_dupsort_get_both.c
+5
-1
src/tests/test_dupsort_get_both_range.c
src/tests/test_dupsort_get_both_range.c
+5
-1
src/tests/test_dupsort_set.c
src/tests/test_dupsort_set.c
+5
-1
src/tests/test_dupsort_set_range.c
src/tests/test_dupsort_set_range.c
+5
-1
No files found.
src/tests/test.h
View file @
32e57a78
...
...
@@ -11,7 +11,7 @@ void parse_args (int argc, const char *argv[]) {
while
(
argc
>
1
)
{
int
resultcode
=
0
;
if
(
strcmp
(
argv
[
1
],
"-v"
)
==
0
)
{
verbose
=
1
;
verbose
++
;
}
else
if
(
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
{
do_usage:
fprintf
(
stderr
,
"Usage:
\n
%s [-v|-h]
\n
"
,
argv0
);
...
...
src/tests/test_dup_search.c
View file @
32e57a78
...
...
@@ -332,11 +332,15 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
/* dup search */
#if USE_TDB
printf
(
"%s:%d:WARNING:tokudb does not support DB_DUP
\n
"
,
__FILE__
,
__LINE__
);
#else
for
(
i
=
1
;
i
<=
(
1
<<
16
)
;
i
*=
2
)
{
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_ici_search
(
i
,
DB_DUP
);
test_icdi_search
(
i
,
DB_DUP
);
test_i0i1ci0_search
(
i
,
DB_DUP
);
...
...
@@ -344,14 +348,14 @@ int main(int argc, const char *argv[]) {
#endif
/* dupsort search */
for
(
i
=
1
;
i
<=
(
1
<<
16
)
;
i
*=
2
)
{
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_ici_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
test_icdi_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
test_i0i1ci0_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
/* insert data in descending order */
for
(
i
=
1
;
i
<=
(
1
<<
16
)
;
i
*=
2
)
{
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_reverse_search
(
i
,
0
);
#if USE_BDB
test_reverse_search
(
i
,
DB_DUP
);
...
...
src/tests/test_dupsort_get.c
View file @
32e57a78
...
...
@@ -156,7 +156,11 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
for
(
i
=
1
;
i
<
65537
;
i
*=
2
)
{
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_dupsort_get
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
return
0
;
...
...
src/tests/test_dupsort_get_both.c
View file @
32e57a78
...
...
@@ -165,7 +165,11 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
for
(
i
=
1
;
i
<
65537
;
i
*=
2
)
{
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_icdi_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
return
0
;
...
...
src/tests/test_dupsort_get_both_range.c
View file @
32e57a78
...
...
@@ -174,7 +174,11 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
for
(
i
=
1
;
i
<
65537
;
i
*=
2
)
{
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_icdi_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
return
0
;
...
...
src/tests/test_dupsort_set.c
View file @
32e57a78
...
...
@@ -165,7 +165,11 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
for
(
i
=
1
;
i
<
65537
;
i
*=
2
)
{
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_icdi_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
return
0
;
...
...
src/tests/test_dupsort_set_range.c
View file @
32e57a78
...
...
@@ -177,7 +177,11 @@ int main(int argc, const char *argv[]) {
system
(
"rm -rf "
DIR
);
mkdir
(
DIR
,
0777
);
for
(
i
=
1
;
i
<
65537
;
i
*=
2
)
{
int
limit
=
1
<<
13
;
if
(
verbose
>
1
)
limit
=
1
<<
16
;
for
(
i
=
1
;
i
<=
limit
;
i
*=
2
)
{
test_icdi_search
(
i
,
DB_DUP
+
DB_DUPSORT
);
}
return
0
;
...
...
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