-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: split command args tests for EHLO and EHLO
Due to the many sleeps this test takes long, so split it in 2 parts to allow this to be run in parallel. While at it fix test failures if stderr logging is enabled.
- Loading branch information
Showing
3 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required(VERSION 3.0...3.27) | ||
|
||
# The maximum permitted line length without extensions is 510 characters + CRLF. | ||
# The easiest way to have a otherwise valid line that violates this length limit | ||
# is to extend the space bug space. | ||
set(SPACES " ") | ||
foreach(i 1 2 3 4 5 6 7) | ||
set(SPACES "${SPACES}${SPACES}") | ||
endforeach() | ||
|
||
execute_process(COMMAND sleep 15) | ||
# invalid HELO, but this will be filtered later | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "HELO [foo] \r") | ||
execute_process(COMMAND sleep 1) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "HELO nonsense.example.org\r") | ||
execute_process(COMMAND sleep 1) | ||
# arguments only allowed in ESMTP mode | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "mail from:<> size=20\r") | ||
execute_process(COMMAND sleep 1) | ||
|
||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "quit\r") | ||
execute_process(COMMAND sleep 1) |