stx_goodies_sunit.st
author vrany
Mon, 16 Jan 2012 21:47:36 +0100
changeset 440 4a544fda4bc8
parent 427 24632c550c74
child 457 ae823abf01c0
permissions -rw-r--r--
changed: #classNamesAndAttributes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/sunit' }"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     2
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     3
LibraryDefinition subclass:#stx_goodies_sunit
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
173
6fe46bec2948 Category change
Stefan Vogel <sv@exept.de>
parents: 172
diff changeset
     7
	category:'* Projects & Packages *'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     9
245
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    10
!stx_goodies_sunit class methodsFor:'documentation'!
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    11
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    12
extensionsVersion_CVS
440
4a544fda4bc8 changed: #classNamesAndAttributes
vrany
parents: 427
diff changeset
    13
    ^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.32 2012-01-16 20:47:36 vrany Exp $'
245
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    14
! !
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    15
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    16
!stx_goodies_sunit class methodsFor:'description'!
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    17
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    18
excludedFromPreRequisites
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    19
    "list all packages which should be ignored in the automatic
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    20
     preRequisites scan. See #preRequisites for more."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    21
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    22
    ^ #(
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    23
    )
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    24
!
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    25
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    26
preRequisites
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    27
    "list all required packages.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    28
     This list can be maintained manually or (better) generated and
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    29
     updated by scanning the superclass hierarchies and looking for
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    30
     global variable accesses. (the browser has a menu function for that)
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    31
     Howevery, often too much is found, and you may want to explicitely
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    32
     exclude individual packages in the #excludedFromPrerequisites method."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    33
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    34
    ^ #(
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    35
	#'stx:libbasic'    "Object - superclass of SimpleTestResourceB1 "
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    36
	#'stx:libview'    "Color - referenced by TestRunner>>displayNormalColorInProgress "
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    37
	#'stx:libview2'    "Model - superclass of TestRunner "
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    38
    )
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    39
! !
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    40
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
!stx_goodies_sunit class methodsFor:'description - contents'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
classNamesAndAttributes
213
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
    44
    "lists the classes which are to be included in the project.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
    45
     Each entry in the list may be: a single class-name (symbol),
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
    46
     or an array-literal consisting of class name and attributes.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
    47
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
    48
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
    ^ #(
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    50
        "<className> or (<className> attributes...) in load order"
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    51
        (ExampleTestResource autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    52
        SUnitDelay
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    53
        SUnitNameResolver
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    54
        TestAsserter
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    55
        TestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    56
        TestResult
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    57
        (TestResultReporter autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    58
        TestRunner
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    59
        TestSuite
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    60
        (TestSuitesCompoundScriptTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    61
        (TestSuitesHierarchyScriptTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    62
        (TestSuitesScriptTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    63
        TestSuitesScripter
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    64
        #'stx_goodies_sunit'
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    65
        ResumableTestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    66
        TestCase
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    67
        TestCaseWithArguments
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    68
        TestResource
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    69
        (ExampleSetTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    70
        (ResumableTestFailureTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    71
        (SUnitTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    72
        (SimpleTestResource autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    73
        (SimpleTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    74
        (FailingTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    75
        (ManyTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    76
        (SimpleTestResourceA autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    77
        (SimpleTestResourceA1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    78
        (SimpleTestResourceA2 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    79
        (SimpleTestResourceB autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    80
        (SimpleTestResourceB1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    81
        (SimpleTestResourceCircular autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    82
        (SimpleTestResourceCircular1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
    83
        (CircularTestResourceTestCase autoload)
349
1cd3a8910934 Refactored to use TestResultOutcome
vrany
parents: 343
diff changeset
    84
        TestCaseOutcome
368
4ab674c862a7 Regenerate build files
vrany
parents: 367
diff changeset
    85
        TestResultStX
408
vrany
parents: 404
diff changeset
    86
        TestResultForRunWithDebug
440
4a544fda4bc8 changed: #classNamesAndAttributes
vrany
parents: 427
diff changeset
    87
        (SUnitTests2 autoload)
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    88
    )
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    89
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    90
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    91
extensionMethodNames
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    92
    "lists the extension methods which are to be included in the project.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    93
     Entries are 2-element array literals, consisting of class-name and selector."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    94
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    95
    ^ #(
427
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
    96
        Block sunitEnsure:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
    97
        Block sunitOn:do:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
    98
        GenericException sunitAnnounce:toResult:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
    99
        GenericException sunitExitWith:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   100
        Object sunitAddDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   101
        Object sunitChanged:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   102
        Object sunitRemoveDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   103
        String sunitAsSymbol
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   104
        String sunitMatch:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   105
        String sunitSubStrings
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   106
        Symbol sunitAsClass
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   107
        'GenericException class' sunitSignalWith:
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   108
    )
427
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   109
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   110
    "Modified: / 21-08-2011 / 17:27:56 / cg"
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   111
! !
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   112
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   113
!stx_goodies_sunit class methodsFor:'description - project information'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   114
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   115
companyName
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   116
    "Return a companyname which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   118
    ^ 'eXept Software AG'
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   119
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   120
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   121
description
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   122
    "Return a description string which will appear in nt.def / bc.def"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   123
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   124
    ^ 'Smalltalk/X Class library'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   125
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   126
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   127
legalCopyright
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   128
    "Return a copyright string which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   129
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   130
    ^ 'Copyright eXept Software AG 1998-2007'
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   131
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   132
    "Modified: / 08-11-2007 / 16:57:33 / cg"
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   133
! !
177
f46c94410480 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   134
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   135
!stx_goodies_sunit class methodsFor:'description - svn'!
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   136
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   137
svnRevisionNr
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   138
    "Return a SVN revision number of myself.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   139
     This number is updated after a commit"
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   140
349
1cd3a8910934 Refactored to use TestResultOutcome
vrany
parents: 343
diff changeset
   141
    ^ "$SVN-Revision:"'exported'"$"
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   142
! !
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   143
251
9c8dafcfbf66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   144
!stx_goodies_sunit class methodsFor:'documentation'!
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   145
356
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   146
version
440
4a544fda4bc8 changed: #classNamesAndAttributes
vrany
parents: 427
diff changeset
   147
    ^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.32 2012-01-16 20:47:36 vrany Exp $'
356
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   148
!
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   149
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   150
version_CVS
440
4a544fda4bc8 changed: #classNamesAndAttributes
vrany
parents: 427
diff changeset
   151
    ^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.32 2012-01-16 20:47:36 vrany Exp $'
251
9c8dafcfbf66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   152
!
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   153
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   154
version_SVN
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   155
    ^ '§Id: stx_goodies_sunit.st 214 2011-03-14 12:22:21Z vranyj1 §'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   156
! !