tests/stx_goodies_petitparser_tests.st
author sr
Thu, 05 Jul 2018 09:23:25 +0200
changeset 626 5159b1039a8f
parent 601 f3281916fd6f
permissions -rw-r--r--
order
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
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
     3
"{ NameSpace: Smalltalk }"
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
     4
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
LibraryDefinition subclass:#stx_goodies_petitparser_tests
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	category:'* Projects & Packages *'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!stx_goodies_petitparser_tests class methodsFor:'description'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
excludedFromPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
    "list all packages which should be ignored in the automatic
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
     preRequisites scan. See #preRequisites for more."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
mandatoryPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    "list all required mandatory packages.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
     Packages are mandatory, if they contain superclasses of the package's classes
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
     or classes which are extended by this package.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
     This list can be maintained manually or (better) generated and
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
     updated by scanning the superclass hierarchies
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
     (the browser has a menu function for that)"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
        #'stx:goodies/sunit'    "TestAsserter - superclass of PPAbstractParserTest "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
        #'stx:libbasic'    "LibraryDefinition - superclass of stx_goodies_petitparser_tests "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
referencedPreRequisites
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
    "list all packages containing classes referenced by the packages's members.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
     This list can be maintained manually or (better) generated and
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
     updated by looking for global variable accesses
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
     (the browser has a menu function for that)
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
     However, often too much is found, and you may want to explicitely
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
     exclude individual packages in the #excludedFromPreRequisites method."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
        #'stx:goodies/petitparser'    "PPParserResource - referenced by PPCompositeParserTest class>>resources "
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
subProjects
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    "list packages which are known as subprojects.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
     The generated makefile will enter those and make there as well.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
     However: they are not forced to be loaded when a package is loaded;
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
     for those, redefine requiredPrerequisites"
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
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!stx_goodies_petitparser_tests class methodsFor:'description - contents'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
classNamesAndAttributes
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "lists the classes which are to be included in the project.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     Each entry in the list may be: a single class-name (symbol),
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
     or an array-literal consisting of class name and attributes.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
        "<className> or (<className> attributes...) in load order"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
        PPAbstractParserTest
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    71
        PPParserResource
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
        #'stx_goodies_petitparser_tests'
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    73
        PPComposedTest
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        PPCompositeParserTest
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    75
        PPExtensionTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    76
        PPMappingTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    77
        PPObjectTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    78
        PPParserTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    79
        PPPredicateTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    80
        PPScriptingTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    81
        PPArithmeticParserTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    82
        PPLambdaParserTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    83
        PPExpressionParserTest
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
    84
        (PPTokenTest autoload)
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
extensionMethodNames
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    "lists the extension methods which are to be included in the project.
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
     Entries are 2-element array literals, consisting of class-name and selector."
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    ^ #(
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    )
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
!stx_goodies_petitparser_tests class methodsFor:'description - project information'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
companyName
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "Return a companyname which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    ^ 'eXept Software AG'
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
description
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "Return a description string which will appear in vc.def / bc.def"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    ^ 'Smalltalk/X Class library'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
legalCopyright
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "Return a copyright string which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    ^ 'Copyright Claus Gittinger 1988-2014\nCopyright eXept Software AG 1998-2014'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
productName
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    "Return a product name which will appear in <lib>.rc"
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    ^ 'Smalltalk/X'
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
!stx_goodies_petitparser_tests class methodsFor:'documentation'!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
version
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   125
    ^ '$Header$'
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
!
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
version_CVS
601
f3281916fd6f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 324
diff changeset
   129
    ^ '$Header$'
256
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
! !
6f800e49f6f6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131