summaryrefslogtreecommitdiffstats
path: root/test/test_prql.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_prql.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_prql.sh b/test/test_prql.sh
new file mode 100644
index 0000000..bc27908
--- /dev/null
+++ b/test/test_prql.sh
@@ -0,0 +1,17 @@
+#! /bin/bash
+
+export TZ=UTC
+export YES_COLOR=1
+unset XDG_CONFIG_HOME
+
+run_cap_test ${lnav_test} -n \
+ -c ";from access_log | take 1" \
+ ${test_dir}/logfile_access_log.0
+
+run_cap_test ${lnav_test} -n \
+ -c ";from access_log | take abc" \
+ ${test_dir}/logfile_access_log.0
+
+run_cap_test ${lnav_test} -n \
+ -c ";from bro_http_log | stats.hist bro_host slice:'1m'" \
+ ${test_dir}/logfile_bro_http.log.0