Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Julia: enable integration test #14025

Merged
merged 1 commit into from
Feb 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@ unittest_ubuntu_cpu_julia() {
export PATH="$1/bin:$PATH"
export MXNET_HOME='/work/mxnet'
export JULIA_DEPOT_PATH='/work/julia-depot'
export INTEGRATION_TEST=1

julia -e 'using InteractiveUtils; versioninfo()'

Expand Down
4 changes: 2 additions & 2 deletions ci/jenkins/Jenkins_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def test_unix_r_gpu() {
def test_unix_julia07_cpu() {
return ['Julia 0.7: CPU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-julia07-cpu') {
ws('workspace/ut-it-julia07-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cpu', mx_lib)
utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia07', false)
Expand All @@ -1027,7 +1027,7 @@ def test_unix_julia07_cpu() {
def test_unix_julia10_cpu() {
return ['Julia 1.0: CPU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-julia10-cpu') {
ws('workspace/ut-it-julia10-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cpu', mx_lib)
utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia10', false)
Expand Down
2 changes: 1 addition & 1 deletion julia/src/executor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function simple_bind(self::SymbolicNode, ctx::Context;
end
end

aux_arrays = [zeros(shape, ctx) for shape in aux_shapes]
aux_arrays = NDArray[zeros(shape, ctx) for shape in aux_shapes]
return bind(self, ctx, arg_arrays, args_grad=grad_arrays, grad_req=grad_req, aux_states=aux_arrays)
end

Expand Down
2 changes: 1 addition & 1 deletion julia/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include(joinpath(@__DIR__, "common.jl"))
test_dir(joinpath(@__DIR__, "unittest"))

# run the basic MNIST mlp example
if haskey(ENV, "CONTINUOUS_INTEGRATION")
if haskey(ENV, "INTEGRATION_TEST")
@testset "MNIST Test" begin
include(joinpath(BASEDIR, "examples", "mnist", "mlp-test.jl"))
end
Expand Down