Home | History | Annotate | Download | only in junit
      1 # -*- mode: makefile -*-
      2 # List of junit files include in documentation.
      3 # Shared with frameworks/base.
      4 # based off libcore/Docs.mk
      5 # Exports:
      6 #   core-junit-files, junit-runner-files, junit_to_document, junit4-target-src.
      7 #   They are lists of .java files relative to external/junit/.
      8 
      9 ifndef junit4_common_include_once
     10 
     11 # List of source to build into the core-junit library
     12 #
     13 core-junit-files := \
     14 src/junit/framework/Assert.java \
     15 src/junit/framework/AssertionFailedError.java \
     16 src/junit/framework/ComparisonCompactor.java \
     17 src/junit/framework/ComparisonFailure.java \
     18 src/junit/framework/Protectable.java \
     19 src/junit/framework/Test.java \
     20 src/junit/framework/TestCase.java \
     21 src/junit/framework/TestFailure.java \
     22 src/junit/framework/TestListener.java \
     23 src/junit/framework/TestResult.java \
     24 src/junit/framework/TestSuite.java
     25 
     26 # List of source to build into the android.test.runner library
     27 #
     28 junit-runner-files := \
     29 src/junit/runner/BaseTestRunner.java \
     30 src/junit/runner/TestRunListener.java \
     31 src/junit/runner/TestSuiteLoader.java \
     32 src/junit/runner/StandardTestSuiteLoader.java \
     33 src/junit/runner/Version.java \
     34 src/junit/textui/ResultPrinter.java \
     35 src/junit/textui/TestRunner.java
     36 
     37 # List of junit javadoc source files for Android public API
     38 #
     39 junit_to_document := \
     40  $(core-junit-files) \
     41  $(junit-runner-files)
     42 
     43 # List of source to build into junit4 target jars
     44 #
     45 junit4-target-src := \
     46 $(call find-files-in-subdirs, external/junit, \
     47   "*.java", \
     48     src/org \
     49     src/junit/extensions \
     50     src/junit/runner \
     51     src/junit/textui) \
     52 src/junit/framework/ComparisonCompactor.java \
     53 src/junit/framework/JUnit4TestAdapterCache.java \
     54 src/junit/framework/JUnit4TestAdapter.java \
     55 src/junit/framework/JUnit4TestCaseFacade.java
     56 
     57 junit4_common_include_once := 1
     58 endif  # junit4_common_include_once
     59