summaryrefslogtreecommitdiff
path: root/lib9p/tests/runtest
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/tests/runtest')
-rwxr-xr-xlib9p/tests/runtest22
1 files changed, 17 insertions, 5 deletions
diff --git a/lib9p/tests/runtest b/lib9p/tests/runtest
index 0966000..59c8cca 100755
--- a/lib9p/tests/runtest
+++ b/lib9p/tests/runtest
@@ -25,25 +25,37 @@ while [[ -d /proc/$server_pid && "$(readlink /proc/$server_pid/fd/4 2>/dev/null)
out=$("${client[@]}" ls -l '')
expect_lines \
- 'd-r-xr-xr-x M 0 root root 0 Oct 7 15:51 Documentation' \
- '--r--r--r-- M 0 root root 14 Oct 7 15:51 README.md' \
- '---w--w--w- M 0 root root 0 Oct 7 15:51 shutdown'
+ 'd-r-xr-xr-x M 0 root root 0 Oct 7 15:51 Documentation' \
+ '--r--r--r-- M 0 root root 166 Oct 7 15:51 README.md' \
+ '---w--w--w- M 0 root root 0 Oct 7 15:51 shutdown'
out=$("${client[@]}" ls -l 'Documentation/')
expect_lines \
- '--r--r--r-- M 0 root root 4 Oct 7 15:51 x'
+ '--r--r--r-- M 0 root root 162 Oct 7 15:51 x'
out=$("${client[@]}" read 'README.md')
expect_lines \
+ '<!--' \
+ ' README.md - test static file' \
+ '' \
+ ' Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>' \
+ ' SPDX-License-Identifier: AGPL-3.0-or-later' \
+ '-->' \
'Hello, world!'
out=$("${client[@]}" read 'Documentation/x')
expect_lines \
+ '<!--' \
+ ' Documentation/x - test static file' \
+ '' \
+ ' Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>' \
+ ' SPDX-License-Identifier: AGPL-3.0-or-later' \
+ '-->' \
'foo'
out=$("${client[@]}" stat 'Documentation/x')
expect_lines \
- "'x' 'root' 'root' 'root' q (0000000000000001 1 ) m 0444 at 1728337905 mt 1728337904 l 4 t 0 d 0"
+ "'x' 'root' 'root' 'root' q (0000000000000001 1 ) m 0444 at 1728337905 mt 1728337904 l 162 t 0 d 0"
out=$("${client[@]}" write 'shutdown' <<<1)
expect_lines ''