aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/test_server.erl
AgeCommit message (Collapse)Author
2012-10-26test_server: Refactor run_test_case_msgloop()Björn Gustavsson
Keeping all state as separate function arguments does not make it easy to add more pieces of data to the state. Case in point is the CurrConf argument where up to three separate items have been shoehorned in. Instead of the arguments, introduce a state record to hold all of the different pieces of state (taking care to separate the former CurrConf variable into separate fields in the record). While at it, fix a bug. The name of the currently executing test case (module and function) used to be stored in a tuple in the CurrConf variable, and it would only be available after 'set_curr_conf' message has been received. Depending on timing, it was possible in rare circumstances for an EXIT signal to arrive before the 'set_curr_conf' message. Avoid this problem by putting the current test case name into the record from the beginning. That also means that we can eliminate the workaround of getting the currently executing test case from the stack trace using the get_mf/1.
2012-10-23Introduce test_server_io and test_server_glBjörn Gustavsson
2012-10-08test_server: Refactor timetrap_scale_factor/0Björn-Egil Dahlberg
2012-08-23Merge branch 'maint'Peter Andersson
2012-08-23Solve problems with verbosity levels and parallel test casesPeter Andersson
2012-08-23Merge branch 'maint'Peter Andersson
2012-08-23Merge remote branch 'origin/peppe/common_test/break_and_continue' into maintPeter Andersson
* origin/peppe/common_test/break_and_continue: Fix error in documentation Implement support for test case execution break/continue Conflicts: lib/common_test/src/ct.erl lib/common_test/src/ct_run.erl OTP-10127 OTP-10172
2012-08-23Merge branch 'maint'Peter Andersson
2012-08-08Implement support for test case execution break/continuePeter Andersson
2012-07-19test_server: Remove VxWorksBjörn-Egil Dahlberg
2012-07-13Implement verbosity levels and parameter for log printout importancePeter Andersson
2012-03-30Update copyright yearsBjörn-Egil Dahlberg
2012-03-22Fix various problems with the user timetrap implementationPeter Andersson
2012-03-21Implement support for user controlled timetrapsPeter Andersson
OTP-9988
2012-03-15Merge remote branch 'origin/peppe/common_test/otp-9666' into maintPeter Andersson
* origin/peppe/common_test/otp-9666: Set correct group leader for end_per_testcase process after tc timeout OTP-9666
2012-03-14Set correct group leader for end_per_testcase process after tc timeoutPeter Andersson
Also make sure that warnings about failure or timeout of end_per_testcase (after a test case timeout) get printed in the test case log file. OTP-9666
2012-03-13Make it possible to use unique priv_dir namesPeter Andersson
Introduce the optional feature to have Test Server generate priv_dir directory names that are unique for each test case or config function. The name of the option/flag is 'unique_priv_dir' and it can be set to value 'auto' or 'manual'. If auto, Test Server creates each priv_dir automatically (can be expensive in case of many and/or repeated cases). If manual, the user needs to create the priv_dir explicitly by calling ct:make_priv_dir/0.
2012-03-13Merge remote branch 'origin/peppe/common_test/otp-9904_9900' into maintPeter Andersson
* origin/peppe/common_test/otp-9904_9900: Introduce error notification printout in the tc log OTP-9904 OTP-9900
2012-03-11Introduce error notification printout in the tc logPeter Andersson
Also fix problem with parallel test cases printing "into each other" (when using ct:print or ct:pal). OTP-9904 OTP-9900
2012-03-06Fix problem with dropped suite- and test case namesPeter Andersson
OTP-9958
2012-03-06Merge remote branch 'origin/peppe/common_test/otp-9855' into maintPeter Andersson
* origin/peppe/common_test/otp-9855: Ensure that comments always get printed in the overview log file OTP-9855
2012-03-05Ensure that comments always get printed in the overview log filePeter Andersson
OTP-9855
2012-03-05Make line numbers show in logs for timetraps and abortionsPeter Andersson
OTP-9930
2011-12-07Change init/end_per_group/0 -> init/end_per_group/1Peter Andersson
2011-12-02Implement the group info functionPeter Andersson
OTP-9235
2011-11-30Bugfixes and improvements of the the CSS stylesheet implementationPeter Andersson
2011-11-18Make absolute paths in log files relativePeter Andersson
2011-11-14Copy default CSS file to log directory before test runPeter Andersson
The log files should be independent of the Common Test installation.
2011-11-13Add CSS stylesheet for the text and tables in Common Test and Test ServerPeter Andersson
Also make general improvements of presentation of results. OTP-9706
2011-10-04Merge branch 'dev' into majorLukas Larsson
* dev: (38 commits) Update documentation Rid ct_telnet of doc build warnings Create temporary fix for problem with parallel test cases Update primary bootstrap Correct "Missing Suites" link Add documentation on timetraps and start flags Add missing tests for timetrap handling and fix remaining errors Solve problem with ct_init/end_per_group being counted as test cases Fix errors in test suites Fix invalid call to undefined function Fix problem with test_server_ctrl creating invalid conf test Improve info in CT framework log Update vsn.mk for common_test and test_server Enhance logging performance Change order of include files Add link to last executed test suite on index page Fix problem with location value when init config func calls help func Fix crash when CTHook init fails Correct error in test suite Fix error with incorrect notification after end_per_testcase craches ... Conflicts: bootstrap/bin/start.boot bootstrap/bin/start_clean.boot bootstrap/lib/compiler/ebin/beam_asm.beam bootstrap/lib/compiler/ebin/beam_disasm.beam bootstrap/lib/compiler/ebin/compile.beam bootstrap/lib/compiler/ebin/sys_pre_expand.beam bootstrap/lib/kernel/ebin/code.beam bootstrap/lib/kernel/ebin/code_server.beam bootstrap/lib/kernel/ebin/hipe_unified_loader.beam bootstrap/lib/kernel/ebin/inet.beam bootstrap/lib/kernel/ebin/inet_config.beam bootstrap/lib/kernel/ebin/inet_dns.beam bootstrap/lib/stdlib/ebin/beam_lib.beam bootstrap/lib/stdlib/ebin/dets.beam bootstrap/lib/stdlib/ebin/erl_compile.beam bootstrap/lib/stdlib/ebin/erl_internal.beam bootstrap/lib/stdlib/ebin/erl_scan.beam bootstrap/lib/stdlib/ebin/erl_tar.beam bootstrap/lib/stdlib/ebin/io_lib_fread.beam bootstrap/lib/stdlib/ebin/otp_internal.beam bootstrap/lib/stdlib/ebin/sofs.beam bootstrap/lib/stdlib/ebin/supervisor.beam bootstrap/lib/stdlib/ebin/zip.beam lib/common_test/src/ct.erl lib/common_test/src/ct_run.erl lib/common_test/test/ct_error_SUITE.erl lib/common_test/test/ct_repeat_1_SUITE.erl lib/common_test/test/ct_skip_SUITE.erl lib/test_server/src/test_server.erl
2011-09-30Create temporary fix for problem with parallel test casesPeter Andersson
OTP-9600
2011-09-28Add missing tests for timetrap handling and fix remaining errorsPeter Andersson
OTP-9593
2011-09-23Fix problem with location value when init config func calls help funcPeter Andersson
2011-09-23Fix error with incorrect notification after end_per_testcase crachesPeter Andersson
2011-09-23Fix problem with error message not being printed correctlyPeter Andersson
2011-09-23Fix incorrect call to end_tc when tc_status=ok and end_per_testcase times outPeter Andersson
OTP-9397
2011-09-23Implement support for MFA and Fun as timetrap valuePeter Andersson
OTP-9501
2011-09-23Fix problem with end_tc being called with incorrect Suite argumentPeter Andersson
OTP-9398: Fix error with end_tc being called with incorrect Suite argument after timeout in lib function OTP-9397: Fix problem with true error not reported to FW
2011-09-23Fix error with incorrect test case status when end_per_testcase times outPeter Andersson
OTP-9397
2011-09-23Introduce new framework callback function to read info about color of commentsPeter Andersson
OTP-9237
2011-09-23Fix incorrect module name arg to FW:end_tc/3Peter Andersson
OTP-9379
2011-09-13test_server: Show line number for caller of test_server:fail()Björn Gustavsson
Showing the line number of fail/{1,2} in the test_server module is not especially useful.
2011-08-18common_test: Use line numbers in exceptionsBjörn Gustavsson
Remove the old kludgy parse transformations and line numbers macros in common_test and test_server, and use the line numbers in exceptions instead.
2011-08-18test_server: Refactor init_per_testcase/3 into two functionsBjörn Gustavsson
2011-04-28Fix problems with timetrap handling in common_test:Peter Andersson
1. ct:timetrap(infinity) not supported. 2. Previous set timetrap for a test case is not cancelled by new one.
2011-04-28Make it possible to fail test case by returning {fail,Reason} from ↵Peter Andersson
init_per_testcase.
2011-04-15Update framwork backwards compatability check to use TEST_SERVER_FRAMEWORK ↵Lukas Larsson
as it should and not the Module
2011-04-15Update end_tc framework calls to check the name of the framework module ↵Lukas Larsson
instead of the return value of the call
2011-03-11Update copyright yearsBjörn-Egil Dahlberg
2011-02-28Merge branch 'lukas/tools/cover_mem_footprint/OTP-9043' into devLukas Larsson
* lukas/tools/cover_mem_footprint/OTP-9043: Update testcases which need crypto to be skipped on platforms which does not have crypto Update internal pmap to have a process limit Add write concurrancy to cover masters ?COVER_TABLE Update documentation to reflect performance enhancement changes of cover Add aync_analyse_to_file function to cover Split the cover ets tables into two tables, one with the clause info and one with the bump info. This will make it faster to search the tables when analyzing and exporting data. Add process debug tags Update remote collect to handle multiple requests at once Remove io printout warnings when exporting an imported module Make the call to cover parallel so that the test_server takes advantage of the new cool parallel cover features. Update cover to allow multiple analyse and analyze_to_file calls at the same time. For each call a seperate process will be spawned to handle the request. Refactor cover to prepare it for making analysis parallel Update remote loading to only load a certain number of modules at a time to prevent memory usage explosion Conflicts: lib/tools/test/cover_SUITE.erl