Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP Test File #648

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/sftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion zephyr/samples/tests/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down
Loading