functional packages
MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/README.md
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/README.md
-A PhLVirtualMachineManagerTest is a test class for testing the behavior of PhLVirtualMachineManager
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/properties.json
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/properties.json
{
- "commentStamp" : "<historical>",
+ "commentStamp" : "",
"super" : "TestCase",
"category" : "PharoLauncher-Tests-Download",
"classinstvars" : [ ],

RENAME
src/PharoLauncher-Tests-Download.package/PhLPhLProcessWrapperTest.class/README.md
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.class/README.md
RENAME
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.extension/instance/testCanRunUnzipOnLinux.st
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.class/instance/testCanRunUnzipOnLinux.st
-*PharoLauncher-Tests-Functional
+as yet unclassified
testCanRunUnzipOnLinux
| process |
Smalltalk os isWindows ifTrue: [ ^ self ].

RENAME
src/PharoLauncher-Tests-Download.package/PhLPhLProcessWrapperTest.class/instance/testCanRunUnzipOnWindows.st
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.class/instance/testCanRunUnzipOnWindows.st
RENAME
src/PharoLauncher-Tests-Download.package/PhLPhLProcessWrapperTest.class/properties.json
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.class/properties.json
{
"commentStamp" : "",
"super" : "TestCase",
- "category" : "PharoLauncher-Tests-Download",
+ "category" : "PharoLauncher-Tests-Functional",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],

DELETE
src/PharoLauncher-Tests-Functional.package/PhLPhLProcessWrapperTest.extension/properties.json
-{
- "name" : "PhLPhLProcessWrapperTest"
-}
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/README.md
+A PhLVirtualMachineManagerTest is a test class for testing the behavior of PhLVirtualMachineManager
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/class/availaibleVirtualMachines.st
+as yet unclassified
+availaibleVirtualMachines
+ Smalltalk vm imageVersionNumber
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testCanDetectPreSpurImage.st
+tests
+testCanDetectPreSpurImage
+ | version |
+ self timeLimit: 60 seconds.
+ version := PhLVirtualMachineManager imageFormatNumberFromStream: self preSpurHeader.
+ self assert: (PhLVirtualMachineManager isPreSpur: version)
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testCanDetectSystemUnzip.st
+tests
+testCanDetectSystemUnzip
+ self assert: PhLVirtualMachineManager canUseSytemZip equals: true
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testCanGetImageVersion.st
+tests
+testCanGetImageVersion
+ | version |
+ version := (PhLVirtualMachineManager
+ forImage: Smalltalk image lastImagePath) imageVersion.
+ self assert: version equals: self currentImageVersion
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testCanGetImageVersionFromFileWhenRunningExtraVM.st
+tests
+testCanGetImageVersionFromFileWhenRunningExtraVM
+ | vmManager |
+ vmManager := PhLVirtualMachineManager forImage: Smalltalk image lastImagePath.
+ vmManager imageVersionFile ensureDelete.
+
+ self
+ assert: vmManager imageVersion
+ equals: self currentImageVersion
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testCanGetImageVersionFromFileWithRightCommand.st
+tests
+testCanGetImageVersionFromFileWithRightCommand
+ | vmManager command |
+ vmManager := PhLVirtualMachineManager forImage: Smalltalk image lastImagePath.
+ vmManager imageVersionFile ensureDelete.
+ command := 'echo 60 > ' , vmManager imageVersionFile fullName surroundedByDoubleQuotes.
+
+ self
+ assert: (vmManager imageVersionFromFileWith: command)
+ equals: '60'
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/instance/testGetExceptionWhenRunningImageVersionFromFileWithBadCommand.st
+tests
+testGetExceptionWhenRunningImageVersionFromFileWithBadCommand
+ | vmManager |
+ vmManager := PhLVirtualMachineManager forImage: Smalltalk image lastImagePath.
+ vmManager imageVersionFile ensureDelete.
+
+ self
+ should: [ vmManager imageVersionFromFileWith: 'foo' ]
+ raise: PhLImageVersionDeterminationError
\ No newline at end of file

ADD
src/PharoLauncher-Tests-Functional.package/PhLVirtualMachineManagerFunctionalTest.class/properties.json
+{
+ "commentStamp" : "<historical>",
+ "super" : "PhLVirtualMachineManagerTest",
+ "category" : "PharoLauncher-Tests-Functional",
+ "classinstvars" : [ ],
+ "pools" : [ ],
+ "classvars" : [ ],
+ "instvars" : [ ],
+ "name" : "PhLVirtualMachineManagerFunctionalTest",
+ "type" : "normal"
+}
\ No newline at end of file

functional packages