From 5068d34c08f951a7ea6257d305a1627b09a95817 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:44:55 +0200 Subject: Adding upstream version 0.11.1. Signed-off-by: Daniel Baumann --- test/test_remote.sh | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 test/test_remote.sh (limited to 'test/test_remote.sh') diff --git a/test/test_remote.sh b/test/test_remote.sh new file mode 100644 index 0000000..946b19f --- /dev/null +++ b/test/test_remote.sh @@ -0,0 +1,119 @@ +#! /bin/bash + +echo "Hello, World!" > not:a:remote:file + +run_test ${lnav_test} -d /tmp/lnav.err -n \ + not:a:remote:file + +check_output "a file with colons cannot be read?" < not:a:remote:dir/file + +run_test ${lnav_test} -d /tmp/lnav.err -n \ + not:a:remote:dir + +check_output "a file in a dir with colons cannot be read?" < remote/sshd_config < remote/ssh_config < test_remote.err + +mv test_remote.err `test_err_filename` +check_error_output "no error for nonexistent-host?" <