File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# Can be run locally or in CI/CD.
55#
66# Usage:
7- # ./run-sdk-tests.sh # Test all ports (48331, 48332, 48333 )
8- # SDK_TEST_PORTS="48331 " ./run-sdk-tests.sh # Test specific port(s)
7+ # ./run-sdk-tests.sh # Test all ports (7331, 7332, 7333 )
8+ # SDK_TEST_PORTS="7331 " ./run-sdk-tests.sh # Test specific port(s)
99
1010set -e
1111
@@ -14,9 +14,9 @@ PORTS="${SDK_TEST_PORTS:-7331 7332 7333}"
1414
1515# Backend names for display
1616declare -A BACKEND_NAMES
17- BACKEND_NAMES[48331 ]=" Hunchentoot"
18- BACKEND_NAMES[48332 ]=" Clack+Woo"
19- BACKEND_NAMES[48333 ]=" Clack+Hunchentoot"
17+ BACKEND_NAMES[7331 ]=" Hunchentoot"
18+ BACKEND_NAMES[7332 ]=" Clack+Woo"
19+ BACKEND_NAMES[7333 ]=" Clack+Hunchentoot"
2020
2121echo " "
2222echo " * Running Datastar SDK Compliance Tests *"
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ echo " (prevents worker thread leaks that cause connection hangs)"
5252echo
5353echo " Timeout:" ${timeout_interval} " s"
5454# Test all backends
55- test_sse_endpoint 48331 " Hunchentoot" " ht-sse"
56- test_sse_endpoint 48332 " Clack+Woo" " clack-woo-sse"
57- test_sse_endpoint 48333 " Clack+Hunchentoot" " clack-ht-sse"
55+ test_sse_endpoint 7331 " Hunchentoot" " ht-sse"
56+ test_sse_endpoint 7332 " Clack+Woo" " clack-woo-sse"
57+ test_sse_endpoint 7333 " Clack+Hunchentoot" " clack-ht-sse"
5858
5959# If we're here, nothing failed
6060echo " "
Original file line number Diff line number Diff line change 3939 (format t " ~& SSE tests FAILED (exit code: ~a )~% " result))
4040 result))
4141
42- (defun run-sdk-tests (&key (ports " 48331 48332 48333 " ))
42+ (defun run-sdk-tests (&key (ports " 7331 7332 7333 " ))
4343 " Run official Datastar SDK compliance tests using the shell script.
4444 PORTS can be a string of space-separated port numbers (default: all three backends)."
4545 (format t " ~&~% Running SDK compliance tests...~% " )
9999 (format t " Run individual test suites:~% " )
100100 (format t " (datastar-cl-tests::run-sse-tests)~% " )
101101 (format t " (datastar-cl-tests::run-sdk-tests)~% " )
102- (format t " (datastar-cl-tests::run-sdk-tests :ports \" 48331 \" ) ; Test one backend~%~% " )
102+ (format t " (datastar-cl-tests::run-sdk-tests :ports \" 7331 \" ) ; Test one backend~%~% " )
103103 (format t " Run all tests:~% " )
104104 (format t " (datastar-cl-tests::run-all-tests)~% " )
105105 (format t " (datastar-cl-tests::quick-test) ; shorthand~%~% " )
108108 (format t " Shell scripts (can also run directly):~% " )
109109 (format t " ./tests/run-sse-tests.sh~% " )
110110 (format t " ./tests/run-sdk-tests.sh~% " )
111- (format t " SDK_TEST_PORTS=\" 48331 \" ./tests/run-sdk-tests.sh~% " )
111+ (format t " SDK_TEST_PORTS=\" 7331 \" ./tests/run-sdk-tests.sh~% " )
112112 (format t " ========================================~%~% " ))
113113
114114; ;; Handler
You can’t perform that action at this time.
0 commit comments