tests/stx_goodies_petitparser_tests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 03 Oct 2014 01:59:10 +0100
changeset 376 a2656b27cace
parent 375 e2b2f08d054e
child 377 6112a403a52d
permissions -rw-r--r--
Added monticelloName to package definition to ease export to .mcz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/petitparser/tests' }"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
LibraryDefinition subclass:#stx_goodies_petitparser_tests
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	category:'* Projects & Packages *'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
376
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    11
!stx_goodies_petitparser_tests class methodsFor:'accessing - monticello'!
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    12
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    13
monticelloName
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    14
    "Return name of the package for Monticello. This is used when package is exported"
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    15
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    16
    ^ 'PetitTests'
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    17
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    18
    "Created: / 03-10-2014 / 01:48:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    19
! !
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
    20
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!stx_goodies_petitparser_tests class methodsFor:'description'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
excludedFromPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    "list all packages which should be ignored in the automatic
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
     preRequisites scan. See #preRequisites for more."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
mandatoryPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
    "list all required mandatory packages.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
     Packages are mandatory, if they contain superclasses of the package's classes
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
     or classes which are extended by this package.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
     This list can be maintained manually or (better) generated and
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
     updated by scanning the superclass hierarchies
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
     (the browser has a menu function for that)"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
        #'stx:goodies/sunit'    "TestAsserter - superclass of PPAbstractParserTest "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
        #'stx:libbasic'    "LibraryDefinition - superclass of stx_goodies_petitparser_tests "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
referencedPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    "list all packages containing classes referenced by the packages's members.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
     This list can be maintained manually or (better) generated and
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
     updated by looking for global variable accesses
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
     (the browser has a menu function for that)
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
     However, often too much is found, and you may want to explicitely
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
     exclude individual packages in the #excludedFromPreRequisites method."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
        #'stx:goodies/petitparser'    "PPParserResource - referenced by PPCompositeParserTest class>>resources "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
subProjects
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    "list packages which are known as subprojects.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
     The generated makefile will enter those and make there as well.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
     However: they are not forced to be loaded when a package is loaded;
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     for those, redefine requiredPrerequisites"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!stx_goodies_petitparser_tests class methodsFor:'description - contents'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
classNamesAndAttributes
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "lists the classes which are to be included in the project.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
     Each entry in the list may be: a single class-name (symbol),
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
     or an array-literal consisting of class name and attributes.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
        "<className> or (<className> attributes...) in load order"
375
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    78
        (PPAbstractParserTest autoload)
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
        #'stx_goodies_petitparser_tests'
375
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    80
        (PPCompositeParserTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    81
        (PPAbstractParseTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    82
        (PPArithmeticParserTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    83
        (PPComposedTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    84
        (PPExtensionTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    85
        (PPLambdaParserTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    86
        (PPObjectTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    87
        (PPParserResource autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    88
        (PPParserTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    89
        (PPPredicateTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    90
        (PPScriptingTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    91
        (PPTokenTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    92
        (PPExpressionParserTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    93
        (PPMappingTest autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    94
        (PPArithmeticParser autoload)
e2b2f08d054e All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 324
diff changeset
    95
        (PPLambdaParser autoload)
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
extensionMethodNames
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "lists the extension methods which are to be included in the project.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
     Entries are 2-element array literals, consisting of class-name and selector."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!stx_goodies_petitparser_tests class methodsFor:'description - project information'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
companyName
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    "Return a companyname which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    ^ 'eXept Software AG'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
description
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    "Return a description string which will appear in vc.def / bc.def"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    ^ 'Smalltalk/X Class library'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
legalCopyright
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    "Return a copyright string which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    ^ 'Copyright Claus Gittinger 1988-2014\nCopyright eXept Software AG 1998-2014'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
productName
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    "Return a product name which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    ^ 'Smalltalk/X'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!stx_goodies_petitparser_tests class methodsFor:'documentation'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
version
324
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   136
    ^ '$Header: /cvs/stx/stx/goodies/petitparser/tests/stx_goodies_petitparser_tests.st,v 1.3 2014-03-04 20:32:06 cg Exp $'
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
version_CVS
324
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   140
    ^ '$Header: /cvs/stx/stx/goodies/petitparser/tests/stx_goodies_petitparser_tests.st,v 1.3 2014-03-04 20:32:06 cg Exp $'
376
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
   141
!
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
   142
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
   143
version_HG
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 375
diff changeset
   144
    ^ '$Changeset: <not expanded> $'
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146