forked from squeak-smalltalk/squeak-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-from-previous-release-test.sh
More file actions
executable file
·22 lines (17 loc) · 1.01 KB
/
update-from-previous-release-test.sh
File metadata and controls
executable file
·22 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh
: ${WORKSPACE:=`pwd`} # Default to the current directory to ease testing
LAST_RELEASED_IMAGE_NAME=Squeak4.3
IMAGE_NAME="UpdatedFromLastReleaseImage"
VM="$WORKSPACE/coglinux/bin/squeak"
mkdir -p "$WORKSPACE/target/"
cp "$WORKSPACE/$LAST_RELEASED_IMAGE_NAME.image" "$WORKSPACE/target/$IMAGE_NAME.image"
cp "$WORKSPACE/$LAST_RELEASED_IMAGE_NAME.changes" "$WORKSPACE/target/$IMAGE_NAME.changes"
cp "$WORKSPACE/SqueakV41.sources" "$WORKSPACE/target/SqueakV41.sources"
cp "$WORKSPACE/HudsonBuildTools.st" "$WORKSPACE/target/HudsonBuildTools.st"
# Update the image
$VM -vm-sound-null -vm-display-null "$WORKSPACE/target/$IMAGE_NAME.image" "$WORKSPACE/update-image.st"
# Copy the CLEAN image to TestImage
cp "$WORKSPACE/target/$IMAGE_NAME.image" "$WORKSPACE/target/TestImage.image"
cp "$WORKSPACE/target/$IMAGE_NAME.changes" "$WORKSPACE/target/TestImage.changes"
# Keep the dirt caused by running tests away from the pristine image.
$VM -vm-sound-null -vm-display-null "$WORKSPACE/target/TestImage.image" "$WORKSPACE/tests.st"