tests/ctu_ircompiler_tests.st
changeset 44 840c68a91cdd
equal deleted inserted replaced
43:c8afb8e4c3cc 44:840c68a91cdd
       
     1 "{ Package: 'ctu:ircompiler/tests' }"
       
     2 
       
     3 LibraryDefinition subclass:#ctu_ircompiler_tests
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'* Projects & Packages *'
       
     8 !
       
     9 
       
    10 
       
    11 !ctu_ircompiler_tests class methodsFor:'description'!
       
    12 
       
    13 excludedFromPreRequisites
       
    14     "list packages which are to be explicitely excluded from the automatic constructed
       
    15      prerequisites list. If empty, everything that is found along the inheritance of any of
       
    16      my classes is considered to be a prerequisite package."
       
    17 
       
    18     ^ #(
       
    19     )
       
    20 !
       
    21 
       
    22 mandatoryPreRequisites
       
    23     "list packages which are mandatory as a prerequisite.
       
    24      This are packages containing superclasses of my classes and classes which
       
    25      are extended by myself.
       
    26      They are mandatory, because we need these packages as a prerequisite for loading and compiling.
       
    27      This method is generated automatically,
       
    28      by searching along the inheritance chain of all of my classes."
       
    29 
       
    30     ^ #(
       
    31         #'stx:goodies/sunit'    "TestAsserter - superclass of IRBuilderTest"
       
    32         #'stx:libbasic'    "LibraryDefinition - superclass of ctu_ircompiler_tests"
       
    33     )
       
    34 !
       
    35 
       
    36 referencedPreRequisites
       
    37     "list packages which are a prerequisite, because they contain
       
    38      classes which are referenced by my classes.
       
    39      We do not need these packages as a prerequisite for loading or compiling.
       
    40      This method is generated automatically,
       
    41      by searching all classes (and their packages) which are referenced by my classes."
       
    42 
       
    43     ^ #(
       
    44         #'ctu:ircompiler'    "IRBuilder - referenced by IRBuilderTest>>testBlock_blockNesting_1"
       
    45     )
       
    46 !
       
    47 
       
    48 subProjects
       
    49     "list packages which are known as subprojects.
       
    50      The generated makefile will enter those and make there as well.
       
    51      However: they are not forced to be loaded when a package is loaded;
       
    52      for those, redefine requiredPrerequisites."
       
    53 
       
    54     ^ #(
       
    55     )
       
    56 ! !
       
    57 
       
    58 !ctu_ircompiler_tests class methodsFor:'description - contents'!
       
    59 
       
    60 classNamesAndAttributes
       
    61     "lists the classes which are to be included in the project.
       
    62      Each entry in the list may be: a single class-name (symbol),
       
    63      or an array-literal consisting of class name and attributes.
       
    64      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
       
    65 
       
    66     ^ #(
       
    67         "<className> or (<className> attributes...) in load order"
       
    68         IRBuilderTest
       
    69         IRTransformTest
       
    70         #'ctu_ircompiler_tests'
       
    71     )
       
    72 !
       
    73 
       
    74 extensionMethodNames
       
    75     "list class/selector pairs of extensions.
       
    76      A correponding method with real names must be present in my concrete subclasses"
       
    77 
       
    78     ^ #(
       
    79     )
       
    80 ! !
       
    81 
       
    82 !ctu_ircompiler_tests class methodsFor:'description - project information'!
       
    83 
       
    84 companyName
       
    85     "Returns a company string which will appear in <lib>.rc.
       
    86      Under win32, this is placed into the dlls file-info"
       
    87 
       
    88     ^ 'My Company'
       
    89 !
       
    90 
       
    91 description
       
    92     "Returns a description string which will appear in nt.def / bc.def"
       
    93 
       
    94     ^ 'Class Library'
       
    95 !
       
    96 
       
    97 legalCopyright
       
    98     "Returns a copyright string which will appear in <lib>.rc.
       
    99      Under win32, this is placed into the dlls file-info"
       
   100 
       
   101     ^ 'My CopyRight or CopyLeft'
       
   102 !
       
   103 
       
   104 productName
       
   105     "Returns a product name which will appear in <lib>.rc.
       
   106      Under win32, this is placed into the dlls file-info.
       
   107      This method is usually redefined in a concrete application definition"
       
   108 
       
   109     ^ 'LibraryName'
       
   110 ! !
       
   111 
       
   112 !ctu_ircompiler_tests class methodsFor:'documentation'!
       
   113 
       
   114 version_HG
       
   115     ^ '$Changeset: <not expanded> $'
       
   116 ! !
       
   117