Andreas Schneider
254c30be2e
pki: Remove session from ssh_pki_import_pubkey_* functions.
2011-08-16 19:33:24 +02:00
Andreas Schneider
25a2108809
pki: Remove session from ssh_pki_import_privkey_* functions.
2011-08-16 18:53:18 +02:00
Andreas Schneider
f7a7bf071d
torture: Fix memleak in pubkey base64 tests.
2011-08-16 09:23:53 +02:00
Andreas Schneider
330c713fdb
pki: Add test torture_pki_publickey_dsa_base64().
2011-08-16 01:17:24 +02:00
Andreas Schneider
9dfef44fd8
pki: Add ssh_pki_publickey_to_base64().
2011-08-16 00:47:43 +02:00
Andreas Schneider
47ebcac4cd
torture: Add torture_pki_publickey_rsa_base64 test.
2011-08-16 00:47:43 +02:00
Andreas Schneider
f421c05913
cmake: Check for argp library only on bsd and solaris.
2011-08-13 11:07:57 +02:00
Andreas Schneider
9569d053d8
pki: Improve ssh_pki_import_privkey_base64().
2011-08-08 15:28:31 +02:00
Andreas Schneider
37b80e9261
pki: Move keyfiles to pki_gcrypt.c.
2011-08-08 15:28:31 +02:00
Andreas Schneider
cc29fef234
build: Remove broken old Makefile.
2011-06-30 15:47:52 +02:00
Aris Adamantiadis
113de13543
Test for ecdh and dh-group1
2011-06-12 20:54:33 +02:00
Andreas Schneider
693425afab
tests: Check error of ssh_userauth_kbdint().
2011-05-28 13:31:17 +02:00
Andreas Schneider
82798035fc
tests: Remove superfluous closedir().
2011-05-28 13:28:49 +02:00
Aris Adamantiadis
809b3adeba
Fix compilation without server and sftp modes
2011-05-26 21:56:42 +02:00
Aris Adamantiadis
34b05fd2dc
Fix memory leaks in pki and testcase
2011-05-26 21:33:36 +02:00
Aris Adamantiadis
59f7647cd9
Introduced ssh_timeout_elapsed functions
...
Functions to mesure elapsed time before and after a serie of
calls. Introduces a dependancy to clock_gettime() and librt,
hope this doesn't break anything. Porting to gettimeofday() should
not be too hard.
2011-05-24 23:26:18 +02:00
Aris Adamantiadis
4d6b1aa2c7
Added testcase for the timeout connecting problem
2011-05-24 23:25:40 +02:00
Oliver Stöneberg
e3311d03db
tests: Fixed some cppcheck warnings.
2011-05-17 14:20:28 +02:00
milo
23aa58e442
Added some tortures for pki
2011-04-14 14:05:44 +02:00
Aris Adamantiadis
79b74bdf64
Added a IP address test
2011-03-22 10:45:07 +01:00
Andreas Schneider
eea1df3574
misc: Fixed ssh_is_ipaddr_v4() on Windows.
2011-02-13 17:36:45 +01:00
Andreas Schneider
cd30a1d4b1
misc: Added working ssh_is_ipaddr for Windows.
2011-02-13 11:56:47 +01:00
Andreas Schneider
ca941d6985
tests: Fixed misc and isipaddr test on Windows.
2011-02-13 11:56:47 +01:00
Andreas Schneider
cbcd5668f5
torture: Fixed torture on Windows.
2011-02-13 11:56:47 +01:00
Andreas Schneider
a0c05c4c4e
tests: Added two asserts to torture_sftp_dir.
2011-02-13 10:44:09 +01:00
Andreas Schneider
622d5a43b3
ctest: Added support for checking out a branch.
2011-02-12 20:08:23 +01:00
Andreas Schneider
5d4bd5a21d
tests: Added ipv6 tests.
2011-02-12 19:16:06 +01:00
Andreas Schneider
e8c3f55751
tests: Fixed torture_isipaddr.
2011-02-12 19:12:39 +01:00
Aris Adamantiadis
7acc2fa607
Connect: Test the new isipaddr() function
2011-02-12 15:07:37 +01:00
Andreas Schneider
f5e2c94ae3
torture: Fixed memory leak.
2011-02-08 19:08:27 +01:00
Andreas Schneider
f812ace256
tests: Some fixes for sftp_dir.
2011-02-07 13:33:28 +01:00
Andreas Schneider
057704c097
torture: Added more test for correct auth.
2011-02-07 13:31:31 +01:00
Andreas Schneider
92f20ec85a
torture: Fixed the kbdint auth.
2011-02-07 13:31:08 +01:00
Andreas Schneider
a26194ece0
torture: Rename the static auth kbdint function.
2011-02-07 13:30:23 +01:00
Andreas Schneider
22b1e5bc7c
tests: Added test for sftp directory functions.
2011-02-06 16:35:54 +01:00
Andreas Schneider
38d6d38c1f
torture: Added a function to setup a sftp session.
2011-02-06 16:27:43 +01:00
Andreas Schneider
215c41710e
torture: Added torture_isdir().
2011-02-06 15:35:18 +01:00
Andreas Schneider
97d261dc79
torture: Added torture_rmdirs().
2011-02-06 15:35:18 +01:00
Andreas Schneider
892ebf35f1
torture: Added GPL header.
2011-02-06 15:34:32 +01:00
Andreas Schneider
05cd7296ba
tests: Added a torture_ssh_session().
2011-02-06 11:15:05 +01:00
Andreas Schneider
30e4096c66
tests: Fixed missing ;
2011-02-06 08:45:37 +01:00
Andreas Schneider
4bf8ee8032
tests: Check fgets output.
2011-02-05 15:23:19 +01:00
Andreas Schneider
63c42f066f
tests: Fixed checking return values of system().
2011-02-05 15:23:19 +01:00
Aris Adamantiadis
6b52aaff1c
ssh_auth_password made nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
670dd17044
Test double ssh_disconnect
2011-01-15 22:50:34 +01:00
Aris Adamantiadis
f8361d324e
Fix torture_connect_double so it tests the right thing
2011-01-14 14:35:44 +01:00
Aris Adamantiadis
0b46f68c5f
Fixed compilation without argp.h available
2011-01-13 21:21:19 +01:00
Aris Adamantiadis
2917e71aad
Replaced argp support for platforms that support it
...
Argp is really useful, but it's not mandatory.
2011-01-13 18:34:04 +01:00
Aris Adamantiadis
551b87b65b
New testcases for nonblocking ssh_connect and double ssh_connect
2011-01-13 18:09:04 +01:00
Aris Adamantiadis
a17472ff2b
Fix unit tests for opensolaris
2011-01-11 17:55:12 +01:00
Andreas Schneider
61852635b5
tests: Moved assert to the write place in torture_keyfiles.
...
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
2011-01-06 11:44:02 +01:00
Andreas Schneider
184f1e1706
tests: Assert if ssh_get_random failed in torture_rand_thread.
...
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
2011-01-06 10:15:01 +01:00
Andreas Schneider
7d9f889911
tests: Added missing asserts in torture_keyfiles.
...
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
2011-01-06 10:15:01 +01:00
Andreas Schneider
ec12da273e
tests: Fixed the segfault in torture_knownhosts.
2011-01-04 23:10:01 +01:00
Andreas Schneider
2464a25de7
tests: Fixed a build warning introduced before.
2011-01-03 09:02:34 +01:00
Andreas Schneider
e12253168c
tests: Call init and finalize in client torture tests.
2011-01-03 08:46:14 +01:00
Andreas Schneider
1540dad17f
tests: Added more openssl valgrind suppressions.
2011-01-03 07:51:46 +01:00
Aris Adamantiadis
3f538b3ddd
Call ssh_init()/ssh_finalize bf/af each testcase
2011-01-02 17:25:51 +01:00
Aris Adamantiadis
2faaefade9
Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests."
...
Reason: breaks test_rand, because threading has to be initialized
before ssh_init()
This reverts commit ef1866db76
.
2011-01-02 17:15:03 +01:00
Andreas Schneider
ef1866db76
tests: Call ssh_init() and ssh_finalize() before we run the tests.
2011-01-02 09:19:53 +01:00
Andreas Schneider
d4072082d0
tests: More openssl valgrind suppressions.
2011-01-02 09:10:42 +01:00
Andreas Schneider
a7237e8cea
tests: Updated the valgrind suppressions file.
2011-01-01 22:13:03 +01:00
Andreas Schneider
98bacf032f
tests: Added torture_auth_autopubkey client test.
2011-01-01 20:53:55 +01:00
Andreas Schneider
e795dae8f2
tests: Added a windows test for torture_path_expand_tilde.
2011-01-01 20:53:55 +01:00
Andreas Schneider
459fa3734f
tests: Fixed includes for torture_list on Windows.
2011-01-01 20:53:54 +01:00
Andreas Schneider
52d6b7b914
tests: Fixed includes of torture_options for windows.
2011-01-01 20:53:54 +01:00
Andreas Schneider
5331489581
tests: Fixed the torture_callbacks test.
...
We should zero the structure else ssh_callback_exists() can't be
working.
2011-01-01 19:14:54 +01:00
Andreas Schneider
2945a42c75
tests: Don't run torture_keyfiles on Windows.
...
This test needs ssh-keygen to be working.
2011-01-01 19:14:54 +01:00
Andreas Schneider
1f47730a82
tests: Fixed Windows build of torture_options.
2011-01-01 19:14:49 +01:00
Andreas Schneider
4728ac54fc
build: Fixed some build warnings.
2010-12-30 12:12:34 +01:00
Andreas Schneider
da86340551
cmake: Improved the ctest file.
2010-12-30 12:12:06 +01:00
Andreas Schneider
fc8fdcb16b
cmake: Only use Profiling on Unix systems.
2010-12-30 11:55:13 +01:00
Andreas Schneider
08906e0f7f
tests: It is enough to include libssh.h for torture_init.
2010-12-29 21:02:51 +01:00
Andreas Schneider
13f3679b2f
tests: Fixed torture_get_user_home_dir on Windows.
2010-12-29 20:35:55 +01:00
Andreas Schneider
f3a6c3152c
cmake: Don't build torture_rand on Windows.
2010-12-29 20:33:32 +01:00
Andreas Schneider
78abf5a88d
cmake: Added include and library deps to torture.
2010-12-29 20:17:36 +01:00
Andreas Schneider
ad231ccd30
cmake: Fixed test includes and libraries.
2010-12-29 20:11:00 +01:00
Andreas Schneider
d2bf90c982
build: Fixed include directories for torture lib.
2010-12-29 19:49:07 +01:00
Andreas Schneider
3e2f714248
tests: Fixed a assert bug in torture_auth.
2010-12-29 09:13:17 +01:00
Aris Adamantiadis
530c17e2ef
First real benchmark : raw SSH speed
2010-12-29 00:19:05 +01:00
Aris Adamantiadis
31043334f4
Export and document timestamp functions
2010-12-29 00:19:05 +01:00
Andreas Schneider
361e37dc66
tests: Added a torture_sftp_static test.
2010-12-28 22:14:47 +01:00
Andreas Schneider
df55918a41
tests: Migrated torture_proxycommand to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
e6329c72d1
tests: Migrated torture_knownhosts to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
8bd29736d2
tests: Migrated torture_auth to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
0b2cf70622
tests: Migrated torture_algorithms to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
b0446ad55d
tests: Migrated torture_rand to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
d04ce30b03
tests: Migrated torture_options to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
512b776245
tests: Migrated torture_misc to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
d44919dfd4
tests: Migrated torture_list to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
99d45c686c
tests: Moved torture_knownhosts to client tests.
2010-12-28 22:14:47 +01:00
Andreas Schneider
2bc03d22a1
tests: Migrated torture_keyfiles to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
fa17f33d2b
tests: Migrated torture_init to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
400fc350a7
tests: Migrated torture_callbacks to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
6f65e6ae67
tests: Migrate torture_buffer to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
635a263f64
tests: Migrate the torture library to cmockery.
2010-12-28 22:14:47 +01:00
Andreas Schneider
17f592d4dd
tests: Start to migrate tests to cmockery.
...
https://code.google.com/p/cmockery/wiki/Cmockery_Unit_Testing_Framework
2010-12-28 22:14:47 +01:00
Aris Adamantiadis
4fe1656cf8
Moved benchmarks to the tests/ directory
2010-12-28 13:17:27 +01:00
Andreas Schneider
f0d811edc6
ctest: Added more valgrind suppressions.
2010-12-28 00:38:11 +01:00
Andreas Schneider
32c0e1c99a
test: Added openssh checks to the compression tests.
2010-12-27 22:47:37 +01:00
Aris Adamantiadis
942b993f57
Add log verbosity to some testcases
2010-12-21 16:21:49 +01:00
Andreas Schneider
473d3e0b3a
ctest: Set the suppression file correctly.
2010-12-21 14:43:14 +01:00
Aris Adamantiadis
1922341e2a
New benchmarks directory
2010-12-19 18:56:16 +01:00
Andreas Schneider
bcfab67daf
ctest: Set the memcheck suppression file correctly.
2010-12-19 16:30:23 +01:00
Andreas Schneider
27f170011e
ctest: Set suppression file only in CTestConfig.
2010-12-19 12:54:52 +01:00
Andreas Schneider
5cb4c9451f
ctest: Make sure we have a clean source tree for each build.
2010-12-19 12:54:52 +01:00
Aris Adamantiadis
80408d5357
Fixed memory leak reported by valgrind
2010-12-19 12:37:21 +01:00
Andreas Schneider
f5d0f232c8
ctest: Fixed git URL.
2010-12-18 12:15:14 +01:00
Andreas Schneider
d6a5e5cb68
test: Fixed the default ctest file.
2010-12-15 19:15:02 +01:00
Aris Adamantiadis
da9cd2e64d
Implemented zlib@openssh.com compression
2010-10-04 16:19:20 +02:00
Aris Adamantiadis
9a89fba332
resolve memory consumption bug
2010-10-03 13:31:02 +02:00
Aris Adamantiadis
0bc032726d
Fix prepend bug
2010-10-03 13:01:21 +02:00
Aris Adamantiadis
b2f571e544
test the buffer_prepend_data function
2010-10-03 12:25:33 +02:00
Aris Adamantiadis
5687d6e79a
Added buffer test case
2010-10-03 12:06:47 +02:00
milo
d7581c4daa
Change path to ../src instead of the old ../libssh
2010-10-02 22:52:24 +02:00
Aris Adamantiadis
5b1c985a0e
Changed the threads cbks from struct to publ func
2010-09-30 11:10:08 +02:00
Andreas Schneider
72b62d3064
build: Fixed the unit test build.
2010-09-29 11:26:16 +02:00
Andreas Schneider
697d51cd93
build: Make sure to link against all required thread libraries.
2010-09-08 16:32:54 +02:00
Andreas Schneider
03087e020c
build: Improve the check for argp.
2010-09-08 11:41:14 +02:00
Aris Adamantiadis
49f57a8d0d
Implemented the noop and native pointers
2010-09-06 16:52:14 +02:00
Andreas Schneider
fbe102bada
threads: Build a libssh threading library.
2010-09-06 15:17:03 +02:00
Aris Adamantiadis
2cca490076
Moved pthread specific code in src/threads/pthread.c
...
pthread example doesn't compile du to the lack of
libssh_threads_native.so library
2010-09-06 14:51:01 +02:00
Andreas Schneider
ed5ebe7458
tests: Fixed cmdline parsing.
2010-09-05 12:34:12 +02:00
Andreas Schneider
d71d6afa34
tests: Disable options parsing if argp isn't available.
2010-09-03 15:44:41 +02:00
Andreas Schneider
2f8f230f61
build: Added support to find argp on BSD.
2010-09-03 15:38:12 +02:00
Aris Adamantiadis
285388409f
Made pthread threading a user macro
2010-09-03 12:03:04 +02:00
Aris Adamantiadis
e67d834156
Fix initialization of threading
2010-09-01 16:05:06 +02:00
Aris Adamantiadis
8c55294ea9
Openssl implementation of threading + default imp
2010-09-01 14:07:45 +02:00
Aris Adamantiadis
50d8d75d89
some more work on threading but not complete yet
2010-08-31 16:49:55 +02:00
Aris Adamantiadis
717eff71dd
Added test for the openssl threading
2010-08-30 14:08:07 +02:00
Aris Adamantiadis
94b00cc762
Add ssh_callbacks_exists internal macro + unittest
...
(first commit with eclipse helios, crossing fingers ...)
2010-06-25 16:19:19 +02:00
Aris Adamantiadis
65008e2d3c
Fixes leak reports in valgrind
2010-06-21 15:47:34 +02:00
Andreas Schneider
937268eb3e
torture: Fixed fd check.
2010-06-17 13:38:13 +02:00
Andreas Schneider
11a1ae59f4
tests: Moved proxycommand test to client tests.
2010-06-03 16:55:45 +02:00
Andreas Schneider
216cabc563
tests: Move getpwuid_r to a setup function.
2010-06-03 16:44:47 +02:00
Andreas Schneider
5dd4f7604f
tests: Move client tests to a seperate directory.
...
Tests which require a running sshd should go to tests/client.
2010-06-03 12:36:00 +02:00
Andreas Schneider
94ce1ea451
tests: Fixed the misc torture test.
2010-06-03 12:29:32 +02:00
Andreas Schneider
560e938038
misc: Move size check down in ssh_path_expand_escape().
2010-05-31 09:17:54 +02:00
Aris Adamantiadis
517e58d3dc
Fixed keyboard-interactive and unit test
2010-05-19 14:07:40 +02:00
Aris Adamantiadis
0eaa650e32
Fix authentication test
2010-05-19 11:13:47 +02:00
Aris Adamantiadis
4fbe572c02
Added verbosity flag for unit tests
2010-05-18 23:02:41 +02:00
Aris Adamantiadis
7c0ce909ed
Added unit test for kbdint and password auth.
...
The kbdint test still doesn't pass
2010-05-18 22:49:22 +02:00
Aris Adamantiadis
f95157297e
Factorize all the main functions in unit tests
2010-05-18 22:25:06 +02:00
Aris Adamantiadis
89993dd757
Fixed unittest name
2010-05-18 22:11:41 +02:00
Aris Adamantiadis
0ec847bbe7
Added some other junk test file
2010-05-17 20:08:11 +02:00
Aris Adamantiadis
b23b3f1d99
Sanitize libssh namespace + legacy wrappers
2010-05-14 00:51:08 +02:00
Andreas Schneider
c7ee14e786
Added a torture test for ssh_path_expand_escape().
2010-05-11 02:10:55 +02:00
Andreas Schneider
c5c1698cde
Added a torture test for ssh_path_expand_tilde().
2010-05-11 02:10:55 +02:00
Aris Adamantiadis
9294c3284c
Changed test name + test with invalid proxycommand
2010-05-10 11:08:32 +02:00
Aris Adamantiadis
3a326793fd
Test case for proxycommand
2010-05-09 00:54:37 +02:00