From 207df6fc406e81bfeebdff7f404bd242ff3f099f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 7 May 2024 06:48:35 +0200 Subject: Merging upstream version 0.12.2. Signed-off-by: Daniel Baumann --- test/configs/installed/anno-test.json | 12 ++++++++++++ test/configs/installed/anno-test.sh | 3 +++ test/configs/installed/hw-url-handler.json | 10 ++++++++++ test/configs/installed/hw-url-handler.lnav | 10 ++++++++++ 4 files changed, 35 insertions(+) create mode 100644 test/configs/installed/anno-test.json create mode 100755 test/configs/installed/anno-test.sh create mode 100644 test/configs/installed/hw-url-handler.json create mode 100644 test/configs/installed/hw-url-handler.lnav (limited to 'test/configs') 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, World!' 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!" -- cgit v1.2.3