forked from Metacello/metacello
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue Metacello#273: logging for Pharo-4.0 test failures
- Loading branch information
1 parent
92a6172
commit bc2e023
Showing
12 changed files
with
108 additions
and
67 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
...rm.gemstone.package/MetacelloGemStonePlatform.class/instance/defaultPlatformAttributes.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
attributes | ||
defaultPlatformAttributes | ||
|
||
| stoneVersionAtts | | ||
(stoneVersionAtts := self stoneVersionAttributes) ifNil: [^ #( #gemstone )]. | ||
^ stoneVersionAtts | ||
| stoneVersionAtts | | ||
(stoneVersionAtts := self stoneVersionAttributes) ifNil: [ ^ #(#'gemstone') ]. | ||
^ stoneVersionAtts , self devKitPlatformAttributes |
15 changes: 15 additions & 0 deletions
15
...orm.gemstone.package/MetacelloGemStonePlatform.class/instance/devKitPlatformAttributes.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
attributes | ||
devKitPlatformAttributes | ||
| baselineClassName | | ||
baselineClassName := 'BaselineOfDevKit'. | ||
Smalltalk | ||
at: baselineClassName | ||
ifPresent: [ :ignored | | ||
Smalltalk | ||
at: #'MetacelloProjectRegistration' | ||
ifPresent: [ :cls | | ||
(cls registrationForClassNamed: baselineClassName ifAbsent: [ ]) | ||
ifNotNil: [ :registration | | ||
registration loadedInImage | ||
ifTrue: [ #(#'gsdevkit') ] ] ] ]. | ||
^ #(#'glass') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/Metacello-Platform.gemstone.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 38 additions & 28 deletions
66
...-TestsMCA.package/MetacelloGoferFunctionalTest.class/instance/testCommitNewPackageSpec.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
tests | ||
testCommitNewPackageSpec | ||
| repoSpec repo project packagesNeedSaving allVersionsSize packageName | | ||
project := self project. | ||
repoSpec := self repositorySpec. | ||
repo := repoSpec createRepository. | ||
allVersionsSize := repo allVersionInfos size. | ||
gofer repository: repo. | ||
gofer | ||
package: 'GoferFoo'; | ||
package: 'GoferBar'; | ||
metacelloLoad. | ||
"Create new package" | ||
packageName := 'GoferFaux'. | ||
PackageInfo registerPackageName: packageName. | ||
MCWorkingCopy forPackage: (MetacelloTestsMCPackage new name: packageName). | ||
(MCClassDefinition | ||
name: (packageName copyWithout: $-) asSymbol | ||
superclassName: #Object | ||
category: packageName asSymbol | ||
instVarNames: #() | ||
comment: '') createClass. | ||
self assert: (packagesNeedSaving := project packagesNeedSaving: '1.0-baseline') notEmpty. | ||
packagesNeedSaving do: [:assoc | | gof | | ||
gof := Gofer new. | ||
gof disablePackageCache. | ||
gof repository: assoc value. | ||
gof package: assoc key name. | ||
gof commit: 'testing' ]. | ||
self assert: repo allVersionInfos size = (allVersionsSize + 1) | ||
[ | ||
| repoSpec repo project packagesNeedSaving allVersionsSize packageName | | ||
project := self project. | ||
repoSpec := self repositorySpec. | ||
repo := repoSpec createRepository. | ||
allVersionsSize := repo allVersionInfos size. | ||
gofer repository: repo. | ||
gofer | ||
package: 'GoferFoo'; | ||
package: 'GoferBar'; | ||
metacelloLoad. "Create new package" | ||
packageName := 'GoferFaux'. | ||
PackageInfo registerPackageName: packageName. | ||
MCWorkingCopy forPackage: (MetacelloTestsMCPackage new name: packageName). | ||
(MCClassDefinition | ||
name: (packageName copyWithout: $-) asSymbol | ||
superclassName: #'Object' | ||
category: packageName asSymbol | ||
instVarNames: #() | ||
comment: '') createClass. | ||
self | ||
assert: | ||
(packagesNeedSaving := project packagesNeedSaving: '1.0-baseline') notEmpty. | ||
packagesNeedSaving | ||
do: [ :assoc | | ||
| gof | | ||
gof := Gofer new. | ||
gof disablePackageCache. | ||
gof repository: assoc value. | ||
gof package: assoc key name. | ||
gof commit: 'testing' ]. | ||
self assert: repo allVersionInfos size = (allVersionsSize + 1) ] | ||
on: Error | ||
do: [ :ex | | ||
Transcript | ||
cr; | ||
show: 'testCommitNewPackageSpec Error: ' , ex description. | ||
ex pass ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 29 additions & 20 deletions
49
.../Metacello-TestsMCA.package/MetacelloToolBoxAPITestCase.class/instance/testImportFrom4.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
tests | ||
testImportFrom4 | ||
"change order of project attributes relative to import3...i.e., not reversed which is default" | ||
"change order of project attributes relative to import3...i.e., not reversed which is default" | ||
|
||
| toolbox source | | ||
self createNested13Baseline. | ||
(toolbox := MetacelloToolBox configurationNamed: self configurationName asString) | ||
createVersionMethod: 'version13:' inCategory: 'versions' forVersion: '1.3'; | ||
importFrom: '1.3-baseline' | ||
projectAttributes: #(#'common' #'other' #'nested' #'outer') | ||
inactiveAttributes: #() | ||
updateProjects: true | ||
updatePackages: true | ||
versionSpecsDo: [ :attributeOrPath :versionSpec | | ||
attributeOrPath == #'common' | ||
ifTrue: [ versionSpec blessing: #'development' ]. | ||
attributeOrPath = #(#(#'common') #(#'nested')) asMetacelloAttributePath | ||
ifTrue: [ versionSpec description: 'nested for:do: section' ]. | ||
true ]; | ||
commitMethod. | ||
self | ||
assert: | ||
(source := ((Smalltalk at: self configurationName) sourceCodeAt: #'version13:') asString) = self version13SourceString4 | ||
[ | ||
| toolbox source | | ||
self createNested13Baseline. | ||
(toolbox := MetacelloToolBox | ||
configurationNamed: self configurationName asString) | ||
createVersionMethod: 'version13:' inCategory: 'versions' forVersion: '1.3'; | ||
importFrom: '1.3-baseline' | ||
projectAttributes: #(#'common' #'other' #'nested' #'outer') | ||
inactiveAttributes: #() | ||
updateProjects: true | ||
updatePackages: true | ||
versionSpecsDo: [ :attributeOrPath :versionSpec | | ||
attributeOrPath == #'common' | ||
ifTrue: [ versionSpec blessing: #'development' ]. | ||
attributeOrPath = #(#(#'common') #(#'nested')) asMetacelloAttributePath | ||
ifTrue: [ versionSpec description: 'nested for:do: section' ]. | ||
true ]; | ||
commitMethod. | ||
self | ||
assert: | ||
(source := ((Smalltalk at: self configurationName) sourceCodeAt: #'version13:') | ||
asString) = self version13SourceString4 ] | ||
on: Error | ||
do: [ :ex | | ||
Transcript | ||
cr; | ||
show: 'testImportFrom4 Error: ' , ex description. | ||
ex pass ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.