tests: Add a sftp benchmark test for write/read

The tests writes and reads a file of 128M.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-04 14:22:40 +02:00
parent 0762057eb9
commit aaca395bd3
3 changed files with 146 additions and 3 deletions

View File

@@ -15,13 +15,18 @@ set(LIBSSH_CLIENT_TESTS
torture_request_env)
if (WITH_SFTP)
if (WITH_BENCHMARKS)
set(SFTP_BENCHMARK_TESTS
torture_sftp_benchmark)
endif()
set(LIBSSH_CLIENT_TESTS
${LIBSSH_CLIENT_TESTS}
torture_sftp_ext
torture_sftp_canonicalize_path
torture_sftp_dir
torture_sftp_read
torture_sftp_fsync)
torture_sftp_fsync
${SFTP_BENCHMARK_TESTS})
endif (WITH_SFTP)
foreach(_CLI_TEST ${LIBSSH_CLIENT_TESTS})