blob: 9a16ba66384c61e098130fa607f6bf5c1f1eda4e [file] [log] [blame]
java_library(
name = 'testutil',
srcs = glob(['*.java'], excludes=['*Test.java']),
deps = [
'//src/com/facebook/buck/cli:config',
'//src/com/facebook/buck/cxx:platform',
'//src/com/facebook/buck/cxx:rules',
'//src/com/facebook/buck/io:io',
'//src/com/facebook/buck/model:model',
'//src/com/facebook/buck/rules:build_rule',
'//test/com/facebook/buck/cli:FakeBuckConfig',
'//test/com/facebook/buck/rules:testutil',
'//test/com/facebook/buck/testutil:testutil',
'//third-party/java/guava:guava',
'//third-party/java/jsr:jsr305',
],
)
java_test(
name = 'cpp',
srcs = glob(['*Test.java']),
source_under_test = [
'//src/com/facebook/buck/cxx:rules',
],
deps = [
':testutil',
'//src/com/facebook/buck/android:packageable',
'//src/com/facebook/buck/cli:config',
'//src/com/facebook/buck/cxx:platform',
'//src/com/facebook/buck/cxx:rules',
'//src/com/facebook/buck/event:event',
'//src/com/facebook/buck/graph:graph',
'//src/com/facebook/buck/io:io',
'//src/com/facebook/buck/java:nativelinkable',
'//src/com/facebook/buck/model:model',
'//src/com/facebook/buck/parser:rule_pattern',
'//src/com/facebook/buck/python:rules',
'//src/com/facebook/buck/rules:build_rule',
'//src/com/facebook/buck/rules:rules',
'//src/com/facebook/buck/shell:steps',
'//src/com/facebook/buck/shell:rules',
'//src/com/facebook/buck/step:step',
'//src/com/facebook/buck/step/fs:fs',
'//src/com/facebook/buck/test/selectors:selectors',
'//src/com/facebook/buck/test:test',
'//src/com/facebook/buck/util:constants',
'//src/com/facebook/buck/util:exceptions',
'//src/com/facebook/buck/util:io',
'//src/com/facebook/buck/util:util',
'//src/com/facebook/buck/util/environment:platform',
'//test/com/facebook/buck/android:testutil',
'//test/com/facebook/buck/cli:FakeBuckConfig',
'//test/com/facebook/buck/event:testutil',
'//test/com/facebook/buck/model:BuildTargetFactory',
'//test/com/facebook/buck/rules:testutil',
'//test/com/facebook/buck/shell:testutil',
'//test/com/facebook/buck/step:testutil',
'//test/com/facebook/buck/testutil:testutil',
'//test/com/facebook/buck/testutil/integration:integration',
'//third-party/java/commons-compress:commons-compress',
'//third-party/java/easymock:easymock',
'//third-party/java/guava:guava',
'//third-party/java/jackson:jackson',
'//third-party/java/junit:junit',
'//third-party/java/hamcrest:hamcrest-core',
'//third-party/java/hamcrest:hamcrest-library',
],
)