Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_io
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_io
Commits
93cb27f8
Commit
93cb27f8
authored
Jun 11, 2020
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mooving test files into test_data
parent
4aba7402
Pipeline
#1999
passed with stages
in 38 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
61 additions
and
13 deletions
+61
-13
run.sh
run.sh
+0
-2
src/Plot/Plot_unit_tests.hpp
src/Plot/Plot_unit_tests.hpp
+11
-11
test_data/gc_num_plot_test.html
test_data/gc_num_plot_test.html
+50
-0
test_data/gc_num_ydif_plot_test.html
test_data/gc_num_ydif_plot_test.html
+0
-0
test_data/gc_out2_test.html
test_data/gc_out2_test.html
+0
-0
test_data/gc_out3_test.html
test_data/gc_out3_test.html
+0
-0
test_data/gc_out4_test.html
test_data/gc_out4_test.html
+0
-0
test_data/gc_out5_test.html
test_data/gc_out5_test.html
+0
-0
test_data/gc_out6_test.html
test_data/gc_out6_test.html
+0
-0
test_data/gc_out7_test.html
test_data/gc_out7_test.html
+0
-0
test_data/gc_out_test.html
test_data/gc_out_test.html
+0
-0
test_data/gc_plot2_out_test.html
test_data/gc_plot2_out_test.html
+0
-0
test_data/gc_plot_out_test.html
test_data/gc_plot_out_test.html
+0
-0
No files found.
run.sh
View file @
93cb27f8
...
...
@@ -26,8 +26,6 @@ if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de" ]; then
fi
pwd
ls
ls
test_data/csv_out_test.csv
./build/src/io
...
...
src/Plot/Plot_unit_tests.hpp
View file @
93cb27f8
...
...
@@ -124,7 +124,7 @@ BOOST_AUTO_TEST_CASE( google_chart )
//! [Producing an Histogram graph]
bool
test
=
compare
(
"gc_out.html"
,
"gc_out_test.html"
);
bool
test
=
compare
(
"gc_out.html"
,
"
test_data/
gc_out_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -173,7 +173,7 @@ BOOST_AUTO_TEST_CASE( google_chart2 )
cg
.
AddHistGraph
(
x
,
y
,
yn
,
options
);
cg
.
write
(
"gc_out2.html"
);
bool
test
=
compare
(
"gc_out2.html"
,
"gc_out2_test.html"
);
bool
test
=
compare
(
"gc_out2.html"
,
"
test_data/
gc_out2_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE( google_chart3 )
cg
.
AddHistGraph
(
x
,
y
,
yn
,
options
);
cg
.
write
(
"gc_out3.html"
);
bool
test
=
compare
(
"gc_out3.html"
,
"gc_out3_test.html"
);
bool
test
=
compare
(
"gc_out3.html"
,
"
test_data/
gc_out3_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE( google_chart4 )
cg
.
AddHistGraph
(
x
,
y
,
yn
);
cg
.
write
(
"gc_out4.html"
);
bool
test
=
compare
(
"gc_out4.html"
,
"gc_out4_test.html"
);
bool
test
=
compare
(
"gc_out4.html"
,
"
test_data/
gc_out4_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -295,7 +295,7 @@ BOOST_AUTO_TEST_CASE( google_chart5 )
cg
.
AddHistGraph
(
x
,
y
);
cg
.
write
(
"gc_out5.html"
);
bool
test
=
compare
(
"gc_out5.html"
,
"gc_out5_test.html"
);
bool
test
=
compare
(
"gc_out5.html"
,
"
test_data/
gc_out5_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -320,7 +320,7 @@ BOOST_AUTO_TEST_CASE( google_chart6 )
cg
.
AddHistGraph
(
y
);
cg
.
write
(
"gc_out6.html"
);
bool
test
=
compare
(
"gc_out6.html"
,
"gc_out6_test.html"
);
bool
test
=
compare
(
"gc_out6.html"
,
"
test_data/
gc_out6_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -383,7 +383,7 @@ BOOST_AUTO_TEST_CASE( google_chart_with_inject_HTML )
//! [Producing a set of histograms graphs]
bool
test
=
compare
(
"gc_out7.html"
,
"gc_out7_test.html"
);
bool
test
=
compare
(
"gc_out7.html"
,
"
test_data/
gc_out7_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -437,7 +437,7 @@ BOOST_AUTO_TEST_CASE( google_chart_number )
//! [Producing a set of histograms graphs]
bool
test
=
compare
(
"gc_num_plot.html"
,
"gc_num_plot_test.html"
);
bool
test
=
compare
(
"gc_num_plot.html"
,
"
test_data/
gc_num_plot_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -503,7 +503,7 @@ BOOST_AUTO_TEST_CASE( google_chart_number_lines_different_x )
//! [Producing a set of histograms graphs]
bool
test
=
compare
(
"gc_num_ydif_plot.html"
,
"gc_num_ydif_plot_test.html"
);
bool
test
=
compare
(
"gc_num_ydif_plot.html"
,
"
test_data/
gc_num_ydif_plot_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -570,7 +570,7 @@ BOOST_AUTO_TEST_CASE( google_chart_linear_plot )
//! [Producing lines graph with style]
bool
test
=
compare
(
"gc_plot_out.html"
,
"gc_plot_out_test.html"
);
bool
test
=
compare
(
"gc_plot_out.html"
,
"
test_data/
gc_plot_out_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
@@ -619,7 +619,7 @@ BOOST_AUTO_TEST_CASE( google_chart_linear_plot2 )
//! [Producing lines]
bool
test
=
compare
(
"gc_plot2_out.html"
,
"gc_plot2_out_test.html"
);
bool
test
=
compare
(
"gc_plot2_out.html"
,
"
test_data/
gc_plot2_out_test.html"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
}
...
...
test_data/gc_num_plot_test.html
0 → 100644
View file @
93cb27f8
<html>
<head>
<script
type=
"text/javascript"
src=
"https://www.gstatic.com/charts/loader.js"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
google
.
charts
.
load
(
'
current
'
,
{
'
packages
'
:[
'
corechart
'
]});
google
.
charts
.
setOnLoadCallback
(
drawVisualization
);
function
exportToSVG
(
i
)
{
var
e
=
document
.
getElementById
(
'
chart_div
'
+
i
);
var
svg
=
e
.
getElementsByTagName
(
'
svg
'
)[
0
].
parentNode
.
innerHTML
;
var
pos
=
svg
.
lastIndexOf
(
"
</svg>
"
);
pos
+=
6
;
svg
=
svg
.
substring
(
0
,
4
)
+
"
xmlns='http://www.w3.org/2000/svg' xmlns:xlink= 'http://www.w3.org/1999/xlink'
"
+
svg
.
substring
(
4
,
pos
);
svgData
=
'
data:image/svg+xml;charset=utf-8,
'
+
encodeURIComponent
(
svg
);
$
(
this
).
attr
({
'
href
'
:
svgData
,
'
target
'
:
'
_blank
'
});
}
function
drawVisualization
()
{
var
data0
=
new
google
.
visualization
.
DataTable
();
data0
.
addColumn
(
'
number
'
,
'
X Axis
'
);
data0
.
addColumn
(
'
number
'
,
'
dataset1
'
);
data0
.
addColumn
(
'
number
'
,
'
dataset2
'
);
data0
.
addColumn
(
'
number
'
,
'
dataset3
'
);
data0
.
addColumn
(
'
number
'
,
'
dataset4
'
);
data0
.
addRows
([
[
0.1
,
2
,
3
,
5
,
6
],
[
0.2
,
5
,
6
,
1
,
6
],
[
0.3
,
2
,
1
,
6
,
9
],
[
0.4
,
1
,
6
,
3
,
2
],
[
0.5
,
3
,
3
,
0
,
6
],
[
0.6
,
2
,
1
,
4
,
6
],
]);
var
options0
=
{
title
:
'
Example
'
,
vAxis
:
{
title
:
'
Y Axis
'
},
hAxis
:
{
title
:
'
X Axis
'
},
curveType
:
'
function
'
,
lineWidth
:
4
,
intervals
:
{
'
style
'
:
'
area
'
}};
$
(
"
#export_svg0
"
).
on
(
"
click
"
,
function
(
event
)
{
exportToSVG
.
apply
(
this
,[
0
]);});
var
chart
=
new
google
.
visualization
.
ComboChart
(
document
.
getElementById
(
'
chart_div0
'
));
chart
.
draw
(
data0
,
options0
);
}
</script>
</head>
<body>
<a
href=
"#"
download=
"graph1.svg"
id=
"export_svg0"
><button>
Export data into svg
</button></a><div
id=
"chart_div0"
style=
"width: 900px; height: 500px;"
></div>
</body>
</html>
gc_num_ydif_plot_test.html
→
test_data/
gc_num_ydif_plot_test.html
View file @
93cb27f8
File moved
gc_out2_test.html
→
test_data/
gc_out2_test.html
View file @
93cb27f8
File moved
gc_out3_test.html
→
test_data/
gc_out3_test.html
View file @
93cb27f8
File moved
gc_out4_test.html
→
test_data/
gc_out4_test.html
View file @
93cb27f8
File moved
gc_out5_test.html
→
test_data/
gc_out5_test.html
View file @
93cb27f8
File moved
gc_out6_test.html
→
test_data/
gc_out6_test.html
View file @
93cb27f8
File moved
gc_out7_test.html
→
test_data/
gc_out7_test.html
View file @
93cb27f8
File moved
gc_out_test.html
→
test_data/
gc_out_test.html
View file @
93cb27f8
File moved
gc_plot2_out_test.html
→
test_data/
gc_plot2_out_test.html
View file @
93cb27f8
File moved
gc_plot_out_test.html
→
test_data/
gc_plot_out_test.html
View file @
93cb27f8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment