mirror of https://gitee.com/bigwinds/arangodb
moved tests into sub-directories
This commit is contained in:
parent
51ead5b4a8
commit
c2a3f90fde
|
@ -20,7 +20,7 @@
|
||||||
/// See the License for the specific language governing permissions and
|
/// See the License for the specific language governing permissions and
|
||||||
/// limitations under the License.
|
/// limitations under the License.
|
||||||
///
|
///
|
||||||
/// Copyright holder is triAGENS GmbH, Cologne, Germany
|
/// Copyright holder is ArangoDB GmbH, Cologne, Germany
|
||||||
///
|
///
|
||||||
/// @author Max Neunhoeffer
|
/// @author Max Neunhoeffer
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1468,52 +1468,45 @@ function findTests() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
testsCases.common = _.filter(fs.list(makePathUnix("js/common/tests")),
|
testsCases.common = _.filter(fs.list(makePathUnix("js/common/tests/shell")),
|
||||||
function(p) {
|
function(p) {
|
||||||
return p.substr(0, 6) === "shell-" &&
|
return p.substr(-3) === ".js";
|
||||||
p.substr(-3) === ".js";
|
|
||||||
}).map(
|
}).map(
|
||||||
function(x) {
|
function(x) {
|
||||||
return fs.join(makePathUnix("js/common/tests"), x);
|
return fs.join(makePathUnix("js/common/tests/shell"), x);
|
||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
testsCases.server_only = _.filter(fs.list(makePathUnix("js/server/tests")),
|
testsCases.server_only = _.filter(fs.list(makePathUnix("js/server/tests/shell")),
|
||||||
function(p) {
|
function(p) {
|
||||||
return p.substr(0, 6) === "shell-" &&
|
return p.substr(-3) === ".js";
|
||||||
p.substr(-3) === ".js";
|
|
||||||
}).map(
|
}).map(
|
||||||
function(x) {
|
function(x) {
|
||||||
return fs.join(makePathUnix("js/server/tests"), x);
|
return fs.join(makePathUnix("js/server/tests/shell"), x);
|
||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
testsCases.client_only = _.filter(fs.list(makePathUnix("js/client/tests")),
|
testsCases.client_only = _.filter(fs.list(makePathUnix("js/client/tests/shell")),
|
||||||
function(p) {
|
function(p) {
|
||||||
return p.substr(0, 6) === "shell-" &&
|
return p.substr(-3) === ".js";
|
||||||
p.substr(-3) === ".js";
|
|
||||||
}).map(
|
}).map(
|
||||||
function(x) {
|
function(x) {
|
||||||
return fs.join(makePathUnix("js/client/tests"), x);
|
return fs.join(makePathUnix("js/client/tests/shell"), x);
|
||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
testsCases.server_aql = _.filter(fs.list(makePathUnix("js/server/tests")),
|
testsCases.server_aql = _.filter(fs.list(makePathUnix("js/server/tests/aql")),
|
||||||
function(p) {
|
function(p) {
|
||||||
return p.substr(0, 4) === "aql-" &&
|
return p.substr(-3) === ".js" && p.indexOf("ranges-combined") === -1;
|
||||||
p.substr(-3) === ".js" &&
|
|
||||||
p.indexOf("ranges-combined") === -1;
|
|
||||||
}).map(
|
}).map(
|
||||||
function(x) {
|
function(x) {
|
||||||
return fs.join(makePathUnix("js/server/tests"), x);
|
return fs.join(makePathUnix("js/server/tests/aql"), x);
|
||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
testsCases.server_aql_extended =
|
testsCases.server_aql_extended =
|
||||||
_.filter(fs.list(makePathUnix("js/server/tests")),
|
_.filter(fs.list(makePathUnix("js/server/tests/aql")),
|
||||||
function(p) {
|
function(p) {
|
||||||
return p.substr(0, 4) === "aql-" &&
|
return p.substr(-3) === ".js" && p.indexOf("ranges-combined") !== -1;
|
||||||
p.substr(-3) === ".js" &&
|
|
||||||
p.indexOf("ranges-combined") !== -1;
|
|
||||||
}).map(
|
}).map(
|
||||||
function(x) {
|
function(x) {
|
||||||
return fs.join(makePathUnix("js/server/tests"), x);
|
return fs.join(makePathUnix("js/server/tests/aql"), x);
|
||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
testsCases.server_aql_performance =
|
testsCases.server_aql_performance =
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
Conventions for testing framework:
|
Conventions for testing framework:
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
All files in this directory whose name starts with "shell-"
|
All files in the directory "shell" and ends with ".js" automatically
|
||||||
and ends with ".js" automatically take part in client
|
take part in client shell tests (target "shell_client").
|
||||||
shell tests (target "shell_client").
|
|
||||||
|
|
||||||
If the filename contains the string "-cluster", then it is
|
If the filename contains the string "-cluster", then it is only
|
||||||
only executed when testing in cluster mode. If the filename
|
executed when testing in cluster mode. If the filename contains the
|
||||||
contains the string "-noncluster", then it is only executed
|
string "-noncluster", then it is only executed when testing in single
|
||||||
when testing in single instance mode.
|
instance mode.
|
||||||
|
|
||||||
If the filename contains the string "-disabled", then it is
|
If the filename contains the string "-disabled", then it is not
|
||||||
not executed at all. This is for tests that cannot be run from the
|
executed at all. This is for tests that cannot be run from the
|
||||||
JavaScript test framework and have to be run from the Makefile.
|
JavaScript test framework and have to be run from the Makefile.
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
Conventions for testing framework:
|
Conventions for testing framework:
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
All files in this directory whose name starts with "shell-"
|
All files in the directory "shell" and ends with ".js" automatically
|
||||||
and ends with ".js" automatically take part in client and
|
take part in client and server shell tests (targets "shell_client" and
|
||||||
server shell tests (targets "shell_client" and "shell_server"
|
"shell_server" and "shell_server_only").
|
||||||
and "shell_server_only").
|
|
||||||
|
|
||||||
If the filename contains the string "-cluster", then it is
|
If the filename contains the string "-cluster", then it is only
|
||||||
only executed when testing in cluster mode. If the filename
|
executed when testing in cluster mode. If the filename contains the
|
||||||
contains the string "-noncluster", then it is only executed
|
string "-noncluster", then it is only executed when testing in single
|
||||||
when testing in single instance mode.
|
instance mode.
|
||||||
|
|
||||||
If the filename contains the string "-disabled", then it is
|
If the filename contains the string "-disabled", then it is not
|
||||||
not executed at all. This is for tests that cannot be run from the
|
executed at all. This is for tests that cannot be run from the
|
||||||
JavaScript test framework and have to be run from the Makefile.
|
JavaScript test framework and have to be run from the Makefile.
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
Conventions for testing framework:
|
Conventions for testing framework:
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
All files in this directory whose name starts with "shell-"
|
All files in the directory "shell" and ends with ".js" automatically
|
||||||
and ends with ".js" automatically take part in server
|
take part in server shell tests (targets "shell_server" and
|
||||||
shell tests (targets "shell_server" and "shell-server-only").
|
"shell-server-only").
|
||||||
|
|
||||||
All files in this directory whose name starts with "ahuacatl-"
|
All files in the directory "aql" and ends with ".js" automatically
|
||||||
and ends with ".js" automatically take part in server ahuacatl
|
take part in server aql tests (target "shell_server_aql"). Those,
|
||||||
tests (target "shell_server_ahuacatl"). Those, whose filename
|
whose filename contains the string "ranges-combined" are only taken if
|
||||||
contains the string "ranges-combined" are only taken if the
|
the flag "skipRanges" in the test options is set to false.
|
||||||
flag "skipRanges" in the test options is set to false.
|
|
||||||
|
|
||||||
If the filename contains the string "-cluster", then it is
|
If the filename contains the string "-cluster", then it is only
|
||||||
only executed when testing in cluster mode. If the filename
|
executed when testing in cluster mode. If the filename contains the
|
||||||
contains the string "-noncluster", then it is only executed
|
string "-noncluster", then it is only executed when testing in single
|
||||||
when testing in single instance mode.
|
instance mode.
|
||||||
|
|
||||||
If the filename contains the string "-disabled", then it is
|
If the filename contains the string "-disabled", then it is not
|
||||||
not executed at all. This is for tests that cannot be run from the
|
executed at all. This is for tests that cannot be run from the
|
||||||
JavaScript test framework and have to be run from the Makefile.
|
JavaScript test framework and have to be run from the Makefile.
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue