summaryrefslogtreecommitdiff
path: root/metrics/tests/probes/memory
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-10 17:10:48 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-16 22:52:01 +0200
commit970cabe0eb441270ca3af44e495a5fee997ab54c (patch)
treef84735c55ba8830055a1cbac2ce9960082e49ef0 /metrics/tests/probes/memory
parentdc61aa7691d70b9cc74c5077b49472e64a921f74 (diff)
downloadqtlocation-mapboxgl-970cabe0eb441270ca3af44e495a5fee997ab54c.tar.gz
[build] Reorganize the render tests
Move everything that might collect metrics to the metrics/ directory, the only test manifests inside the render-test/ directory are the unit tests of the probes.
Diffstat (limited to 'metrics/tests/probes/memory')
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-big/expected.pngbin0 -> 96 bytes
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-big/metrics.json19
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-big/style.json52
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-small/expected.pngbin0 -> 96 bytes
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-small/metrics.json19
-rw-r--r--metrics/tests/probes/memory/fail-memory-size-is-too-small/style.json52
-rw-r--r--metrics/tests/probes/memory/pass-memory-size-is-same/expected.pngbin0 -> 96 bytes
-rw-r--r--metrics/tests/probes/memory/pass-memory-size-is-same/metrics.json19
-rw-r--r--metrics/tests/probes/memory/pass-memory-size-is-same/style.json52
9 files changed, 213 insertions, 0 deletions
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-big/expected.png b/metrics/tests/probes/memory/fail-memory-size-is-too-big/expected.png
new file mode 100644
index 0000000000..0858c19f05
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-big/expected.png
Binary files differ
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-big/metrics.json b/metrics/tests/probes/memory/fail-memory-size-is-too-big/metrics.json
new file mode 100644
index 0000000000..f13f54410d
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-big/metrics.json
@@ -0,0 +1,19 @@
+{
+ "memory": [
+ [
+ "after setZoom 0.9",
+ 21439,
+ 57
+ ],
+ [
+ "end",
+ 20000,
+ 108
+ ],
+ [
+ "start",
+ 0,
+ 0
+ ]
+ ]
+}
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-big/style.json b/metrics/tests/probes/memory/fail-memory-size-is-too-big/style.json
new file mode 100644
index 0000000000..b2805ef34f
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-big/style.json
@@ -0,0 +1,52 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "width": 64,
+ "height": 64,
+ "operations": [
+ [ "wait" ],
+ [ "probeMemoryStart" ],
+ [ "probeMemory", "start" ],
+ [
+ "setZoom",
+ 0.9
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "after setZoom 0.9", 0.005 ],
+ [
+ "setLayerZoomRange",
+ "circle",
+ 1,
+ 2
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "end", 0.005 ],
+ [ "probeMemoryEnd" ]
+ ]
+ }
+ },
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": {
+ "type": "Point",
+ "coordinates": [
+ 0,
+ 0
+ ]
+ }
+ }
+ },
+ "layers": [
+ {
+ "id": "circle",
+ "type": "circle",
+ "source": "geojson"
+ }
+ ]
+}
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-small/expected.png b/metrics/tests/probes/memory/fail-memory-size-is-too-small/expected.png
new file mode 100644
index 0000000000..0858c19f05
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-small/expected.png
Binary files differ
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-small/metrics.json b/metrics/tests/probes/memory/fail-memory-size-is-too-small/metrics.json
new file mode 100644
index 0000000000..9aba39584a
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-small/metrics.json
@@ -0,0 +1,19 @@
+{
+ "memory": [
+ [
+ "after setZoom 0.9",
+ 21439,
+ 57
+ ],
+ [
+ "end",
+ 60000,
+ 108
+ ],
+ [
+ "start",
+ 0,
+ 0
+ ]
+ ]
+}
diff --git a/metrics/tests/probes/memory/fail-memory-size-is-too-small/style.json b/metrics/tests/probes/memory/fail-memory-size-is-too-small/style.json
new file mode 100644
index 0000000000..b2805ef34f
--- /dev/null
+++ b/metrics/tests/probes/memory/fail-memory-size-is-too-small/style.json
@@ -0,0 +1,52 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "width": 64,
+ "height": 64,
+ "operations": [
+ [ "wait" ],
+ [ "probeMemoryStart" ],
+ [ "probeMemory", "start" ],
+ [
+ "setZoom",
+ 0.9
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "after setZoom 0.9", 0.005 ],
+ [
+ "setLayerZoomRange",
+ "circle",
+ 1,
+ 2
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "end", 0.005 ],
+ [ "probeMemoryEnd" ]
+ ]
+ }
+ },
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": {
+ "type": "Point",
+ "coordinates": [
+ 0,
+ 0
+ ]
+ }
+ }
+ },
+ "layers": [
+ {
+ "id": "circle",
+ "type": "circle",
+ "source": "geojson"
+ }
+ ]
+}
diff --git a/metrics/tests/probes/memory/pass-memory-size-is-same/expected.png b/metrics/tests/probes/memory/pass-memory-size-is-same/expected.png
new file mode 100644
index 0000000000..0858c19f05
--- /dev/null
+++ b/metrics/tests/probes/memory/pass-memory-size-is-same/expected.png
Binary files differ
diff --git a/metrics/tests/probes/memory/pass-memory-size-is-same/metrics.json b/metrics/tests/probes/memory/pass-memory-size-is-same/metrics.json
new file mode 100644
index 0000000000..3ffbe1b732
--- /dev/null
+++ b/metrics/tests/probes/memory/pass-memory-size-is-same/metrics.json
@@ -0,0 +1,19 @@
+{
+ "memory": [
+ [
+ "after setZoom 0.9",
+ 21439,
+ 57
+ ],
+ [
+ "end",
+ 23385,
+ 108
+ ],
+ [
+ "start",
+ 0,
+ 0
+ ]
+ ]
+}
diff --git a/metrics/tests/probes/memory/pass-memory-size-is-same/style.json b/metrics/tests/probes/memory/pass-memory-size-is-same/style.json
new file mode 100644
index 0000000000..d1c09f69f9
--- /dev/null
+++ b/metrics/tests/probes/memory/pass-memory-size-is-same/style.json
@@ -0,0 +1,52 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "width": 64,
+ "height": 64,
+ "operations": [
+ [ "wait" ],
+ [ "probeMemoryStart" ],
+ [ "probeMemory", "start" ],
+ [
+ "setZoom",
+ 0.9
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "after setZoom 0.9", 0.01 ],
+ [
+ "setLayerZoomRange",
+ "circle",
+ 1,
+ 2
+ ],
+ [
+ "wait"
+ ],
+ [ "probeMemory", "end", 0.01 ],
+ [ "probeMemoryEnd" ]
+ ]
+ }
+ },
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": {
+ "type": "Point",
+ "coordinates": [
+ 0,
+ 0
+ ]
+ }
+ }
+ },
+ "layers": [
+ {
+ "id": "circle",
+ "type": "circle",
+ "source": "geojson"
+ }
+ ]
+}