diff options
Diffstat (limited to 'lib9p/tests')
-rwxr-xr-x | lib9p/tests/runtest | 22 | ||||
-rw-r--r-- | lib9p/tests/test_server/static/Documentation/x | 6 | ||||
-rw-r--r-- | lib9p/tests/test_server/static/README.md | 6 |
3 files changed, 29 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 '' diff --git a/lib9p/tests/test_server/static/Documentation/x b/lib9p/tests/test_server/static/Documentation/x index 257cc56..b9b08d4 100644 --- a/lib9p/tests/test_server/static/Documentation/x +++ b/lib9p/tests/test_server/static/Documentation/x @@ -1 +1,7 @@ +<!-- + Documentation/x - test static file + + Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> + SPDX-License-Identifier: AGPL-3.0-or-later +--> foo diff --git a/lib9p/tests/test_server/static/README.md b/lib9p/tests/test_server/static/README.md index af5626b..c2d88ed 100644 --- a/lib9p/tests/test_server/static/README.md +++ b/lib9p/tests/test_server/static/README.md @@ -1 +1,7 @@ +<!-- + 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! |