diff --git a/.cvsignore b/.cvsignore index 9a489f9..d68376b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -4,3 +4,4 @@ ecf-filetransfer-v20080611-1715.tar.bz2 eclipse-sourceBuild-srcIncluded-3.4.zip org.fedoraproject.ide.platform-3.4.0-1.zip eclipse-ecj-gcj.tar.bz2 +eclipse-3.4.0-testframework.tar.bz2 diff --git a/eclipse-mv-Platform.sh b/eclipse-mv-Platform.sh index ee66993..c872b1e 100644 --- a/eclipse-mv-Platform.sh +++ b/eclipse-mv-Platform.sh @@ -20,8 +20,6 @@ mv $baseDir/plugins/org.eclipse.team.cvs.ssh2_* plugins mv $baseDir/plugins/org.eclipse.team.cvs.ui_* plugins mv $baseDir/features/org.eclipse.equinox.p2.user.ui_* features mv $baseDir/features/org.fedoraproject* features -mv $baseDir/features/org.eclipse.equinox.p2.user.ui_* features -mv $baseDir/features/org.fedoraproject* features mv $baseDir/plugins/org.fedoraproject* plugins mv $baseDir/plugins/*linux* plugins mv $baseDir/plugins/com.jcraft.jsch_* plugins diff --git a/eclipse-nowin32testfragment.patch b/eclipse-nowin32testfragment.patch new file mode 100644 index 0000000..a280f6e --- /dev/null +++ b/eclipse-nowin32testfragment.patch @@ -0,0 +1,18 @@ +diff -up ./org.eclipse.test-feature/feature.xml.nowin32 ./org.eclipse.test-feature/feature.xml +--- ./org.eclipse.test-feature/feature.xml.nowin32 2008-08-27 10:14:56.000000000 -0400 ++++ ./org.eclipse.test-feature/feature.xml 2008-08-27 10:15:04.000000000 -0400 +@@ -58,14 +58,6 @@ + unpack="false"/> + + +- +- " + exit 1 +fi @@ -21,6 +21,7 @@ diff -N templates/package-build/prepare-build-dir.sh + +SOURCEDIR=$1 +BUILDDIR=$2 ++TESTING=$3 + +echo "preparing files in $1 for buildfile generation ..." +mkdir -p $BUILDDIR @@ -48,37 +49,55 @@ diff -N templates/package-build/prepare-build-dir.sh + +# make symlinks for the features +FEATURES=$(find $SOURCEDIR -name feature.xml) -+for f in $FEATURES; do -+ PROJECTDIR=$(dirname $f) -+ PROJECTNAME=$(ant -Dbasedir=$PROJECTDIR -f $BUILDDIR/tmp/feature-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) -+ if [ -z $PROJECTNAME ]; then ++find $SOURCEDIR -name feature.xml | while read f; do ++ PROJECTDIR=$(dirname "$f") ++ PROJECTNAME=$(ant -Dbasedir="$PROJECTDIR" -f $BUILDDIR/tmp/feature-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) ++ ERROR="" ++ if [ -z "$PROJECTNAME" ]; then + echo "ERROR: could not determine the feature id for $PROJECTDIR" -+ exit 1 ++ if [ $TESTING != true ]; then ++ exit 1 ++ else ++ ERROR="yes" ++ fi + fi + -+ echo " making symlink: $BUILDDIR/features/$PROJECTNAME -> $PROJECTDIR" -+ ln -sf $PROJECTDIR $BUILDDIR/features/$PROJECTNAME ++ if [ "x$ERROR" != "xyes" ]; then ++ if [[ $TESTING != true || `echo $PROJECTNAME | grep "org.eclipse"` ]]; then ++ echo " making symlink: $BUILDDIR/features/$PROJECTNAME -> $PROJECTDIR" ++ ln -sf "$PROJECTDIR" $BUILDDIR/features/"$PROJECTNAME" ++ fi ++ fi +done + +# make symlinks for plugins and fragments +PLUGINDIRS=$(find $SOURCEDIR -name plugin.xml -o -name fragment.xml -o -name MANIFEST.MF | sed "s/plugin.xml//g" | sed "s/fragment.xml//g" | sed "s/META-INF\/MANIFEST.MF//" | sort | uniq) -+for dir in $PLUGINDIRS; do ++find $SOURCEDIR -name plugin.xml -o -name fragment.xml -o -name MANIFEST.MF | sed "s/plugin.xml//g" | sed "s/fragment.xml//g" | sed "s/META-INF\/MANIFEST.MF//" | sort | uniq | while read dir; do + PROJECTNAME="" -+ if [ -e $dir/META-INF/MANIFEST.MF ]; then ++ ERROR="" ++ if [ -e "$dir/META-INF/MANIFEST.MF" ]; then + PROJECTNAME=$(grep Bundle-SymbolicName $dir/META-INF/MANIFEST.MF | cut --delimiter=';' -f 1 | cut --delimiter=' ' -f 2) -+ elif [ -e $dir/plugin.xml ]; then ++ elif [ -e "$dir/plugin.xml" ]; then + PROJECTNAME=$(ant -Dbasedir=$dir -f $BUILDDIR/tmp/plugin-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) -+ elif [ -e $dir/fragment.xml ]; then ++ elif [ -e "$dir/fragment.xml" ]; then + PROJECTNAME=$(ant -Dbasedir=$dir -f $BUILDDIR/tmp/fragment-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) + fi + -+ if [ -z $PROJECTNAME ]; then ++ if [ -z "$PROJECTNAME" ]; then + echo "ERROR: could not determine the plugin or fragment id for $dir" -+ exit 1 ++ if [ $TESTING != true ]; then ++ exit 1 ++ else ++ ERROR="yes" ++ fi + fi + -+ echo " making symlink: $BUILDDIR/plugins/$PROJECTNAME -> $dir" -+ ln -sf $dir $BUILDDIR/plugins/$PROJECTNAME ++ if [ "x$ERROR" != "xyes" ]; then ++ if [[ $TESTING != true || `echo $PROJECTNAME | grep "org.eclipse"` ]]; then ++ echo " making symlink: $BUILDDIR/plugins/$PROJECTNAME -> $dir" ++ ln -sf $dir $BUILDDIR/plugins/"$PROJECTNAME" ++ fi ++ fi; + +done + @@ -180,7 +199,7 @@ diff -N templates/package-build/customTargets.xml + normally arranges the projects during the fetch stage. Since we aren't doing + the fetch stage, we have to manually arrange the files --> + -+ ++ + + + diff --git a/eclipse-pdebuild.sh b/eclipse-pdebuild.sh index 715b9c5..d3b0763 100755 --- a/eclipse-pdebuild.sh +++ b/eclipse-pdebuild.sh @@ -113,9 +113,11 @@ verbose=0 dryRun=0 debugPlatform=0 orbitDepsDir= +p2Generate= +testing=false # See above. r = dry run (used for testing) -while getopts “hf:d:a:j:vrDo:” OPTION +while getopts “hf:d:a:j:tvrDo:” OPTION do case $OPTION in h) @@ -134,6 +136,9 @@ do j) vmArgs=$OPTARG ;; + t) + testing=true + ;; v) verbose=1 ;; @@ -199,6 +204,16 @@ if [ $debugPlatform -eq 1 ]; then debugPlatformArgs="-debug -consolelog" fi +if [ $testing != true ]; then + p2Generate="-Dp2.root.name=\"$featureName\" \ +-Dp2.root.version=\"$featureVersion\" \ +-Dgenerate.p2.metadata=true \ +-Dp2.metadata.repo=file:$buildDir/repo \ +-Dp2.artifact.repo=file:$buildDir/repo \ +-Dp2.flavor=tooling \ +-Dp2.publish.artifacts=true" +fi + echo echo "Starting build:" @@ -214,13 +229,8 @@ $debugPlatformArgs \ -DbuildDirectory=$buildDir \ -Dbuilder=$datadir/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_@PDEBUILDVERSION@/templates/package-build \ -DorbitDepsDir="$orbitDepsDir" \ --Dp2.root.name="$featureName" \ --Dp2.root.version="$featureVersion" \ --Dgenerate.p2.metadata=true \ --Dp2.metadata.repo=file:$buildDir/repo \ --Dp2.artifact.repo=file:$buildDir/repo \ --Dp2.flavor=tooling \ --Dp2.publish.artifacts=true \ +-Dtesting="$testing" \ +$p2Generate \ $additionalArgs \ -f $pdeBuildDir/scripts/build.xml \ -vmargs \ @@ -240,15 +250,8 @@ if [ $dryRun -ne 1 ]; then -DbuildDirectory=$buildDir \ -Dbuilder=$datadir/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_@PDEBUILDVERSION@/templates/package-build \ -DorbitDepsDir=$orbitDepsDir \ - -Dp2.root.name="$featureName" \ - -Dp2.root.version="$featureVersion" \ - -Dp2.metadata.repo.name="$featureName" \ - -Dp2.artifact.repo.version="$featureVersion" \ - -Dgenerate.p2.metadata=true \ - -Dp2.metadata.repo=file:$buildDir/repo \ - -Dp2.artifact.repo=file:$buildDir/repo \ - -Dp2.flavor=tooling \ - -Dp2.publish.artifacts=true \ + -Dtesting="$testing" \ + $p2Generate \ $additionalArgs \ -f $pdeBuildDir/scripts/build.xml \ -vmargs \ @@ -256,11 +259,13 @@ if [ $dryRun -ne 1 ]; then $vmArgs fi -# Add content.xml into zip -pushd $buildDir/rpmBuild -unzip $featureId.zip -rm $featureId.zip -cp -p ../repo/content.xml eclipse -zip -r $featureId.zip eclipse -rm -rf eclipse -popd +if [ $testing != true ]; then + # Add content.xml into zip + pushd $buildDir/rpmBuild + unzip $featureId.zip + rm $featureId.zip + cp -p ../repo/content.xml eclipse + zip -r $featureId.zip eclipse + rm -rf eclipse + popd +fi diff --git a/eclipse-tests-libraryXml.patch b/eclipse-tests-libraryXml.patch new file mode 100644 index 0000000..c98ffdc --- /dev/null +++ b/eclipse-tests-libraryXml.patch @@ -0,0 +1,97 @@ +diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml +--- ./org.eclipse.test/library.xml.orig 2008-08-27 15:10:17.000000000 -0400 ++++ ./org.eclipse.test/library.xml 2008-08-27 15:11:16.000000000 -0400 +@@ -40,8 +40,10 @@ + + + ++ ++ + +- ++ + + + +@@ -60,7 +62,11 @@ + + + +- ++ ++ ++ ++ ++ + + + +@@ -75,7 +81,7 @@ + + + +- ++ + + + +@@ -83,15 +89,29 @@ + + + ++ ++ ++ ++ + + ++ ++ ++ ++ ++ ++ + + + + + + +- ++ ++ ++ ++ ++ + + + +@@ -125,6 +145,8 @@ + + + ++ ++ + + + +@@ -138,7 +160,7 @@ + + + +-