mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
66 lines
1.5 KiB
Bash
66 lines
1.5 KiB
Bash
#! /bin/bash
|
|
|
|
run_test ./drive_sql "select '192.168.1.10' < '192.168.1.2'"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '192.168.1.10' < '192.168.1.2': 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select '192.168.1.10' < '192.168.1.2' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '192.168.1.10' < '192.168.1.2' collate ipaddress: 0
|
|
EOF
|
|
|
|
run_test ./drive_sql "select '::ffff:192.168.1.10' = '192.168.1.10' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '::ffff:192.168.1.10' = '192.168.1.10' collate ipaddress: 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select 'fe80::a85f:80b4:5cbe:8691' = 'fe80:0000:0000:0000:a85f:80b4:5cbe:8691' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column 'fe80::a85f:80b4:5cbe:8691' = 'fe80:0000:0000:0000:a85f:80b4:5cbe:8691' collate ipaddress: 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select '' < '192.168.1.2' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '' < '192.168.1.2' collate ipaddress: 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select '192.168.1.2' > '' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '192.168.1.2' > '' collate ipaddress: 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select '192.168.1.2' < 'fe80::a85f:80b4:5cbe:8691' collate ipaddress"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column '192.168.1.2' < 'fe80::a85f:80b4:5cbe:8691' collate ipaddress: 1
|
|
EOF
|
|
|
|
|
|
run_test ./drive_sql "select 'file10.txt' < 'file2.txt'"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column 'file10.txt' < 'file2.txt': 1
|
|
EOF
|
|
|
|
run_test ./drive_sql "select 'file10.txt' < 'file2.txt' collate naturalcase"
|
|
|
|
check_output "" <<EOF
|
|
Row 0:
|
|
Column 'file10.txt' < 'file2.txt' collate naturalcase: 0
|
|
EOF
|