From cda2d9a0ffae786ea65aa2687ee1c0218a4a2a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B0=D1=88=D0=B5=20=D0=98=D0=BC=D1=8F?= Date: Tue, 30 Sep 2025 19:04:44 +0400 Subject: [PATCH] test: add DNS, File, and HTTP server test scripts --- test_dns.sh | 3 +++ test_file.sh | 4 ++++ test_http.sh | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 test_dns.sh create mode 100644 test_file.sh create mode 100644 test_http.sh diff --git a/test_dns.sh b/test_dns.sh new file mode 100644 index 0000000..0a098e2 --- /dev/null +++ b/test_dns.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Test DNS server on port 5300 +dig @127.0.0.1 -p 5300 example.com diff --git a/test_file.sh b/test_file.sh new file mode 100644 index 0000000..08d0c6b --- /dev/null +++ b/test_file.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Test File server on port 9090 +# Send file name "test.txt" to server and print response +echo "test.txt" | nc 127.0.0.1 9090 diff --git a/test_http.sh b/test_http.sh new file mode 100644 index 0000000..531d30f --- /dev/null +++ b/test_http.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Test HTTP server on port 8080 +curl -v http://127.0.0.1:8080/