Qamar Mahmood wrote:
> 
> I need to set the LD_LIBRARY_PATH environment variable in order to run
> junit tests.
> I cannot find any examples on the forum/docs.
> 

test {
  environment "LD_LIBRARY_PATH", someValue
}

Good place to look these things up is the DSL reference:
http://gradle.org/current/docs/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:environment(java.lang.String,
java.lang.Object)

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Setting-LD-LIBRARY-PATH-when-running-test-tp4941817p4943105.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to