Skip to content

Commit

Permalink
Revert "move truffle tests out of the test/pom.rb to avoid installing…
Browse files Browse the repository at this point in the history
… test gems"

This reverts commit 01d56f3.

Conflicts:
	lib/pom.rb
	lib/pom.xml
	pom.rb
	pom.xml
  • Loading branch information
mkristian committed Jul 23, 2014
1 parent 76c1200 commit d76411e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 56 deletions.
2 changes: 1 addition & 1 deletion core/pom.rb
Expand Up @@ -42,7 +42,7 @@
jar 'com.github.jnr:jffi:${jffi.version}:native' jar 'com.github.jnr:jffi:${jffi.version}:native'


jar 'org.jruby.joni:joni:2.1.2-SNAPSHOT' jar 'org.jruby.joni:joni:2.1.2-SNAPSHOT'
jar 'org.jruby.extras:bytelist:1.0.12-SNAPSHOT' jar 'org.jruby.extras:bytelist:1.0.11'
jar 'org.jruby.jcodings:jcodings:1.0.12-SNAPSHOT' jar 'org.jruby.jcodings:jcodings:1.0.12-SNAPSHOT'
jar 'org.jruby:yecht:1.0' jar 'org.jruby:yecht:1.0'


Expand Down
10 changes: 0 additions & 10 deletions lib/pom.rb
Expand Up @@ -215,14 +215,4 @@ def to_pathname
raise "please remove the obsolete PATCH for krypt in lib/pom.rb" raise "please remove the obsolete PATCH for krypt in lib/pom.rb"
end end
end end

profile 'truffle' do

plugin :antrun do
execute_goals( 'run',
:id => 'truffle',
:phase => 'package',
:configuration => [ xml( '<target><exec dir="${jruby.home}" executable="${jruby.home}/bin/jruby" failonerror="true"><arg value="-X+T" /><arg value="-Xtruffle.exceptions.print_java=true" /><arg value="-J-ea" /><arg value="spec/mspec/bin/mspec" /><arg value="run" /><arg value="-t" /><arg value="bin/jruby" /><arg value="-T" /><arg value="-X+T" /><arg value="-T" /><arg value="-Xtruffle.exceptions.print_java=true" /><arg value="-T" /><arg value="-J-ea" /><arg value="--config" /> <arg value="spec/truffle/truffle.mspec" /><arg value="--excl-tag" /><arg value="fails" /></exec></target>' ) ] )
end
end
end end
44 changes: 0 additions & 44 deletions lib/pom.xml
Expand Up @@ -234,48 +234,4 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>truffle</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>truffle</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec dir="${jruby.home}" executable="${jruby.home}/bin/jruby" failonerror="true">
<arg value="-X+T" />
<arg value="-Xtruffle.exceptions.print_java=true" />
<arg value="-J-ea" />
<arg value="spec/mspec/bin/mspec" />
<arg value="run" />
<arg value="-t" />
<arg value="bin/jruby" />
<arg value="-T" />
<arg value="-X+T" />
<arg value="-T" />
<arg value="-Xtruffle.exceptions.print_java=true" />
<arg value="-T" />
<arg value="-J-ea" />
<arg value="--config" />
<arg value="spec/truffle/truffle.mspec" />
<arg value="--excl-tag" />
<arg value="fails" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>
2 changes: 1 addition & 1 deletion pom.rb
Expand Up @@ -169,7 +169,7 @@
end end
end end


[ 'rake', 'exec' ].each do |name| [ 'rake', 'exec', 'truffle' ].each do |name|
profile name do profile name do


modules [ 'test' ] modules [ 'test' ]
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Expand Up @@ -521,6 +521,15 @@
<module>test</module> <module>test</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>truffle</id>
<build>
<defaultGoal>test</defaultGoal>
</build>
<modules>
<module>test</module>
</modules>
</profile>
<profile> <profile>
<id>bootstrap</id> <id>bootstrap</id>
<modules> <modules>
Expand Down
14 changes: 14 additions & 0 deletions test/pom.rb
Expand Up @@ -45,6 +45,9 @@
gem 'rubygems:rspec:${rspec.version}' gem 'rubygems:rspec:${rspec.version}'
gem 'rubygems:minitest:${minitest.version}' gem 'rubygems:minitest:${minitest.version}'
gem 'rubygems:minitest-excludes:${minitest-excludes.version}' gem 'rubygems:minitest-excludes:${minitest-excludes.version}'
gem 'rubygems:rdoc:${rdoc.version}-SNAPSHOT'
gem 'rubygems:json:${json.version}'
gem 'rubygems:rake:${rake.version}'


overrides do overrides do
plugin( 'org.eclipse.m2e:lifecycle-mapping:1.0.0', plugin( 'org.eclipse.m2e:lifecycle-mapping:1.0.0',
Expand Down Expand Up @@ -136,4 +139,15 @@


end end


profile 'truffle' do

plugin :antrun do
execute_goals( 'run',
:id => 'rake',
:phase => 'validate',
:configuration => [ xml( '<target><exec dir="${jruby.home}" executable="${jruby.home}/bin/jruby" failonerror="true"><arg value="-X+T" /><arg value="-Xtruffle.exceptions.print_java=true" /><arg value="-J-ea" /><arg value="spec/mspec/bin/mspec" /><arg value="run" /><arg value="-t" /><arg value="bin/jruby" /><arg value="-T" /><arg value="-X+T" /><arg value="-T" /><arg value="-Xtruffle.exceptions.print_java=true" /><arg value="-T" /><arg value="-J-ea" /><arg value="--config" /> <arg value="spec/truffle/truffle.mspec" /><arg value="--excl-tag" /><arg value="fails" /></exec></target>' ) ] )
end

end

end end

0 comments on commit d76411e

Please sign in to comment.