summaryrefslogtreecommitdiff
path: root/lib/tools
Commit message (Collapse)AuthorAgeFilesLines
* Teach the emacs mode to compile yecc and leex filesTomas Abrahamsson2011-08-301-0/+84
| | | | | | | | | | | If visiting a .yrl or .xrl file in emacs with erlang-mode, then the `erlang-compile' function (normally bound to C-c C-k), now knows how to compile yecc and leex files, and then, if that compilation succeeds, also compiles the resulting .erl files. Also introduce a `erlang-compile-command-function-alist' to make it possible to hook in other functions for computing compilation commands/expressions, depending on file name.
* Fix bugs in xref(3)Hans Bolinder2011-07-061-4/+4
| | | | Thanks to Matthias Lang.
* Prepare releaseOTP_R14B03Erlang/OTP2011-05-242-1/+68
|
* Update copyright yearsBjörn-Egil Dahlberg2011-05-201-1/+1
|
* Merge branch 'ss/fix-cover-fd-leak' into devHenrik Nord2011-05-162-0/+5
|\ | | | | | | | | | | | | | | * ss/fix-cover-fd-leak: Add a check logic to prevent file descriptor leak Fix file descriptor leak OTP-9300
| * Add a check logic to prevent file descriptor leakShunichi Shinohara2011-05-061-0/+4
| | | | | | | | | | | | cover module handle files as raw in export and import. Assert counts of ports are the same at the beginning and at the end of the test case.
| * Fix file descriptor leakShunichi Shinohara2011-04-291-0/+1
| | | | | | | | | | | | File descriptors to import cover data are left opened. When we export and import cover data many times, leaked descriptors cause an error.
* | OTP-9094: [httpc] Add support for upload body streaming (PUT and POST).Micael Karlberg2011-05-161-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filipe David Manana OTP-9114: [ftp] Added (type) spec for all exported functions. OTP-9123: mod_esi:deliver/2 made to accept binary data. Bernard Duggan OTP-9124: [httpd] Prevent XSS in error pages. Michael Santos OTP-9131: [httpd] Wrong security property names used in documentation. Garrett Smith OTP-9157: [httpd] Improved error messages. Ricardo Catalinas Jiménez OTP-9158: [httpd] Fix timeout message generated by mod_esi. Bernard Duggan OTP-9202: [httpd] Extended support for file descriptors. Attila Rajmund Nohl OTP-9230: The default ssl kind has now been changed to essl. OTP-9246: [httpc] httpc manager crash because of a handler retry race condition. Merge branch 'bmk/inets/inet56_integration' into dev
| * \ Merge branch 'dev' into bmk/inets/inet56_integrationMicael Karlberg2011-04-121-4/+5
| |\ \ | | |/
| * | Merge branch 'dev' into bmk/inets/inet56_integrationMicael Karlberg2011-04-062-15/+2
| |\ \
| * \ \ Merge branch 'dev' into ↵Micael Karlberg2011-03-1723-23/+75
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bmk/inets/ftp/missing_spec_causes_dialyxer_problems/OTP-9114 Also fixed a bunch of "end-years" (was 2010 but should have been 2011, which the commit hook not happy with).
* | | | | Inhibit electric newline after "->" when inside a type specMagnus Henoch2011-04-151-1/+12
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | The Erlang mode for Emacs inserts a newline after every "->", which saves you one keystroke when writing a function, but that is inappropriate when writing a type spec, as you'd normally keep the spec on one line. This change inhibits the automatic insertion when the current line starts with "-spec" or "-type".
* | | | Merge branch 'ts/cover-with-export_all' into devHenrik Nord2011-04-071-4/+5
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | * ts/cover-with-export_all: add user specified compiler options on form reloading OTP-9204
| * | | add user specified compiler options on form reloadingTobias Schlager2010-09-231-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to test non-exported functions from another (test) module it is necessary to compile the specific module (at least during the test phase) with the export_all compiler option. This allows complete separation of testing and productive code. At the moment it is not possible to combine this with a test code coverage using the cover module. The problem is that when cover compiling a module using cover:compile_* the code is reloaded into the emulator omitting/filtering the passed user options. In my example above the export_all option would be removed and the non-exported functions cannot be called any more.
* | | | Merge branch 'sb/make-files-like-erlc' into devHenrik Nord2011-04-011-14/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sb/make-files-like-erlc: Change make:files to behave more like erlc OTP-9179
| * | | | Change make:files to behave more like erlcSam Bobroff2010-05-191-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently make:files will fail with the atom 'error' and no message when the input (.erl) file is unreadable or the output (.beam) file is unwritable. This differs from erlc which will print a useful error message, or when possible, remove the unwritable output file and continue successfully. This change removes the unnecessary checks on the files when make:files is called and allows the error checking to be done in compile:file, where the error messages are produced. It does not affect the return value. In particular this resolves the mysterious problem of make:files failing but erlc succeeding, caused by an unwritable (usually root owned) beam file in an otherwise writable build directory.
* | | | | Merge branch 'hw/call-chmod-without-f' into devHenrik Nord2011-03-301-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hw/call-chmod-without-f: Call chmod without the "-f" flag Conflicts: erts/emulator/test/Makefile lib/asn1/test/Makefile lib/crypto/test/Makefile lib/debugger/test/Makefile lib/docbuilder/test/Makefile lib/edoc/test/Makefile lib/erl_interface/test/Makefile lib/inviso/test/Makefile lib/parsetools/test/Makefile lib/percept/test/Makefile lib/ssl/test/Makefile lib/syntax_tools/test/Makefile lib/test_server/test/Makefile lib/tools/test/Makefile OTP-9170
| * | | | Call chmod without the "-f" flagHolger Weiß2010-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "-f" is a non-standard chmod option which at least SGI IRIX and HP UX do not support. As the only effect of the "-f" flag is to suppress warning messages, it can be safely omitted.
* | | | | Prepare releaseOTP_R14B02Erlang/OTP2011-03-142-1/+50
| | | | |
* | | | | Update copyright yearsBjörn-Egil Dahlberg2011-03-1121-21/+21
| | | | |
* | | | | Declare indentation options as "safe" in erlang-mode for EmacsMagnus Henoch2011-03-091-0/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs has a facility for setting options on a per-file basis based on comments in the source file. By default, all options are considered "unsafe", and the user is queried before the variable is set. This patch declares the variables erlang-indent-level, erlang-indent-guard and erlang-argument-indent to be safe, if the value specified in the source file is valid. Such declarations usually look like this: %% -*- erlang-indent-level: 2 -*- and appear on the first line of the file.
* | | | Merge branch 'lukas/tools/cover_mem_footprint/OTP-9043' into devLukas Larsson2011-03-081-1/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lukas/tools/cover_mem_footprint/OTP-9043: Fix spelling on analyse Add short sleep to prevent timing issues on slow machines Update cover tests which depend on compiled files to be skipped if the compile testcase is skipped Conflicts: lib/tools/test/cover_SUITE.erl
| * | | | Fix spelling on analyseLukas Larsson2011-03-081-1/+1
| | | | |
| * | | | Add short sleep to prevent timing issues on slow machinesLukas Larsson2011-03-071-0/+1
| | | | |
| * | | | Update cover tests which depend on compiled files to be skipped if the ↵Lukas Larsson2011-03-071-1/+6
| | | | | | | | | | | | | | | | | | | | compile testcase is skipped
* | | | | Merge branch 'lukas/tools/cover_mem_footprint/OTP-9043' into devLukas Larsson2011-02-284-226/+414
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | | | Update testcases which need crypto to be skipped on platforms which does not ↵Lukas Larsson2011-02-171-0/+7
| | | | | | | | | | | | | | | | | | | | have crypto
| * | | | Update internal pmap to have a process limitLukas Larsson2011-02-101-17/+36
| | | | | | | | | | | | | | | | | | | | Add write concurrancy to cover masters ?COVER_TABLE
| * | | | Update documentation to reflect performance enhancement changes of coverLukas Larsson2011-02-023-10/+60
| | | | |
| * | | | Add aync_analyse_to_file function to coverLukas Larsson2011-02-021-13/+43
| | | | |
| * | | | Split the cover ets tables into two tables, one with the clause info and one ↵Lukas Larsson2011-02-012-61/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with the bump info. This will make it faster to search the tables when analyzing and exporting data. Also made cover export more parallel in how data is collected from the different nodes and also how data is read from ets. This should make the performance of cover much better on machines with multiple CPUs.
| * | | | Add process debug tagsLukas Larsson2011-01-271-2/+19
| | | | |
| * | | | Update remote collect to handle multiple requests at onceLukas Larsson2011-01-271-25/+28
| | | | |
| * | | | Remove io printout warnings when exporting an imported moduleLukas Larsson2011-01-271-5/+6
| | | | |
| * | | | Update cover to allow multiple analyse and analyze_to_file calls at the same ↵Lukas Larsson2011-01-261-37/+49
| | | | | | | | | | | | | | | | | | | | time. For each call a seperate process will be spawned to handle the request.
| * | | | Refactor cover to prepare it for making analysis parallelLukas Larsson2011-01-261-150/+171
| | | | |
| * | | | Update remote loading to only load a certain number of modules at a time to ↵Lukas Larsson2011-01-251-7/+18
| | | | | | | | | | | | | | | | | | | | prevent memory usage explosion
* | | | | Rename Suite Callback to Common Test HookLukas Larsson2011-02-1710-10/+10
| | | | |
* | | | | Update and add cover spec files to work with common_testLukas Larsson2011-02-172-2/+6
| | | | |
* | | | | Update all test specsLukas Larsson2011-02-171-1/+1
| | | | |
* | | | | Fix formatting for toolsLukas Larsson2011-02-1710-81/+93
| | | | |
* | | | | Add init_per_suite and end_per_suiteLukas Larsson2011-02-178-8/+56
| | | | |
* | | | | Add ts_install_scb to suite/0Lukas Larsson2011-02-1710-11/+31
| | | | |
* | | | | Update tools tests to conform with common_test standardLukas Larsson2011-02-1711-97/+188
| | | | |
* | | | | Update all fin_per_testcase to end_per_testcase.Lukas Larsson2011-02-177-12/+169
|/ / / /
* | | | Prepare releaseErlang/OTP2010-12-062-1/+21
| | | |
* | | | eprof: fix badarith exception on divideBjörn-Egil Dahlberg2010-11-301-3/+6
| | | | | | | | | | | | | | | | Error caused by low resolution timers.
* | | | Fix eprof API mismatch of sort functionalityBjörn-Egil Dahlberg2010-11-221-3/+3
|/ / / | | | | | | | | | | | | Option {sort, calls} now sorts on calls. Option {sort, time } now sorts on time.
* | | Emacs erlang-mode: fix syntax highlighting of $ in two casesMagnus Henoch2010-09-301-1/+17
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A string whose last character is a dollar sign used to make the syntax highlighter believe that the string never ends, breaking highlighting of following code: -vsn("$Revision: 42 $"). And the double quote as a character constant with a (superfluous) backslash used to make the syntax highlighter believe that a new string started: foo() -> $\". This change fixes both problems by adding two regexps to font-lock-syntactic-keywords in erlang-font-lock-init. One case that is still broken is when a multi-line string ends with a dollar sign: bar() -> "This multi-line string ends with a $". baz() -> this_gets_incorrectly_highlighted.
* | Prepare releaseOTP_R14BErlang/OTP2010-09-132-1/+17
| |