From fa8834e9e51113c90549a287de40fc05c133affb Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 27 Jun 2015 19:53:49 +0300 Subject: [PATCH] fixing paths --- test/runtests.jl | 6 ++++-- test/test_abaqus_reader.jl | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 680932d..83c097f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -74,9 +74,11 @@ facts("Looking the [src,test] folders *.jl files header information") do @fact files_no_license => isempty out_str end -# FIXME: $PACKAGE_ROOT/test -test_files = readdir(".") +test_files = readdir(Pkg.dir("JuliaFEM")*"/test") +#println("test files: $test_files") for test_file in test_files + println("checking is $test_file is real test file") + #if contains("test_", test_file) if beginswith(test_file, "test_") Logging.info("Running tests from file $test_file") include(test_file) diff --git a/test/test_abaqus_reader.jl b/test/test_abaqus_reader.jl index 13b37db..0aeb23c 100644 --- a/test/test_abaqus_reader.jl +++ b/test/test_abaqus_reader.jl @@ -8,7 +8,8 @@ using Logging using JuliaFEM.abaqus_reader: parse_abaqus, parse_element_section facts("test import abaqus model") do - fid = open("../geometry/3d_beam/palkki.inp") + # FIXME: get_test_data() + fid = open(Pkg.dir("JuliaFEM")*"/geometry/3d_beam/palkki.inp") model = parse_abaqus(fid) close(fid) @fact length(model["nodes"]) => 298