summaryrefslogtreecommitdiffstats
path: root/test/configs/installed
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
commit207df6fc406e81bfeebdff7f404bd242ff3f099f (patch)
treea1a796b056909dd0a04ffec163db9363a8757808 /test/configs/installed
parentReleasing progress-linux version 0.11.2-1~progress7.99u1. (diff)
downloadlnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz
lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/configs/installed/anno-test.json12
-rwxr-xr-xtest/configs/installed/anno-test.sh3
-rw-r--r--test/configs/installed/hw-url-handler.json10
-rw-r--r--test/configs/installed/hw-url-handler.lnav10
4 files changed, 35 insertions, 0 deletions
diff --git a/test/configs/installed/anno-test.json b/test/configs/installed/anno-test.json
new file mode 100644
index 0000000..24806c5
--- /dev/null
+++ b/test/configs/installed/anno-test.json
@@ -0,0 +1,12 @@
+{
+ "$schema": "https://lnav.org/schemas/config-v1.schema.json",
+ "log": {
+ "annotations": {
+ "org.lnav.test": {
+ "description": "test annotation",
+ "condition": ":c_ip IS NOT NULL AND $TEST_ANNO = '1'",
+ "handler": "anno-test.sh"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/test/configs/installed/anno-test.sh b/test/configs/installed/anno-test.sh
new file mode 100755
index 0000000..7633240
--- /dev/null
+++ b/test/configs/installed/anno-test.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+echo 'Hello, <span style="color: #f00">World</span>!'
diff --git a/test/configs/installed/hw-url-handler.json b/test/configs/installed/hw-url-handler.json
new file mode 100644
index 0000000..f1d3c73
--- /dev/null
+++ b/test/configs/installed/hw-url-handler.json
@@ -0,0 +1,10 @@
+{
+ "$schema": "https://lnav.org/schemas/config-v1.schema.json",
+ "tuning": {
+ "url-scheme": {
+ "hw": {
+ "handler": "hw-url-handler"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/test/configs/installed/hw-url-handler.lnav b/test/configs/installed/hw-url-handler.lnav
new file mode 100644
index 0000000..dcf9ec1
--- /dev/null
+++ b/test/configs/installed/hw-url-handler.lnav
@@ -0,0 +1,10 @@
+#
+# @synopsis: hw-url-handler
+# @description: Hello, World! URL handler
+#
+
+;SELECT jget(url, '/host') AS hostname,
+ jget(url, '/path') AS upath
+ FROM (SELECT parse_url($1) AS url)
+
+:sh echo "Hello, $upath at $hostname!"