From 27275b76f3848f31f46e4e31642ea033fdd2fb44 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 6 Dec 2023 09:32:37 -0800 Subject: [PATCH] SFTP Test File Modify the SFTP tests to use the file configure.ac instead of configure. Some environments do not have or use configure. Configure.ac is in the source archive. --- tests/sftp.c | 14 +++++++------- zephyr/samples/tests/tests.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/sftp.c b/tests/sftp.c index 36b2cb081..1e4aa067e 100644 --- a/tests/sftp.c +++ b/tests/sftp.c @@ -44,17 +44,17 @@ static const char* cmds[] = { "pwd", "ls", #ifdef WOLFSSH_ZEPHYR - "put " CONFIG_WOLFSSH_SFTP_DEFAULT_DIR "/configure", + "put " CONFIG_WOLFSSH_SFTP_DEFAULT_DIR "/configure.ac", #else - "put configure", + "put configure.ac", #endif "ls", #ifdef WOLFSSH_ZEPHYR - "get configure " CONFIG_WOLFSSH_SFTP_DEFAULT_DIR "/test-get", + "get configure.ac " CONFIG_WOLFSSH_SFTP_DEFAULT_DIR "/test-get", #else - "get configure test-get", + "get configure.ac test-get", #endif - "rm configure", + "rm configure.ac", "cd ../", "ls", "rename test-get test-get-2", @@ -116,8 +116,8 @@ static int Expected(int command) } case 6: - if (WSTRNSTR(inBuf, "configure", sizeof(inBuf)) == NULL) { - fprintf(stderr, "configure not found in %s\n", inBuf); + if (WSTRNSTR(inBuf, "configure.ac", sizeof(inBuf)) == NULL) { + fprintf(stderr, "configure.ac not found in %s\n", inBuf); return 1; } else { diff --git a/zephyr/samples/tests/tests.c b/zephyr/samples/tests/tests.c index 2f57aa092..56d18c91b 100644 --- a/zephyr/samples/tests/tests.c +++ b/zephyr/samples/tests/tests.c @@ -81,7 +81,7 @@ int main(void) /* Setup the necessary files for the sftp tests */ fs_file_t_init(&zfp); snprintf(filename, sizeof(filename), "%s/%s", - CONFIG_WOLFSSH_SFTP_DEFAULT_DIR, "configure"); + CONFIG_WOLFSSH_SFTP_DEFAULT_DIR, "configure.ac"); CHECK_TEST_RETURN(fs_open(&zfp, filename, FS_O_WRITE|FS_O_CREATE)); /* Write some random data to file */ for (i = 0; i < 10; i++)