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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ed99f914
Commit
ed99f914
authored
Jan 03, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/wax/mysql/mysql-4.1
into mysql.com:/home/wax/mysql/mysql-4.1test2
parents
1b2b19ad
8bf7b342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
19 deletions
+72
-19
.bzrignore
.bzrignore
+54
-0
mysql-test/mysql_test_run_new.c
mysql-test/mysql_test_run_new.c
+18
-19
No files found.
.bzrignore
View file @
ed99f914
...
...
@@ -948,3 +948,57 @@ client/mysqladmin.c
mysql-4.1.8-win-src.zip
ndb/include/ndb_version.h
ndb/include/ndb_global.h
mysql-test/mysql-test-run.log
mysql-test/r/alter_table.err
mysql-test/r/archive.err
mysql-test/r/bdb-alter-table-1.err
mysql-test/r/bdb-alter-table-2.err
mysql-test/r/bdb-crash.err
mysql-test/r/bdb-deadlock.err
mysql-test/r/bdb.err
mysql-test/r/bdb_cache.err
mysql-test/r/client_test.err
mysql-test/r/csv.err
mysql-test/r/ctype_ucs.err
mysql-test/r/derived.err
mysql-test/r/exampledb.err
mysql-test/r/func_encrypt.err
mysql-test/r/isam.err
mysql-test/r/lowercase_table2.err
mysql-test/r/multi_update.err
mysql-test/r/mysql_protocols.err
mysql-test/r/mysqlbinlog.err
mysql-test/r/mysqlbinlog2.err
mysql-test/r/mysqldump.err
mysql-test/r/mysqltest.err
mysql-test/r/ndb_alter_table.err
mysql-test/r/ndb_autodiscover.err
mysql-test/r/ndb_autodiscover2.err
mysql-test/r/ndb_basic.err
mysql-test/r/ndb_blob.err
mysql-test/r/ndb_cache.err
mysql-test/r/ndb_charset.err
mysql-test/r/ndb_index.err
mysql-test/r/ndb_index_ordered.err
mysql-test/r/ndb_index_unique.err
mysql-test/r/ndb_insert.err
mysql-test/r/ndb_limit.err
mysql-test/r/ndb_lock.err
mysql-test/r/ndb_minmax.err
mysql-test/r/ndb_replace.err
mysql-test/r/ndb_subquery.err
mysql-test/r/ndb_transaction.err
mysql-test/r/ndb_truncate.err
mysql-test/r/ndb_types.err
mysql-test/r/ndb_update.err
mysql-test/r/openssl_1.err
mysql-test/r/ps_1general.err
mysql-test/r/ps_6bdb.err
mysql-test/r/ps_7ndb.err
mysql-test/r/query_cache.err
mysql-test/r/query_cache_merge.err
mysql-test/r/raid.err
mysql-test/r/repair.err
mysql-test/r/replace.err
mysql-test/r/rpl000001.err
mysql-test/r/rpl000015.err
mysql-test/mysql_test_run_new.c
View file @
ed99f914
...
...
@@ -89,15 +89,15 @@ static char master_socket[FN_REFLEN]= "./var/tmp/master.sock";
static
char
slave_socket
[
FN_REFLEN
]
=
"./var/tmp/slave.sock"
;
#endif
#define MAX_COUNT_TESTES 1024
/* comma delimited list of tests to skip or empty string */
#ifndef __WIN__
static
char
skip_test
[
FN_REFLEN
]
=
" lowercase_table3 , system_mysql_db_fix "
;
#define _stricmp strcasecmp
#else
/*
The most ignore testes contain the calls of system command
*/
#define MAX_COUNT_TESTES 1024
/*
lowercase_table3 is disabled by Gerg
system_mysql_db_fix is disabled by Gerg
sp contains a command system
...
...
@@ -1437,12 +1437,11 @@ void setup(char *file __attribute__((unused)))
/*
Compare names of testes for right order
*/
#ifdef __WIN__
int
compare
(
const
void
*
arg1
,
const
void
*
arg2
)
{
return
_stricmp
(
*
(
char
**
)
arg1
,
*
(
char
**
)
arg2
);
}
#endif
/******************************************************************************
...
...
@@ -1454,6 +1453,10 @@ int compare( const void *arg1, const void *arg2 )
int
main
(
int
argc
,
char
**
argv
)
{
int
is_ignore_list
=
0
;
char
**
names
=
0
;
char
**
testes
=
0
;
int
name_index
;
int
index
;
/* setup */
setup
(
argv
[
0
]);
...
...
@@ -1517,6 +1520,9 @@ int main(int argc, char **argv)
else
{
/* run all tests */
names
=
malloc
(
MAX_COUNT_TESTES
*
4
);
testes
=
names
;
name_index
=
0
;
#ifndef __WIN__
struct
dirent
*
entry
;
DIR
*
parent
;
...
...
@@ -1536,8 +1542,11 @@ int main(int argc, char **argv)
{
/* null terminate at the suffix */
*
(
test
+
position
-
1
)
=
'\0'
;
/* run test */
run_test
(
test
);
/* insert test */
*
names
=
malloc
(
FN_REFLEN
);
strcpy
(
*
names
,
test
);
names
++
;
name_index
++
;
}
}
closedir
(
parent
);
...
...
@@ -1549,10 +1558,6 @@ int main(int argc, char **argv)
char
mask
[
FN_REFLEN
];
char
*
p
;
int
position
;
char
**
names
=
0
;
char
**
testes
=
0
;
int
name_index
;
int
index
;
/* single test */
single_test
=
FALSE
;
...
...
@@ -1564,9 +1569,6 @@ int main(int argc, char **argv)
die
(
"Unable to open tests directory."
);
}
names
=
malloc
(
MAX_COUNT_TESTES
*
4
);
testes
=
names
;
name_index
=
0
;
do
{
...
...
@@ -1577,10 +1579,8 @@ int main(int argc, char **argv)
/* find the test suffix */
if
((
position
=
strinstr
(
test
,
TEST_SUFFIX
))
!=
0
)
{
p
=
test
+
position
-
1
;
/* null terminate at the suffix */
*
p
=
0
;
*
(
test
+
position
-
1
)
=
'\0'
;
/* insert test */
*
names
=
malloc
(
FN_REFLEN
);
strcpy
(
*
names
,
test
);
...
...
@@ -1591,7 +1591,7 @@ int main(int argc, char **argv)
}
while
(
_findnext
(
handle
,
&
dir
)
==
0
);
_findclose
(
handle
);
#endif
qsort
(
(
void
*
)
testes
,
name_index
,
sizeof
(
char
*
),
compare
);
for
(
index
=
0
;
index
<=
name_index
;
index
++
)
...
...
@@ -1601,7 +1601,6 @@ int main(int argc, char **argv)
}
free
(
testes
);
#endif
}
/* stop server */
...
...
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