diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /test/test_sql_fs_func.sh | |
parent | Initial commit. (diff) | |
download | lnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/test_sql_fs_func.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/test_sql_fs_func.sh b/test/test_sql_fs_func.sh new file mode 100644 index 0000000..e3da92b --- /dev/null +++ b/test/test_sql_fs_func.sh @@ -0,0 +1,53 @@ +#! /bin/bash + +run_cap_test ./drive_sql "select readlink('non-existent-link')" + +ln -sf sql_fs_readlink_test sql_fs_readlink_test.lnk +run_cap_test ./drive_sql "select readlink('sql_fs_readlink_test.lnk')" +rm sql_fs_readlink_test.lnk + +run_cap_test ./drive_sql "select realpath('non-existent-path')" + +# ln -sf drive_sql sql_fs_realpath_test.lnk +# run_cap_test ./drive_sql "select realpath('sql_fs_realpath_test.lnk')" +# rm sql_fs_realpath_test.lnk + +run_cap_test ./drive_sql "select basename('')" + +run_cap_test ./drive_sql "select basename('/')" + +run_cap_test ./drive_sql "select basename('//')" + +run_cap_test ./drive_sql "select basename('/foo')" + +run_cap_test ./drive_sql "select basename('foo/bar')" + +run_cap_test ./drive_sql "select basename('/foo/')" + +run_cap_test ./drive_sql "select basename('/foo///')" + +run_cap_test ./drive_sql "select basename('foo')" + +run_cap_test ./drive_sql "select dirname('')" + +run_cap_test ./drive_sql "select dirname('foo')" + +run_cap_test ./drive_sql "select dirname('foo///')" + +run_cap_test ./drive_sql "select dirname('/foo/bar')" + +run_cap_test ./drive_sql "select dirname('/')" + +run_cap_test ./drive_sql "select dirname('/foo')" + +run_cap_test ./drive_sql "select dirname('/foo//')" + +run_cap_test ./drive_sql "select dirname('foo//')" + +run_cap_test ./drive_sql "select joinpath()" + +run_cap_test ./drive_sql "select joinpath('foo')" + +run_cap_test ./drive_sql "select joinpath('foo', 'bar', 'baz')" + +run_cap_test ./drive_sql "select joinpath('foo', 'bar', 'baz', '/root')" |