Skip to content

Commit

Permalink
Reorg unix_socket tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
lepapareil committed Oct 2, 2024
1 parent 99f14cc commit b1056d3
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 22 deletions.
6 changes: 3 additions & 3 deletions bin/test/test_prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ echo -e "\n------------------ Starting ssl/ssl_server.py (Self-signed certificat
python3 tests_ssl/ssl_server.py 8003 tests_ssl/server/cert.selfsigned.pem true > build/server-ssl-client-authent.log 2>&1 &
check_listen_port "tests_ssl/ssl_server.py" 8003 || cat_and_exit_err build/server-ssl-client-authent.log

echo -e "\n------------------ Starting unix_socket/server.py"
python3 tests_unix_socket/server.py > build/server-unix-socket.log 2>&1 &
check_unix_socket "tests_unix_socket/server.py" build/unix_socket.sock "GET /hello HTTP/1.0\r\n"
echo -e "\n------------------ Starting tests_unix_socket/unix_socket_server.py"
python3 tests_unix_socket/unix_socket_server.py > build/server-unix-socket.log 2>&1 &
check_unix_socket "tests_unix_socket/unix_socket_server.py" build/unix_socket.sock "GET /hello HTTP/1.0\r\n"

echo -e "\n------------------ Starting squid (proxy)"
if [ -f /var/run/squid.pid ] ; then
Expand Down
3 changes: 0 additions & 3 deletions integration/hurl/tests_failed/unix_socket.sh

This file was deleted.

10 changes: 0 additions & 10 deletions integration/hurl/tests_ok/unix_socket.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions integration/hurl/tests_ok/unix_socket.sh

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: HTTP connection
--> tests_ok/unix_socket.hurl:1:5
--> tests_unix_socket/unix_socket.hurl:1:5
|
1 | GET http://example/hello
| ^^^^^^^^^^^^^^^^^^^^ (7) <<<.*?>>>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'

# The python test server for testing Unix Domain Sockets
# (../tests_unix_socket/server.py) does not currently support AF_UNIX on Windows.
# (../tests_unix_socket/unix_socket_server.py) does not currently support AF_UNIX on Windows.
# See https://github.com/python/cpython/issues/77589
# Skip for now until this can be easily tested.
#hurl --unix-socket /unknown tests_ok/unix_socket.hurl
#hurl --unix-socket build/unix_socket.sock --verbose tests_unix_socket/unix_socket.hurl
$ErrorActionPreference = 'Continue'
exit 255
3 changes: 3 additions & 0 deletions integration/hurl/tests_unix_socket/unix_socket.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -Eeuo pipefail
hurl --unix-socket build/unix_socket.sock --verbose tests_unix_socket/unix_socket.hurl

0 comments on commit b1056d3

Please sign in to comment.