1
1
mirror of https://github.com/tstack/lnav.git synced 2024-07-14 16:20:24 +03:00
lnav/test/test_sql_coll_func.sh
Timothy Stack a27198e8ca [regex101] add an integration with regex101
... and a pile of other changes
2022-04-30 13:06:01 -07:00

30 lines
1.1 KiB
Bash

#! /bin/bash
run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.2'"
run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.2' collate ipaddress"
run_cap_test ./drive_sql "select '192.168.1.10' < '192.168.1.12' collate ipaddress"
run_cap_test ./drive_sql "select '::ffff:192.168.1.10' = '192.168.1.10' collate ipaddress"
run_cap_test ./drive_sql "select 'fe80::a85f:80b4:5cbe:8691' = 'fe80:0000:0000:0000:a85f:80b4:5cbe:8691' collate ipaddress"
run_cap_test ./drive_sql "select '' < '192.168.1.2' collate ipaddress"
run_cap_test ./drive_sql "select '192.168.1.2' > '' collate ipaddress"
run_cap_test ./drive_sql "select '192.168.1.2' < 'fe80::a85f:80b4:5cbe:8691' collate ipaddress"
run_cap_test ./drive_sql "select 'h9.example.com' < 'h10.example.com' collate ipaddress"
run_cap_test ./drive_sql "select 'file10.txt' < 'file2.txt'"
run_cap_test ./drive_sql "select 'file10.txt' < 'file2.txt' collate naturalcase"
run_cap_test ./drive_sql "select 'w' < 'e' collate loglevel"
run_cap_test ./drive_sql "select 'e' < 'w' collate loglevel"
run_cap_test ./drive_sql "select 'info' collate loglevel between 'trace' and 'fatal'"