Skip to content

Migrate FTP tests to test with custom C code instead of FTP client/server #1207

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

Open
pevik opened this issue Nov 1, 2024 · 0 comments
Open

Comments

@pevik
Copy link
Member

pevik commented Nov 1, 2024

Remaining FTP tests in testcases/network/stress/ftp/ are downloading and sending a large amount of data over TCP and are checking that the data arrives the same at the other end. That is some sort of kernel testing, thus test kept. But better would be to use socket test (custom C code) instead of FTP client/server which needs to be configured. E.g. using syscall tests for send()/recv()/... or extend netstress.c.

https://lore.kernel.org/ltp/[email protected]/
https://lore.kernel.org/ltp/[email protected]/

pevik added a commit to pevik/ltp that referenced this issue May 7, 2025
tst_require_drivers is only in new shell API. Avoid using it in the old
API. There are still 9 remaining tests in the old API, e.g.
ftp-upload-stress.sh. But instead of converting them it'd be better to
spend time to reimplement the testcase:
linux-test-project#1207

Reported-by: Ricardo B. Marlière <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant