From 2076b57a9b33060bc88d2631297ae596ecacacfe Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 3 Mar 2016 12:24:13 -0800 Subject: HACK: split out datafile-path-requiring examples When running "runtests.jl" from Pkg.test("PyX"), we get failures because data file paths are not local. This commit removes such examples from runtests.jl, and creates runexamples.jl which "does them all", but must be run locally. Should really find a better solution than this. --- test/runexamples.jl | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ test/runtests.jl | 17 ++--------------- 2 files changed, 56 insertions(+), 15 deletions(-) create mode 100644 test/runexamples.jl (limited to 'test') diff --git a/test/runexamples.jl b/test/runexamples.jl new file mode 100644 index 0000000..a13d135 --- /dev/null +++ b/test/runexamples.jl @@ -0,0 +1,54 @@ + +println("Importing libs...") +include("../src/PyX.jl") +using PyX +using LaTeXStrings +using Base.Test + +##### Run all the examples + +println("Drawing...") +include("../examples/drawing/arrow.jl") +#include("../examples/drawing/metapost.jl") # Python3 only? +include("../examples/drawing/pathitem.jl") +include("../examples/drawing/path.jl") +include("../examples/drawing/strokefill.jl") +include("../examples/drawing/style.jl") + +include("../examples/drawing2d/clipping.jl") +include("../examples/drawing2d/ellipse.jl") +include("../examples/drawing2d/insert.jl") +include("../examples/drawing2d/parallel.jl") +include("../examples/drawing2d/smoothed.jl") + +println("Graphs...") +include("../examples/splitgraphs/minimal.jl") +include("../examples/splitgraphs/splitatvalue.jl") + +include("../examples/bargraphs/changebar.jl") +include("../examples/bargraphs/compare.jl") +include("../examples/bargraphs/errors.jl") +include("../examples/bargraphs/fromvalue.jl") +include("../examples/bargraphs/minimal.jl") +include("../examples/bargraphs/month.jl") +include("../examples/bargraphs/stacked.jl") + +include("../examples/graphs/axis.jl") +include("../examples/graphs/change.jl") +include("../examples/graphs/function.jl") +include("../examples/graphs/lissajous.jl") +include("../examples/graphs/join.jl") +include("../examples/graphs/minimal.jl") +include("../examples/graphs/points.jl") + +include("../examples/graphstyles/histogram.jl") +include("../examples/graphstyles/usesymbol.jl") +include("../examples/graphstyles/errorbar.jl") +include("../examples/graphstyles/density.jl") + +println("3D Graphs...") +include("../examples/3dgraphs/bar.jl") +include("../examples/3dgraphs/color.jl") +include("../examples/3dgraphs/grid.jl") +include("../examples/3dgraphs/surface.jl") + diff --git a/test/runtests.jl b/test/runtests.jl index 03eb48f..d0bb3c7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -15,7 +15,7 @@ println("MIME and Ghostscript tests...") include("test_gs.jl") include("test_mime.jl") -##### Run all the examples +##### Run all the examples that don't have data files println("Drawing...") include("../examples/drawing/arrow.jl") @@ -32,33 +32,20 @@ include("../examples/drawing2d/parallel.jl") include("../examples/drawing2d/smoothed.jl") println("Graphs...") -include("../examples/splitgraphs/minimal.jl") include("../examples/splitgraphs/splitatvalue.jl") -include("../examples/bargraphs/changebar.jl") -include("../examples/bargraphs/compare.jl") -include("../examples/bargraphs/errors.jl") -include("../examples/bargraphs/fromvalue.jl") -include("../examples/bargraphs/minimal.jl") -include("../examples/bargraphs/month.jl") -include("../examples/bargraphs/stacked.jl") +# All bargraphs have data files include("../examples/graphs/axis.jl") include("../examples/graphs/change.jl") include("../examples/graphs/function.jl") include("../examples/graphs/lissajous.jl") -include("../examples/graphs/join.jl") -include("../examples/graphs/minimal.jl") include("../examples/graphs/points.jl") include("../examples/graphstyles/histogram.jl") include("../examples/graphstyles/usesymbol.jl") -include("../examples/graphstyles/errorbar.jl") include("../examples/graphstyles/density.jl") println("3D Graphs...") include("../examples/3dgraphs/bar.jl") -include("../examples/3dgraphs/color.jl") -include("../examples/3dgraphs/grid.jl") -include("../examples/3dgraphs/surface.jl") -- cgit v1.2.3