quickSelfTest/stx_goodies_builder_quickSelfTest.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 13:54:38 +0100
changeset 542 aa25a71be62a
parent 527 4e069da42e11
permissions -rw-r--r--
#DOCUMENTATION by cg
class: stx_goodies_builder_quickSelfTest
class definition

class: stx_goodies_builder_quickSelfTest class
added:18 methods
     1 "{ Encoding: utf8 }"
     2 
     3 "{ Package: 'stx:goodies/builder/quickSelfTest' }"
     4 
     5 "{ NameSpace: Smalltalk }"
     6 
     7 ApplicationDefinition subclass:#stx_goodies_builder_quickSelfTest
     8 	instanceVariableNames:''
     9 	classVariableNames:''
    10 	poolDictionaries:''
    11 	category:'* Projects & Packages *'
    12 !
    13 
    14 
    15 !stx_goodies_builder_quickSelfTest class methodsFor:'description'!
    16 
    17 applicationIconFileName
    18     ^ nil
    19 !
    20 
    21 excludedFromPreRequisites
    22     "obsolete; temporarily, this is still called for, but will eventually vanish.
    23     
    24      List packages which are to be explicitely excluded from the automatic constructed
    25      prerequisites lists (both). 
    26      If empty, everything that is found along the inheritance of any of
    27      my classes is considered to be a prerequisite package."
    28 
    29     ^ #(
    30     )
    31 !
    32 
    33 includedInSubProjects
    34      ^ #(
    35         (#'exept:ole'           win32)
    36         (#'exept:ole/QCOTA'     win32)
    37     )
    38 !
    39 
    40 isGUIApplication
    41     "return true, if this is a GUI application.
    42      (these need more libraries and use a different startup procedure)"
    43 
    44     ^ false
    45 !
    46 
    47 mandatoryPreRequisites
    48     "list packages which are mandatory as a prerequisite.
    49      This are packages containing superclasses of my classes and classes which
    50      are extended by myself.
    51      They are mandatory, because we need these packages as a prerequisite for loading and compiling.
    52      This method is generated automatically,
    53      by searching along the inheritance chain of all of my classes.
    54      Please take a look at the #referencedPreRequisites method as well."
    55 
    56     ^ #(
    57         #'stx:libbasic'    "ApplicationDefinition - superclass of stx_goodies_builder_quickSelfTest"
    58     )
    59 !
    60 
    61 referencedPreRequisites
    62     "list packages which are a prerequisite, because they contain
    63      classes which are referenced by my classes.
    64      These packages are NOT needed as a prerequisite for compiling or loading,
    65      however, a class from it may be referenced during execution and having it
    66      unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
    67      includes explicit checks for the package being present.
    68      This method is generated automatically,
    69      by searching all classes (and their packages) which are referenced by my classes.
    70      Please also take a look at the #mandatoryPreRequisites method"
    71 
    72     ^ #(
    73         #'stx:goodies/regression'    "RegressionTests::IntegerTest - referenced by RunUnitTestsStart class>>main:"
    74         #'stx:goodies/sunit'    "TestResultReporter - referenced by RunUnitTests class>>runWithCompiledUnitTestClasses:arguments:debug:"
    75         #'stx:goodies/regex'    "RegressionTest::RxTests"
    76         #'stx:libcomp'    "ParserFlags - referenced by RunUnitTests class>>runWithCompiledUnitTestClasses:arguments:debug:"
    77         #'exept:libcrypt'                       "referred by RegressionTests::CryptTests"
    78         #'stx:goodies/webServer'       "referred by RegressionTests::HTMLParserTests"  
    79         #'stx:goodies/webServer/htmlTree'       "referred by RegressionTests::HTMLParserTests"  
    80         #'stx:goodies/communication'    "RegressionTests::IntegerTest - referenced by RunUnitTestsStart class>>main:"
    81     )
    82 
    83     "Modified: / 29-05-2018 / 16:08:21 / sr"
    84 !
    85 
    86 subProjects
    87     "list packages which are known as subprojects.
    88      This method is generated automatically; however, when generating automatically,
    89      packages are only added - never removed, unless listed in #excludedFromSubProjects."
    90 
    91     ^ #(
    92 )
    93 ! !
    94 
    95 !stx_goodies_builder_quickSelfTest class methodsFor:'description - contents'!
    96 
    97 classNamesAndAttributes
    98     "lists the classes which are to be included in the project.
    99      Each entry in the list may be: a single class-name (symbol),
   100      or an array-literal consisting of class name and attributes.
   101      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
   102 
   103     ^ #(
   104         "<className> or (<className> attributes...) in load order"
   105         RunUnitTests
   106         RunUnitTestsStart
   107         #'stx_goodies_builder_quickSelfTest'
   108     )
   109 !
   110 
   111 extensionMethodNames
   112     "lists the extension methods which are to be included in the project.
   113      Entries are 2-element array literals, consisting of class-name and selector.
   114      A correponding method with real names must be present in my concrete subclasses
   115      if it has extensions."
   116 
   117     ^ #(
   118     )
   119 ! !
   120 
   121 !stx_goodies_builder_quickSelfTest class methodsFor:'description - project information'!
   122 
   123 companyName
   124     "Returns a company string which will appear in <lib>.rc.
   125      Under win32, this is placed into the dll's file-info.
   126      Other systems may put it elsewhere, or ignore it."
   127 
   128     ^ 'Claus Gittinger & eXept Software AG'
   129 !
   130 
   131 description
   132     "Returns a description string which will appear in nt.def / bc.def"
   133 
   134     ^ 'Smalltalk/X Application'
   135 !
   136 
   137 legalCopyright
   138     "Returns a copyright string which will appear in <lib>.rc.
   139      Under win32, this is placed into the dll's file-info.
   140      Other systems may put it elsewhere, or ignore it."
   141 
   142     ^ 'Copyright Claus Gittinger 2017\nCopyright eXept Software AG 2017'
   143 !
   144 
   145 productInstallDirBaseName
   146     "Returns a default installDir which will appear in <app>.nsi.
   147      This is usually not the one you want to keep"
   148 
   149     ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
   150 !
   151 
   152 productName
   153     " we get this error, if the concrete class has not yet redefined"
   154 
   155     ^ 'QuickSelfTestSmalltalk/X'
   156 
   157     "Modified: / 28-03-2019 / 13:54:03 / Claus Gittinger"
   158 ! !
   159 
   160 !stx_goodies_builder_quickSelfTest class methodsFor:'description - startup'!
   161 
   162 startupClassName
   163     "the name of the class which starts the show in its <startupSelector> method.
   164      Usually, the name of a subclass of StandAloneStartup."
   165 
   166     ^ 'RunUnitTestsStart'
   167 !
   168 
   169 startupSelector
   170     "the message that is sent to the startupClass to start the show"
   171 
   172     ^ #'start'        
   173 ! !
   174 
   175 !stx_goodies_builder_quickSelfTest class methodsFor:'documentation'!
   176 
   177 version
   178     ^ '$Header$'
   179 !
   180 
   181 version_CVS
   182     ^ '$Header$'
   183 ! !
   184