aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-03-03 12:24:13 -0800
committerbnewbold <bnewbold@robocracy.org>2016-03-03 12:28:32 -0800
commit2076b57a9b33060bc88d2631297ae596ecacacfe (patch)
treea88bd358665391a4b52eda06e04467f5369db46e /test
parentd5d207f0a13b883a408fa6a7a948cabf1754c9b3 (diff)
downloadPyX.jl-2076b57a9b33060bc88d2631297ae596ecacacfe.tar.gz
PyX.jl-2076b57a9b33060bc88d2631297ae596ecacacfe.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/runexamples.jl54
-rw-r--r--test/runtests.jl17
2 files changed, 56 insertions, 15 deletions
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")