aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
AgeCommit message (Collapse)Author
2013-06-04Merge branch 'siri/cuddle-with-tests' into maintSiri Hansen
* siri/cuddle-with-tests: Delete 'icky' dirs and symlinks after kernel tests [ct_netconfc] Improve error printout Fix interactive_shell_SUITE to handle node name with quotes
2013-06-04[ct_netconfc] Improve error printoutSiri Hansen
2013-05-28Merge branch 'ia/ssl/public_key/crypto/elliptic_curve/OTP-11009' into maintIngela Anderton Andin
* ia/ssl/public_key/crypto/elliptic_curve/OTP-11009: (21 commits) ssl: Do not advertise EC ciphers if crypto support is insufficient crypto: Ctify tests and test new API crypto: Allow integer as srp_private arguments according to docs ssl: Remove unused `srp_parameters` type spec crypto, public_key & ssl: Make more functions accept integer keys snmp: Remove use of deprecated crypto functions crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integer netconf: Remove use of deprecated crypto functions crypto: Documentation fixes from review crypto: Change argument order of crypto:next_iv/3 crypto,public_key,ssl: Change return value of crypto:generate_key(ecdh,..) ssl, public_key, crypto: crypto:algorithms/0 -> crypto:supports/0 ssl, public_key & inets: Remove use of deprecated crypto functions from test code ssl: Remove use of deprecated crypto functions public_key: Remove use of deprecated crypto functions dialyzer: Remove use of deprecated crypto functions ssh & crypto: Remove use of deprecated crypto functions from ssh Update primary bootstrap common_test: Replace use of deprecated crypto functions beam_lib, compile: Replace use of deprecated crypto functions ...
2013-05-24[common_test] Unregister connection if killedSiri Hansen
The symptom of this bug was that a (named) telnet connection which was open and hanging during a timetrap timeout could no longer be opened again in subsequent test cases. Since the connection was hanging, ct_telnet:close/1 which was called during end_per_testcase would fail (timeout) and cause common_test to brutally kill the connection. The bug was that the connection was not unregistered at this point. When trying to open the connection again in the next testcase, common_test attempted to reuse the same connection since it had not been unregistered. This failed since the connection in fact was dead.
2013-05-22crypto,ssh, netconf, inets: binary_to_integer -> bytes_to_integerIngela Anderton Andin
2013-05-20netconf: Remove use of deprecated crypto functionsIngela Anderton Andin
2013-05-20common_test: Replace use of deprecated crypto functionsBjörn Gustavsson
2013-05-17[common_test] Refactor ct_telnet_SUITE.erlSiri Hansen
2013-05-17[common_test] Add new option 'no_prompt_check' to ct_telnet:expect/3.Siri Hansen
If this option is used, ct_telnet will not search for a prompt before attempting to match the given pattern. This is useful if, for instance, the Pattern itself matches the prompt or if the telnet session starts interactive programs which do not display the normal prompt.
2013-05-15[common_test] Add debug printouts in ct_telnet_clientSiri Hansen
2013-05-14[common_test] Backed out wait_for_linebreak option from ct_telnetSiri Hansen
2013-05-14[common_test] Add test for ct_telnet using own telnet serverSiri Hansen
The new test suite ct_telnet_SUITE_data/ct_telnet_own_server_SUITE uses the very simple telnet_server.erl located in the common_test test directory.
2013-05-14[common_test] Add telnet server to use for testingSiri Hansen
2013-04-30Added further docFredrik Gustafsson
2013-04-30common_test: Added documentation for wait_for_linebreak optionFredrik Gustafsson
2013-04-24Merge branch 'peppe/common_test/ts_logfile_problems' into maintPeter Andersson
* peppe/common_test/ts_logfile_problems: Fix error with refreshing logs when html util files are missing Add correct footer to last run index page Make test_server close log files properly and include correct footer
2013-04-22Fix error with refreshing logs when html util files are missingPeter Andersson
OTP-11046
2013-04-22Add correct footer to last run index pagePeter Andersson
OTP-11046
2013-04-19[common_test] Adjusted timers in ct_repeat_testrun_SUITESiri Hansen
This is to allow slower test hosts.
2013-04-19[common_test] Extend timer in cover_SUITE for slow test hostSiri Hansen
2013-04-19[common_test] Kill slave nodes after test cases in cover_SUITESiri Hansen
The test case cover_SUITE:slave_start_slave often fails on a test host (windows) due to a hanging node from an earlier test run. In the first test, the slave fails to start (boot_timeout?) and is never connected to the test node. The attempt at cleaning up used nodes() to find which slaves to kill - so in the case where the slave was never connected it was never killed. This is no changed so each slave is explicitly killed by name - no matter if it is pingable or not.
2013-04-18Merge branch 'siri/ct/error-printout-link/OTP-11044' into maintSiri Hansen
* siri/ct/error-printout-link/OTP-11044: [common_test] Add link from red error notification to full error description [common_test] Use max importance when logging errors
2013-04-17Bug fixes in Common Test log cachePeter Andersson
2013-04-17Merge branch 'peppe/common_test/log_cache' into maintPeter Andersson
* peppe/common_test/log_cache: Implement cache for the CT logger OTP-10855
2013-04-17Implement cache for the CT loggerPeter Andersson
OTP-10855
2013-04-16[common_test] Add link from red error notification to full error descriptionSiri Hansen
In test case log, the red error notification may sometimes be truncated. This commit adds a link from this printout to the end of the log where the full error description and stacktrace i written.
2013-04-16[common_test] Use max importance when logging errorsSiri Hansen
This commit adds ?MAX_IMPORTANCE to error notifications in the test case log, and it makes sure that the printout says "CT Error Notification". Printouts from cth_log_redirect (sasl and error_reports) uses ?STD_IMPORTANCE and states "System" in the printout.
2013-04-11Merge branch 'fredrik/ct/telnet_wo_line_breaks/OTP-10085' into maintFredrik Gustafsson
2013-04-08[common_test] Add test for unexpected I/OSiri Hansen
2013-04-08[common_test] Send unexpected logging to test_server's unexpected_io.logSiri Hansen
If it could not be decided which test case a certain log printout belonged to, the common test framework log was earlier used. Such printouts are now instead sent to unexpected_io.log in test_server so that there is only one place to look for "missing" printouts.
2013-04-08Remove unused Postscript filesHans Bolinder
2013-04-04Merge branch 'siri/common_test/force_stop-skip_rest/OTP-10856' into maintSiri Hansen
* siri/common_test/force_stop-skip_rest/OTP-10856: [common_test] Document '-force_stop skip_rest' option to ct_run [common_test] Add tests for repeated testruns [common_test] Add support for testing repeated testruns [common_test] Add -force_stop skip_rest option when repeating tests
2013-03-28[common_test] Document '-force_stop skip_rest' option to ct_runSiri Hansen
2013-03-28[common_test] Add tests for repeated testrunsSiri Hansen
ct_repeate_testrun_SUITE is added, which tests the following options to ct_run: -repeat N -duration [-force_stop [skip_rest]] -until [-force_stop [skip_rest]]
2013-03-27Added option wait_for_linebreak - so that expect does not need \n to matchFredrik Gustafsson
2013-03-27Added testcases for ct_telnet and opportunity to connect to telnet without ↵Fredrik Gustafsson
user and password.
2013-03-25[common_test] Add support for testing repeated testrunsSiri Hansen
ct_test_support which is used in common_test's own tests did not support testruns with -repeat, -duration or -until options. This is now added.
2013-03-25[common_test] Add -force_stop skip_rest option when repeating testsSiri Hansen
To allow a repeated test to finish immediatly, 'skip_rest' option can now be used in combination with 'force_stop'. If this option is used, only the current testcase will be completed after timeout is reached when repeating with 'duration' or 'until'.
2013-03-14Merge branch 'fredrik/ct/get_testdir_restrictions' into maintFredrik Gustafsson
* fredrik/ct/get_testdir_restrictions: Returning '/' when given as parameter to get_testdir
2013-03-14Merge branch 'anders/common_test/slave_start/OTP-10920' into maintAnders Svensson
* anders/common_test/slave_start/OTP-10920: Simplify doc of error return Minor edoc fix Add ct_slave:start(Node, Opts) to start a node on the local host
2013-03-14Merge branch 'siri/cuddle-with-tests' into maintSiri Hansen
* siri/cuddle-with-tests: [sasl] Fix tests that compare execution time [jinterface] Kill process between tests to avoid consequential error [jinterface] Make tests handle space in path on windows [common_test] Extend timers for slave nodes in ct_cover_SUITE [test_server] Clean up unused code in test_server_SUITE [reltool] Increase timetrap timeout for reltool_server_SUTIE to 10 minutes [test_server] Fix encoding of HTML file references to work on windows [test_server] Use simpler tc name in unicode test to make it work on windows
2013-03-13Returning '/' when given as parameter to get_testdirFredrik Gustafsson
2013-03-12Simplify doc of error returnAnders Svensson
As {error, Reason, NodeName} together with a Reason production.
2013-03-12Minor edoc fixAnders Svensson
edoc inserted a type spec into the signature ("Options :: Opts") when @spec and code used different variable names.
2013-03-12Add ct_slave:start(Node, Opts) to start a node on the local hostAnders Svensson
This is convenient when starting nodes locally since there's otherwise no trivial way to specify the local hostname.
2013-03-06Remove obsolete common_test note regarding source pathsAnders Svensson
2013-03-04[common_test] Extend timers for slave nodes in ct_cover_SUITESiri Hansen
Also, rename some nodes to avoid node name clash between test cases, and ensure proper cleanup of nodes.
2013-02-25Prepare releaseOTP_R16BErlang/OTP
2013-02-22Update copyright yearsBjörn-Egil Dahlberg
2013-02-21Increase timetrap times in ct_verbosity_SUITEPeter Andersson