gerrit/gerrit-acceptance-tests/BUCK
Dave Borowitz 88da34f7fc Support acceptance tests running with different configs
Store a library of configs to be used as the base gerrit.config during
tests. Specify at a per-acceptance_tests-rule level which of these
configs to generate rules for, passing in the config file via a system
property in a new rule named based on the config file name.

Include two additional labels for each test, "acceptance_config" and
"config_<name>", for including and excluding specific configs or all
non-default configs.

This preserves the behavior of running a single test class per VM, at
the cost of making it harder to run tests with nonstandard configs
from Eclipse. For that, developers can create custom run
configurations with different VM args passing the appropriate -D.

Change-Id: If29bcba26ac271479a63da836008b0f6608a1b6c
2014-01-16 15:39:28 -08:00

54 lines
1.2 KiB
Python

java_library(
name = 'lib',
srcs = glob(['src/test/java/com/google/gerrit/acceptance/*.java']),
exported_deps = [
'//gerrit-common:annotations',
'//gerrit-common:server',
'//gerrit-extension-api:api',
'//gerrit-launcher:launcher',
'//gerrit-lucene:lucene',
'//gerrit-httpd:httpd',
'//gerrit-pgm:init-base',
'//gerrit-pgm:pgm',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//gerrit-server:testutil',
'//gerrit-sshd:sshd',
'//lib:args4j',
'//lib:gson',
'//lib:guava',
'//lib:gwtjsonrpc',
'//lib:gwtorm',
'//lib:h2',
'//lib:jsch',
'//lib:junit',
'//lib:servlet-api-3_1',
'//lib/commons:httpclient',
'//lib/commons:httpcore',
'//lib/log:impl_log4j',
'//lib/log:log4j',
'//lib/guice:guice',
'//lib/guice:guice-assistedinject',
'//lib/jgit:jgit',
'//lib/jgit:junit',
'//lib/mina:sshd',
],
visibility = [
'//tools/eclipse:classpath',
'//gerrit-acceptance-tests/...',
],
)
java_library(
name = 'configs',
resources = glob([
'src/test/resources/com/google/gerrit/acceptance/config/*.config',
]),
visibility = [
'//tools/eclipse:classpath',
'//gerrit-acceptance-tests/...',
],
)