summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-03-27 22:19:19 +0300
committerPaul Buetow <paul@buetow.org>2023-03-27 22:19:19 +0300
commit152ea8e177a609b02b415d3399b5d078eff23eaa (patch)
treefc17b10497fcd3a1775f06c6647d3ae2e997a932
parent54f506de1fd1d0f58fe0c50f88476df89241dd7e (diff)
add a test per output format
-rw-r--r--fixtures/Host.Boots.Gemtext.expected13
-rw-r--r--fixtures/Host.Boots.Markdown.expected13
-rw-r--r--fixtures/Host.Boots.Plaintext.expected (renamed from fixtures/Host.Boots.expected-output)0
-rw-r--r--fixtures/Host.Downtime.Gemtext.expected13
-rw-r--r--fixtures/Host.Downtime.Markdown.expected13
-rw-r--r--fixtures/Host.Downtime.Plaintext.expected (renamed from fixtures/Host.Downtime.expected-output)0
-rw-r--r--fixtures/Host.Lifespan.Gemtext.expected13
-rw-r--r--fixtures/Host.Lifespan.Markdown.expected13
-rw-r--r--fixtures/Host.Lifespan.Plaintext.expected (renamed from fixtures/Host.Lifespan.expected-output)0
-rw-r--r--fixtures/Host.MetaScore.Gemtext.expected13
-rw-r--r--fixtures/Host.MetaScore.Markdown.expected13
-rw-r--r--fixtures/Host.MetaScore.Plaintext.expected (renamed from fixtures/Host.MetaScore.expected-output)0
-rw-r--r--fixtures/Host.Uptime.Gemtext.expected13
-rw-r--r--fixtures/Host.Uptime.Markdown.expected13
-rw-r--r--fixtures/Host.Uptime.Plaintext.expected (renamed from fixtures/Host.Uptime.expected-output)0
-rw-r--r--fixtures/OS.Boots.Gemtext.expected13
-rw-r--r--fixtures/OS.Boots.Markdown.expected13
-rw-r--r--fixtures/OS.Boots.Plaintext.expected (renamed from fixtures/OS.Boots.expected-output)0
-rw-r--r--fixtures/OS.MetaScore.Gemtext.expected13
-rw-r--r--fixtures/OS.MetaScore.Markdown.expected13
-rw-r--r--fixtures/OS.MetaScore.Plaintext.expected (renamed from fixtures/OS.MetaScore.expected-output)0
-rw-r--r--fixtures/OS.Uptime.Gemtext.expected13
-rw-r--r--fixtures/OS.Uptime.Markdown.expected13
-rw-r--r--fixtures/OS.Uptime.Plaintext.expected (renamed from fixtures/OS.Uptime.expected-output)0
-rw-r--r--fixtures/OSMajor.Boots.Gemtext.expected13
-rw-r--r--fixtures/OSMajor.Boots.Markdown.expected13
-rw-r--r--fixtures/OSMajor.Boots.Plaintext.expected (renamed from fixtures/OSMajor.Boots.expected-output)0
-rw-r--r--fixtures/OSMajor.MetaScore.Gemtext.expected13
-rw-r--r--fixtures/OSMajor.MetaScore.Markdown.expected13
-rw-r--r--fixtures/OSMajor.MetaScore.Plaintext.expected (renamed from fixtures/OSMajor.MetaScore.expected-output)2
-rw-r--r--fixtures/OSMajor.Uptime.Gemtext.expected13
-rw-r--r--fixtures/OSMajor.Uptime.Markdown.expected13
-rw-r--r--fixtures/OSMajor.Uptime.Plaintext.expected (renamed from fixtures/OSMajor.Uptime.expected-output)0
-rw-r--r--fixtures/Uname.Boots.Gemtext.expected12
-rw-r--r--fixtures/Uname.Boots.Markdown.expected12
-rw-r--r--fixtures/Uname.Boots.Plaintext.expected (renamed from fixtures/Uname.Boots.expected-output)0
-rw-r--r--fixtures/Uname.MetaScore.Gemtext.expected12
-rw-r--r--fixtures/Uname.MetaScore.Markdown.expected12
-rw-r--r--fixtures/Uname.MetaScore.Plaintext.expected (renamed from fixtures/Uname.MetaScore.expected-output)0
-rw-r--r--fixtures/Uname.Uptime.Gemtext.expected12
-rw-r--r--fixtures/Uname.Uptime.Markdown.expected12
-rw-r--r--fixtures/Uname.Uptime.Plaintext.expected (renamed from fixtures/Uname.Uptime.expected-output)0
-rw-r--r--guprecords.raku9
43 files changed, 364 insertions, 5 deletions
diff --git a/fixtures/Host.Boots.Gemtext.expected b/fixtures/Host.Boots.Gemtext.expected
new file mode 100644
index 0000000..f1ee20f
--- /dev/null
+++ b/fixtures/Host.Boots.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by Host:
+
+```
++-----+----------------+-------+
+| Pos | Host | Boots |
++-----+----------------+-------+
+| 1. | alphacentauri | 671 |
+| 2. | mars | 207 |
+| 3. | callisto | 153 |
+| 4. | uranus | 150 |
+| 5. | dionysus | 136 |
++-----+----------------+-------+
+```
diff --git a/fixtures/Host.Boots.Markdown.expected b/fixtures/Host.Boots.Markdown.expected
new file mode 100644
index 0000000..f1ee20f
--- /dev/null
+++ b/fixtures/Host.Boots.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by Host:
+
+```
++-----+----------------+-------+
+| Pos | Host | Boots |
++-----+----------------+-------+
+| 1. | alphacentauri | 671 |
+| 2. | mars | 207 |
+| 3. | callisto | 153 |
+| 4. | uranus | 150 |
+| 5. | dionysus | 136 |
++-----+----------------+-------+
+```
diff --git a/fixtures/Host.Boots.expected-output b/fixtures/Host.Boots.Plaintext.expected
index 46e4586..46e4586 100644
--- a/fixtures/Host.Boots.expected-output
+++ b/fixtures/Host.Boots.Plaintext.expected
diff --git a/fixtures/Host.Downtime.Gemtext.expected b/fixtures/Host.Downtime.Gemtext.expected
new file mode 100644
index 0000000..1e9baf4
--- /dev/null
+++ b/fixtures/Host.Downtime.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Downtime's by Host:
+
+```
++-----+----------------+-----------------------------+
+| Pos | Host | Downtime |
++-----+----------------+-----------------------------+
+| 1. | dionysus | 8 years, 3 months, 16 days |
+| 2. | alphacentauri | 5 years, 11 months, 18 days |
+| 3. | uranus | 3 years, 3 months, 28 days |
+| 4. | callisto | 1 years, 5 months, 15 days |
+| 5. | mars | 1 years, 2 months, 10 days |
++-----+----------------+-----------------------------+
+```
diff --git a/fixtures/Host.Downtime.Markdown.expected b/fixtures/Host.Downtime.Markdown.expected
new file mode 100644
index 0000000..1e9baf4
--- /dev/null
+++ b/fixtures/Host.Downtime.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Downtime's by Host:
+
+```
++-----+----------------+-----------------------------+
+| Pos | Host | Downtime |
++-----+----------------+-----------------------------+
+| 1. | dionysus | 8 years, 3 months, 16 days |
+| 2. | alphacentauri | 5 years, 11 months, 18 days |
+| 3. | uranus | 3 years, 3 months, 28 days |
+| 4. | callisto | 1 years, 5 months, 15 days |
+| 5. | mars | 1 years, 2 months, 10 days |
++-----+----------------+-----------------------------+
+```
diff --git a/fixtures/Host.Downtime.expected-output b/fixtures/Host.Downtime.Plaintext.expected
index e3974c9..e3974c9 100644
--- a/fixtures/Host.Downtime.expected-output
+++ b/fixtures/Host.Downtime.Plaintext.expected
diff --git a/fixtures/Host.Lifespan.Gemtext.expected b/fixtures/Host.Lifespan.Gemtext.expected
new file mode 100644
index 0000000..0b4b35e
--- /dev/null
+++ b/fixtures/Host.Lifespan.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Lifespan's by Host:
+
+```
++-----+----------------+----------------------------+
+| Pos | Host | Lifespan |
++-----+----------------+----------------------------+
+| 1. | dionysus | 8 years, 6 months, 17 days |
+| 2. | uranus | 7 years, 2 months, 16 days |
+| 3. | alphacentauri | 6 years, 9 months, 13 days |
+| 4. | *vulcan | 4 years, 4 months, 7 days |
+| 5. | sun | 3 years, 10 months, 2 days |
++-----+----------------+----------------------------+
+```
diff --git a/fixtures/Host.Lifespan.Markdown.expected b/fixtures/Host.Lifespan.Markdown.expected
new file mode 100644
index 0000000..0b4b35e
--- /dev/null
+++ b/fixtures/Host.Lifespan.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Lifespan's by Host:
+
+```
++-----+----------------+----------------------------+
+| Pos | Host | Lifespan |
++-----+----------------+----------------------------+
+| 1. | dionysus | 8 years, 6 months, 17 days |
+| 2. | uranus | 7 years, 2 months, 16 days |
+| 3. | alphacentauri | 6 years, 9 months, 13 days |
+| 4. | *vulcan | 4 years, 4 months, 7 days |
+| 5. | sun | 3 years, 10 months, 2 days |
++-----+----------------+----------------------------+
+```
diff --git a/fixtures/Host.Lifespan.expected-output b/fixtures/Host.Lifespan.Plaintext.expected
index 1bc40d4..1bc40d4 100644
--- a/fixtures/Host.Lifespan.expected-output
+++ b/fixtures/Host.Lifespan.Plaintext.expected
diff --git a/fixtures/Host.MetaScore.Gemtext.expected b/fixtures/Host.MetaScore.Gemtext.expected
new file mode 100644
index 0000000..91ee01e
--- /dev/null
+++ b/fixtures/Host.MetaScore.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by Host:
+
+```
++-----+----------------+-----------+
+| Pos | Host | MetaScore |
++-----+----------------+-----------+
+| 1. | uranus | 360 |
+| 2. | alphacentauri | 294 |
+| 3. | dionysus | 285 |
+| 4. | *vulcan | 273 |
+| 5. | sun | 238 |
++-----+----------------+-----------+
+```
diff --git a/fixtures/Host.MetaScore.Markdown.expected b/fixtures/Host.MetaScore.Markdown.expected
new file mode 100644
index 0000000..91ee01e
--- /dev/null
+++ b/fixtures/Host.MetaScore.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by Host:
+
+```
++-----+----------------+-----------+
+| Pos | Host | MetaScore |
++-----+----------------+-----------+
+| 1. | uranus | 360 |
+| 2. | alphacentauri | 294 |
+| 3. | dionysus | 285 |
+| 4. | *vulcan | 273 |
+| 5. | sun | 238 |
++-----+----------------+-----------+
+```
diff --git a/fixtures/Host.MetaScore.expected-output b/fixtures/Host.MetaScore.Plaintext.expected
index 457a5cf..457a5cf 100644
--- a/fixtures/Host.MetaScore.expected-output
+++ b/fixtures/Host.MetaScore.Plaintext.expected
diff --git a/fixtures/Host.Uptime.Gemtext.expected b/fixtures/Host.Uptime.Gemtext.expected
new file mode 100644
index 0000000..62f747b
--- /dev/null
+++ b/fixtures/Host.Uptime.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by Host:
+
+```
++-----+------------+-----------------------------+
+| Pos | Host | Uptime |
++-----+------------+-----------------------------+
+| 1. | *vulcan | 4 years, 4 months, 7 days |
+| 2. | uranus | 3 years, 11 months, 21 days |
+| 3. | sun | 3 years, 9 months, 26 days |
+| 4. | uugrn | 3 years, 5 months, 5 days |
+| 5. | deltavega | 3 years, 1 months, 21 days |
++-----+------------+-----------------------------+
+```
diff --git a/fixtures/Host.Uptime.Markdown.expected b/fixtures/Host.Uptime.Markdown.expected
new file mode 100644
index 0000000..62f747b
--- /dev/null
+++ b/fixtures/Host.Uptime.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by Host:
+
+```
++-----+------------+-----------------------------+
+| Pos | Host | Uptime |
++-----+------------+-----------------------------+
+| 1. | *vulcan | 4 years, 4 months, 7 days |
+| 2. | uranus | 3 years, 11 months, 21 days |
+| 3. | sun | 3 years, 9 months, 26 days |
+| 4. | uugrn | 3 years, 5 months, 5 days |
+| 5. | deltavega | 3 years, 1 months, 21 days |
++-----+------------+-----------------------------+
+```
diff --git a/fixtures/Host.Uptime.expected-output b/fixtures/Host.Uptime.Plaintext.expected
index 3264e49..3264e49 100644
--- a/fixtures/Host.Uptime.expected-output
+++ b/fixtures/Host.Uptime.Plaintext.expected
diff --git a/fixtures/OS.Boots.Gemtext.expected b/fixtures/OS.Boots.Gemtext.expected
new file mode 100644
index 0000000..eeefa8d
--- /dev/null
+++ b/fixtures/OS.Boots.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by OS:
+
+```
++-----+------------------------------+-------+
+| Pos | OS | Boots |
++-----+------------------------------+-------+
+| 1. | Linux 3.2.0-4-amd64 | 321 |
+| 2. | Linux 4.0.4-303.fc22.x86_64 | 103 |
+| 3. | FreeBSD 10.1-RELEASE | 76 |
+| 4. | FreeBSD 10.0-RELEASE | 52 |
+| 5. | FreeBSD 10.1-RELEASE-p19 | 48 |
++-----+------------------------------+-------+
+```
diff --git a/fixtures/OS.Boots.Markdown.expected b/fixtures/OS.Boots.Markdown.expected
new file mode 100644
index 0000000..eeefa8d
--- /dev/null
+++ b/fixtures/OS.Boots.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by OS:
+
+```
++-----+------------------------------+-------+
+| Pos | OS | Boots |
++-----+------------------------------+-------+
+| 1. | Linux 3.2.0-4-amd64 | 321 |
+| 2. | Linux 4.0.4-303.fc22.x86_64 | 103 |
+| 3. | FreeBSD 10.1-RELEASE | 76 |
+| 4. | FreeBSD 10.0-RELEASE | 52 |
+| 5. | FreeBSD 10.1-RELEASE-p19 | 48 |
++-----+------------------------------+-------+
+```
diff --git a/fixtures/OS.Boots.expected-output b/fixtures/OS.Boots.Plaintext.expected
index d7cbe84..d7cbe84 100644
--- a/fixtures/OS.Boots.expected-output
+++ b/fixtures/OS.Boots.Plaintext.expected
diff --git a/fixtures/OS.MetaScore.Gemtext.expected b/fixtures/OS.MetaScore.Gemtext.expected
new file mode 100644
index 0000000..322face
--- /dev/null
+++ b/fixtures/OS.MetaScore.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by OS:
+
+```
++-----+------------------------------------+-----------+
+| Pos | OS | MetaScore |
++-----+------------------------------------+-----------+
+| 1. | Linux 3.2.0-4-amd64 | 241 |
+| 2. | *Linux 3.10.0-1160.15.2.el7.x86_64 | 126 |
+| 3. | Linux 3.10.0-957.21.3.el7.x86_64 | 96 |
+| 4. | FreeBSD 10.1-RELEASE-p16 | 88 |
+| 5. | FreeBSD 10.2-RELEASE | 75 |
++-----+------------------------------------+-----------+
+```
diff --git a/fixtures/OS.MetaScore.Markdown.expected b/fixtures/OS.MetaScore.Markdown.expected
new file mode 100644
index 0000000..322face
--- /dev/null
+++ b/fixtures/OS.MetaScore.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by OS:
+
+```
++-----+------------------------------------+-----------+
+| Pos | OS | MetaScore |
++-----+------------------------------------+-----------+
+| 1. | Linux 3.2.0-4-amd64 | 241 |
+| 2. | *Linux 3.10.0-1160.15.2.el7.x86_64 | 126 |
+| 3. | Linux 3.10.0-957.21.3.el7.x86_64 | 96 |
+| 4. | FreeBSD 10.1-RELEASE-p16 | 88 |
+| 5. | FreeBSD 10.2-RELEASE | 75 |
++-----+------------------------------------+-----------+
+```
diff --git a/fixtures/OS.MetaScore.expected-output b/fixtures/OS.MetaScore.Plaintext.expected
index 59fdb15..59fdb15 100644
--- a/fixtures/OS.MetaScore.expected-output
+++ b/fixtures/OS.MetaScore.Plaintext.expected
diff --git a/fixtures/OS.Uptime.Gemtext.expected b/fixtures/OS.Uptime.Gemtext.expected
new file mode 100644
index 0000000..2ed5501
--- /dev/null
+++ b/fixtures/OS.Uptime.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by OS:
+
+```
++-----+------------------------------------+-----------------------------+
+| Pos | OS | Uptime |
++-----+------------------------------------+-----------------------------+
+| 1. | Linux 3.2.0-4-amd64 | 3 years, 5 months, 23 days |
+| 2. | *Linux 3.10.0-1160.15.2.el7.x86_64 | 1 years, 12 months, 15 days |
+| 3. | Linux 3.10.0-957.21.3.el7.x86_64 | 1 years, 7 months, 13 days |
+| 4. | FreeBSD 10.1-RELEASE-p16 | 1 years, 5 months, 23 days |
+| 5. | FreeBSD 10.2-RELEASE | 1 years, 3 months, 11 days |
++-----+------------------------------------+-----------------------------+
+```
diff --git a/fixtures/OS.Uptime.Markdown.expected b/fixtures/OS.Uptime.Markdown.expected
new file mode 100644
index 0000000..2ed5501
--- /dev/null
+++ b/fixtures/OS.Uptime.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by OS:
+
+```
++-----+------------------------------------+-----------------------------+
+| Pos | OS | Uptime |
++-----+------------------------------------+-----------------------------+
+| 1. | Linux 3.2.0-4-amd64 | 3 years, 5 months, 23 days |
+| 2. | *Linux 3.10.0-1160.15.2.el7.x86_64 | 1 years, 12 months, 15 days |
+| 3. | Linux 3.10.0-957.21.3.el7.x86_64 | 1 years, 7 months, 13 days |
+| 4. | FreeBSD 10.1-RELEASE-p16 | 1 years, 5 months, 23 days |
+| 5. | FreeBSD 10.2-RELEASE | 1 years, 3 months, 11 days |
++-----+------------------------------------+-----------------------------+
+```
diff --git a/fixtures/OS.Uptime.expected-output b/fixtures/OS.Uptime.Plaintext.expected
index 680ed06..680ed06 100644
--- a/fixtures/OS.Uptime.expected-output
+++ b/fixtures/OS.Uptime.Plaintext.expected
diff --git a/fixtures/OSMajor.Boots.Gemtext.expected b/fixtures/OSMajor.Boots.Gemtext.expected
new file mode 100644
index 0000000..eefb6a8
--- /dev/null
+++ b/fixtures/OSMajor.Boots.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by OSMajor:
+
+```
++-----+----------------+-------+
+| Pos | OSMajor | Boots |
++-----+----------------+-------+
+| 1. | FreeBSD 10... | 551 |
+| 2. | *Linux 3... | 410 |
+| 3. | Linux 5... | 249 |
+| 4. | Linux 4... | 164 |
+| 5. | FreeBSD 11... | 153 |
++-----+----------------+-------+
+```
diff --git a/fixtures/OSMajor.Boots.Markdown.expected b/fixtures/OSMajor.Boots.Markdown.expected
new file mode 100644
index 0000000..eefb6a8
--- /dev/null
+++ b/fixtures/OSMajor.Boots.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Boots's by OSMajor:
+
+```
++-----+----------------+-------+
+| Pos | OSMajor | Boots |
++-----+----------------+-------+
+| 1. | FreeBSD 10... | 551 |
+| 2. | *Linux 3... | 410 |
+| 3. | Linux 5... | 249 |
+| 4. | Linux 4... | 164 |
+| 5. | FreeBSD 11... | 153 |
++-----+----------------+-------+
+```
diff --git a/fixtures/OSMajor.Boots.expected-output b/fixtures/OSMajor.Boots.Plaintext.expected
index e98f8e9..e98f8e9 100644
--- a/fixtures/OSMajor.Boots.expected-output
+++ b/fixtures/OSMajor.Boots.Plaintext.expected
diff --git a/fixtures/OSMajor.MetaScore.Gemtext.expected b/fixtures/OSMajor.MetaScore.Gemtext.expected
new file mode 100644
index 0000000..81bfc21
--- /dev/null
+++ b/fixtures/OSMajor.MetaScore.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by OSMajor:
+
+```
++-----+----------------+-----------+
+| Pos | OSMajor | MetaScore |
++-----+----------------+-----------+
+| 1. | *Linux 3... | 739 |
+| 2. | FreeBSD 10... | 406 |
+| 3. | Linux 5... | 268 |
+| 4. | Linux 4... | 178 |
+| 5. | FreeBSD 11... | 159 |
++-----+----------------+-----------+
+```
diff --git a/fixtures/OSMajor.MetaScore.Markdown.expected b/fixtures/OSMajor.MetaScore.Markdown.expected
new file mode 100644
index 0000000..81bfc21
--- /dev/null
+++ b/fixtures/OSMajor.MetaScore.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 MetaScore's by OSMajor:
+
+```
++-----+----------------+-----------+
+| Pos | OSMajor | MetaScore |
++-----+----------------+-----------+
+| 1. | *Linux 3... | 739 |
+| 2. | FreeBSD 10... | 406 |
+| 3. | Linux 5... | 268 |
+| 4. | Linux 4... | 178 |
+| 5. | FreeBSD 11... | 159 |
++-----+----------------+-----------+
+```
diff --git a/fixtures/OSMajor.MetaScore.expected-output b/fixtures/OSMajor.MetaScore.Plaintext.expected
index f04bbfe..688afb8 100644
--- a/fixtures/OSMajor.MetaScore.expected-output
+++ b/fixtures/OSMajor.MetaScore.Plaintext.expected
@@ -7,5 +7,5 @@ Top 5 MetaScore's by OSMajor:
| 2. | FreeBSD 10... | 406 |
| 3. | Linux 5... | 268 |
| 4. | Linux 4... | 178 |
-| 5. | *OpenBSD 7... | 159 |
+| 5. | FreeBSD 11... | 159 |
+-----+----------------+-----------+
diff --git a/fixtures/OSMajor.Uptime.Gemtext.expected b/fixtures/OSMajor.Uptime.Gemtext.expected
new file mode 100644
index 0000000..532ec32
--- /dev/null
+++ b/fixtures/OSMajor.Uptime.Gemtext.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by OSMajor:
+
+```
++-----+----------------+-----------------------------+
+| Pos | OSMajor | Uptime |
++-----+----------------+-----------------------------+
+| 1. | *Linux 3... | 11 years, 2 months, 11 days |
+| 2. | FreeBSD 10... | 5 years, 9 months, 9 days |
+| 3. | Linux 5... | 3 years, 12 months, 2 days |
+| 4. | Linux 4... | 2 years, 8 months, 9 days |
+| 5. | *OpenBSD 7... | 2 years, 6 months, 9 days |
++-----+----------------+-----------------------------+
+```
diff --git a/fixtures/OSMajor.Uptime.Markdown.expected b/fixtures/OSMajor.Uptime.Markdown.expected
new file mode 100644
index 0000000..532ec32
--- /dev/null
+++ b/fixtures/OSMajor.Uptime.Markdown.expected
@@ -0,0 +1,13 @@
+# Top 5 Uptime's by OSMajor:
+
+```
++-----+----------------+-----------------------------+
+| Pos | OSMajor | Uptime |
++-----+----------------+-----------------------------+
+| 1. | *Linux 3... | 11 years, 2 months, 11 days |
+| 2. | FreeBSD 10... | 5 years, 9 months, 9 days |
+| 3. | Linux 5... | 3 years, 12 months, 2 days |
+| 4. | Linux 4... | 2 years, 8 months, 9 days |
+| 5. | *OpenBSD 7... | 2 years, 6 months, 9 days |
++-----+----------------+-----------------------------+
+```
diff --git a/fixtures/OSMajor.Uptime.expected-output b/fixtures/OSMajor.Uptime.Plaintext.expected
index 2a595ea..2a595ea 100644
--- a/fixtures/OSMajor.Uptime.expected-output
+++ b/fixtures/OSMajor.Uptime.Plaintext.expected
diff --git a/fixtures/Uname.Boots.Gemtext.expected b/fixtures/Uname.Boots.Gemtext.expected
new file mode 100644
index 0000000..166c0a3
--- /dev/null
+++ b/fixtures/Uname.Boots.Gemtext.expected
@@ -0,0 +1,12 @@
+# Top 5 Boots's by Uname:
+
+```
++-----+----------+-------+
+| Pos | Uname | Boots |
++-----+----------+-------+
+| 1. | *FreeBSD | 872 |
+| 2. | *Linux | 867 |
+| 3. | *OpenBSD | 44 |
+| 4. | Darwin | 15 |
++-----+----------+-------+
+```
diff --git a/fixtures/Uname.Boots.Markdown.expected b/fixtures/Uname.Boots.Markdown.expected
new file mode 100644
index 0000000..166c0a3
--- /dev/null
+++ b/fixtures/Uname.Boots.Markdown.expected
@@ -0,0 +1,12 @@
+# Top 5 Boots's by Uname:
+
+```
++-----+----------+-------+
+| Pos | Uname | Boots |
++-----+----------+-------+
+| 1. | *FreeBSD | 872 |
+| 2. | *Linux | 867 |
+| 3. | *OpenBSD | 44 |
+| 4. | Darwin | 15 |
++-----+----------+-------+
+```
diff --git a/fixtures/Uname.Boots.expected-output b/fixtures/Uname.Boots.Plaintext.expected
index fb66c9d..fb66c9d 100644
--- a/fixtures/Uname.Boots.expected-output
+++ b/fixtures/Uname.Boots.Plaintext.expected
diff --git a/fixtures/Uname.MetaScore.Gemtext.expected b/fixtures/Uname.MetaScore.Gemtext.expected
new file mode 100644
index 0000000..c988c91
--- /dev/null
+++ b/fixtures/Uname.MetaScore.Gemtext.expected
@@ -0,0 +1,12 @@
+# Top 5 MetaScore's by Uname:
+
+```
++-----+----------+-----------+
+| Pos | Uname | MetaScore |
++-----+----------+-----------+
+| 1. | *Linux | 1295 |
+| 2. | *FreeBSD | 703 |
+| 3. | *OpenBSD | 198 |
+| 4. | Darwin | 29 |
++-----+----------+-----------+
+```
diff --git a/fixtures/Uname.MetaScore.Markdown.expected b/fixtures/Uname.MetaScore.Markdown.expected
new file mode 100644
index 0000000..c988c91
--- /dev/null
+++ b/fixtures/Uname.MetaScore.Markdown.expected
@@ -0,0 +1,12 @@
+# Top 5 MetaScore's by Uname:
+
+```
++-----+----------+-----------+
+| Pos | Uname | MetaScore |
++-----+----------+-----------+
+| 1. | *Linux | 1295 |
+| 2. | *FreeBSD | 703 |
+| 3. | *OpenBSD | 198 |
+| 4. | Darwin | 29 |
++-----+----------+-----------+
+```
diff --git a/fixtures/Uname.MetaScore.expected-output b/fixtures/Uname.MetaScore.Plaintext.expected
index 6911238..6911238 100644
--- a/fixtures/Uname.MetaScore.expected-output
+++ b/fixtures/Uname.MetaScore.Plaintext.expected
diff --git a/fixtures/Uname.Uptime.Gemtext.expected b/fixtures/Uname.Uptime.Gemtext.expected
new file mode 100644
index 0000000..d8704d3
--- /dev/null
+++ b/fixtures/Uname.Uptime.Gemtext.expected
@@ -0,0 +1,12 @@
+# Top 5 Uptime's by Uname:
+
+```
++-----+----------+-----------------------------+
+| Pos | Uname | Uptime |
++-----+----------+-----------------------------+
+| 1. | *Linux | 19 years, 4 months, 18 days |
+| 2. | *FreeBSD | 9 years, 11 months, 29 days |
+| 3. | *OpenBSD | 3 years, 1 months, 18 days |
+| 4. | Darwin | 0 years, 6 months, 15 days |
++-----+----------+-----------------------------+
+```
diff --git a/fixtures/Uname.Uptime.Markdown.expected b/fixtures/Uname.Uptime.Markdown.expected
new file mode 100644
index 0000000..d8704d3
--- /dev/null
+++ b/fixtures/Uname.Uptime.Markdown.expected
@@ -0,0 +1,12 @@
+# Top 5 Uptime's by Uname:
+
+```
++-----+----------+-----------------------------+
+| Pos | Uname | Uptime |
++-----+----------+-----------------------------+
+| 1. | *Linux | 19 years, 4 months, 18 days |
+| 2. | *FreeBSD | 9 years, 11 months, 29 days |
+| 3. | *OpenBSD | 3 years, 1 months, 18 days |
+| 4. | Darwin | 0 years, 6 months, 15 days |
++-----+----------+-----------------------------+
+```
diff --git a/fixtures/Uname.Uptime.expected-output b/fixtures/Uname.Uptime.Plaintext.expected
index 63aef68..63aef68 100644
--- a/fixtures/Uname.Uptime.expected-output
+++ b/fixtures/Uname.Uptime.Plaintext.expected
diff --git a/guprecords.raku b/guprecords.raku
index cb331ed..a09f4a5 100644
--- a/guprecords.raku
+++ b/guprecords.raku
@@ -232,9 +232,10 @@ multi sub MAIN('test') {
use Test;
my @combs = gather {
- for Category.^enum_value_list X Metric.^enum_value_list -> (Category $category, Metric $metric) {
+ for Category.^enum_value_list X Metric.^enum_value_list X OutputFormat.^enum_value_list
+ -> (Category $category, Metric $metric, OutputFormat $output-format) {
next if $category !~~ Host and $metric !~~ MetricSubset;
- take $category, $metric;
+ take $category, $metric, $output-format;
}
}
@@ -243,11 +244,11 @@ multi sub MAIN('test') {
my $output-format = Plaintext;
my %aggregates = Aggregator.new('./fixtures').aggregate;
- for @combs -> (Category $category, Metric $metric) {
+ for @combs -> (Category $category, Metric $metric, OutputFormat $output-format) {
my \reporter = $category ~~ Host
?? HostReporter.new(:%aggregates, :$metric, :$limit, :$output-format)
!! Reporter.new(:%aggregates, :$category, :$metric, :$limit, :$output-format);
- is reporter.report, "./fixtures/$category.$metric.expected-output".IO.slurp;
+ is reporter.report, "./fixtures/$category.$metric.$output-format.expected".IO.slurp;
}
done-testing;