aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test
AgeCommit message (Collapse)Author
2014-04-15Test TweaksDan Gudmundsson
2014-04-14Enable testsDan Gudmundsson
2014-04-03Merge branch 'siri/master-cuddle-with-tests'Siri Hansen
* siri/master-cuddle-with-tests: Stop nodes after test cases in release_handler_SUITE Add debug printouts in release_handler_SUITE:upgrade_gg Improve printout of command when encoding is utf-8 Add debug printouts in crashdump_viewer_SUITE:load_file
2014-04-03Add debug printouts in crashdump_viewer_SUITE:load_fileSiri Hansen
2014-03-28Merge branch 'dgud/observer/test'Dan Gudmundsson
* dgud/observer/test: observer: Add simple test and add debug hooks in app
2014-03-28observer: Add simple test and add debug hooks in appDan Gudmundsson
Add hooks in observer so that we can do some basic testing on it
2014-03-26Improve crashdump_viewer_SUITE:start_stop test caseSiri Hansen
Instead of setting a timer and expecting all processes to be terminated, set a monitor and wait for them to terminate.
2014-03-25Fix crash in crashdump_viewer when node has multiple creationsSiri Hansen
A node to which we have references to multiple instances (creations) will have an information line in the crashdump like this: Creation: 1 2 ... This would earlier crash because crashdump_viewer would try to do list_to_integer on the value after "Creation: ". This is now corrected. This correction also helps the case when the emulator is debug compiled, since the line could then be Creation: 1 (refc=1)
2014-02-24Add test suites performing app and appup file checksTobias Schlager
Add the mentioned test suites for *all* library and touched non-library applications.
2014-01-27observer: Fix progress dialog creationDan Gudmundsson
Should not call showModal on a wxProgressdialog it is already display (see doc) and it hangs on MacOSX until someone presses the menu.
2014-01-27observer: renamed crashdump_viewer files and fixed makefilesSiri Hansen
2014-01-27observer: improve wx version of crashdump_viewerSiri Hansen
* bugfixes * add first test * remove unused code
2013-11-29Merge branch 'maint'Henrik Nord
2013-11-26[observer] Fix copy/paste error in observer_SUITE:app_file/1Siri Hansen
2013-05-15[observer] Update crahshdump_viewer_SUITE for R17Siri Hansen
2013-03-14[observer] Add debug printouts in ttb_SUITESiri Hansen
To troubleshoot failed test case trace_resumed_after_node_restart on windows.
2013-03-04[observer] Extend timer to allow trace msgs to arrive over tcp/ipSiri Hansen
Some tests fail (mostly on windows) every now and then with too few trace messages in log. Extending the timer from 200 to 500 ms to see if this is the reason. Plus removing a compiler warning in ttb_SUITE.
2013-03-04[observer] Kill slave node between tests in etop_SUITESiri Hansen
To avoid that the second test case fails (due to duplicate name) if the first fails - always kill the slave node after each test case.
2013-01-09Prepare OTP files for Unicode as default encodingHans Bolinder
2012-12-17[observer] Set ERL_CRASH_DUMP_SECONDS/=-1 on old releasesSiri Hansen
Else, crashdumps can not be generated.
2012-12-17[observer] Fix crashdump_viewer tests for R16Siri Hansen
Generate dumps for r14, r15 and r16. Save generated dumps if test fails.
2012-06-05Update to work with whitespace in exec pathLukas Larsson
OTP-10106 OTP-10107
2012-05-16[crashdump_viewer] URL encode module names in link to loaded module detailsSiri Hansen
2012-03-30Update copyright yearsBjörn-Egil Dahlberg
2012-03-30[crashdump_viewer] Add case clause for testing with dump from R14BSiri Hansen
2012-02-06etop_SUITE: Skip a test case if libraries are native-compiledBjörn Gustavsson
2011-11-24observer tests: Test compatibility with R13, not R12Björn Gustavsson
2011-10-27Adjust ttb_SUITE to work better on windowsSiri Hansen
There is a problem with long paths on windows, which causes some of the ttb logs in this suite not to be created. To go around this, the original priv_dir from the Config is no longer used for writing the logs. Instead a new priv_dir is created in the data_dir - which makes the path much shorter. There is also a problem caused by the lower resolution of the system clock on windows. It makes the test cases for sorting trace messages fail. To get around this a sleep of 2 ms is added in "appropriate places", and also the messages sent between client and server when creating the trace log for these test cases is now better synched. The cleanup functions, which terminate slave nodes, was called in end_per_testcase. However, it seems to be a bug in the test_server which causes this to hang if the test case failed with a timetrap_timeout. Workaround for this is to do the cleanup in init_per_testcase instead - i.e. make sure that nodes that are to be started by the test case do not already live when the test case starts.
2011-10-27Cleanup after testcases in ttb_SUITESiri Hansen
Slave nodes were earlier stopped inside each test case. If a test case failed before this point, a slave node would survive and it might interfere with the next test case causing multiple failures. This commit moves the stopping of slave nodes out to a separate function for each test case - called during end_per_testcase. A minor correction is also done in ttb:ensure_no_overloaded_nodes - the reply message sent back from the ttb process is tagged so only the expected message will be picked from the message queue. Otherwise, for instance nodedown messages from the monitoring of slave nodes (by the test cases) could be received here. Finally, the sleep timer when waiting for trace messages to arrive over tcp/ip is extended a bit since test cases sometimes failed with missing trace messages here.
2011-09-06Merge branch 'pd/ttb-cleanup' into majorHenrik Nord
OTP-9430 OTP-9403 OTP-9431
2011-08-30Support for stopped and resumed tracing.Andrzej Telezynski
2011-08-30More robust testing of tracing with 'local' option.Andrzej Telezynski
2011-08-30Test for: (BUGFIX) Error with ip tracing to wrap sets.Andrzej Telezynski
2011-08-30Stop option 'return' changed to 'return_fetch_dir'Andrzej Telezynski
2011-08-30It is safe to change cwd on control node or remote nodes while tracingAndrzej Telezynski
2011-08-30additional tests for ttb modulePiotr Dorobisz
2011-08-30new tests for ttb modulePiotr Dorobisz
2011-08-30updated OTP testsPiotr Dorobisz
2011-05-20Update copyright yearsBjörn-Egil Dahlberg
2011-04-04crashdump_helper: Compile for r12 instead of r11Björn Gustavsson
The r11 option is no longer supported by the compiler (silently ignored).
2011-03-11Update copyright yearsBjörn-Egil Dahlberg
2011-03-04Wait longer than 5 sec instead of 2.5 sec for crashdump to be created in testSiri Hansen
2011-02-28Fix file descriptor leak in crashdump_viewer:chunk_pageSiri Hansen
Also, remove compiler warnings for crashdump_viewer_SUITE and fix Makefile in test directory so Emakefile does not grow.
2011-02-28Fix slow parsing of crashdumpsSiri Hansen
This is a first attempt at fixing the problem described in seq11783 - crashdump_viewer is very slow at parsing big crashdumps. To open the first page for a dump of 17M takes about 2 minutes and a dump of 280M takes 1.5-2 hours. The main problmem is that the cdv_dump_index_table, which holds all tags read from the dump, is a bag. Profiling shows that ~95% of the time is spent in ets:insert. The table is now changed to an ordered_set. A second problem occured when a page with many table rows was opened. These pages were sent to inet in one chunk, causing both crashdump_viewer_server and the inets (mod_esi) process to grow very much in memory usage. To overcome this, the pages are now sent to inets in chunks of 1000 rows, and the data is coverted to binaries to avoid data copying between the two processes. Also, some new information in the crashdump was not recognized by the crashdump_viewer. This has been fixed.
2011-02-17Rename Suite Callback to Common Test HookLukas Larsson
2011-02-17Update and add cover spec files to work with common_testLukas Larsson
2011-02-17Update all test specsLukas Larsson
2011-02-17Fix formatting for observerLukas Larsson
2011-02-17Add init_per_suite and end_per_suiteLukas Larsson
2011-02-17Add ts_install_scb to suite/0Lukas Larsson