summaryrefslogtreecommitdiff
path: root/erts/test/otp_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* diameter: remove optional call to deprecated fn and update appupKiko Fernandez-Reyes2023-04-251-1/+1
| | | | | | | | | | | `diameter` should not call or rely on the deprecated function `dbg:stop_clear/0`. The main reason is that `dbg:stop_clear/0` is simply an alias to `dbg:stop/0`. Thus, `dbg:stop_clear/0` was marked as deprecated in a previous pull request GH-6903 (commit `861be72c5a1261ee1694ee468540256f6db11e87`), and these are the remains that I forgot to update.
* Check for non-recommended functions only in OTP codeBjörn Gustavsson2023-03-301-24/+36
|
* Update copyright yearErlang/OTP2023-03-211-1/+1
|
* otp_SUITE: Update tests for non-recommended functionsBjörn Gustavsson2023-02-171-9/+10
| | | | | | | | | | | | * There are no longer any calls to the `size/1` function in any OTP application. `size/1` is not formally deprecated, but its use is not recommended, and we should not use it in OTP code. From now on, use of `size/1` in any OTP application will cause the `otp_SUITE:call_to_size_1/1` test to fail. * The only uses of the deprecated `now/0` function is from the `et` application. From now on, `otp_SUITE:call_to_now_0/1` will forbid calls to `now/0` from any other application than `et`.
* Simplify the test_runtime_dependencies_versions/1 test caseBjörn Gustavsson2022-12-011-327/+199
| | | | | | | | | Vast simplifications are possible because there is no need to find an Erlang system that can be started on the current machine. We are only interested in the BEAM file in each release. Therefore, we can bypass the test_server:find_release/1 function and directly use the BEAM files in the directory where all OTP releases are stored.
* Merge branch 'maint' into masterHenrik Nord2022-03-101-1/+1
|\ | | | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Update copyright yearErlang/OTP2022-03-091-1/+1
| |
* | Merge branch 'lukas/25/test-fixes'Sverker Eriksson2022-02-281-3/+14
|\ \
| * | system: Fix otp_SUITE with --disable-esockLukas Larsson2022-02-171-3/+14
| | |
* | | Merge branch 'maint' into masterSverker Eriksson2022-02-281-12/+5
|\ \ \ | |/ / |/| / | |/
| * socket: Filter undefined calls from socket testLukas Larsson2022-02-181-1/+9
| | | | | | | | | | If socket is disabled through configure some modules to not exist, so we ignore calls to those.
* | erts: Ignore undef prim_socket functionsLukas Larsson2022-01-101-1/+16
| | | | | | | | | | If we compile with --disable-esock we should ignore any calls to those functions.
* | Fix printout of missing functionLukas Larsson2021-12-281-1/+1
| |
* | Merge branch 'maint'Rickard Green2021-12-131-1/+1
|\ \ | |/ | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-131-1/+1
| |
* | Fix typos in erts/testKian-Meng, Ang2021-11-291-4/+4
| |
* | Add app-file runtime_dependencies test and incorrect dependencies fixesKjell Winblad2021-07-091-4/+323
|/ | | | | | | | | | | | | | | | | | | | | This commit adds a test case to check that app files for the Erlang/OTP applications specifies correct versions for the dependencies in the runtime_dependencies field. The test is designed to work on the Erlang/OTP team's test servers as it assumes that all released applications are installed in particular places and that all app versions have been increased in the correct way (which is done by scripts in the Erlang/OTP team's test infrastructure). The test uses xref to try to find undefined function calls in all Erlang/OTP applications. When running xref to test an application, `xref`'s library path is set to point to folders containing beam-files for the applications that are specified as the minimum correct versions by the `runtime_dependencies` field in the application's app file. This commit also bumps the versions of several dependencies that the test found to have incorrect versiosn so they instead get the first version of the dependencies that makes the test pass.
* Merge branch 'bjorn/cuddle-with-tests'Björn Gustavsson2021-03-031-18/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/cuddle-with-tests: test_server: Remove is_native/1 otp_SUITE: Remove handling of the gs application Remove unused functions in test suites Remove redundant tests for native code runtime_tools tests: Turn on warnings as errors runtime_tools tests: Eliminate use of deprecated now/0 dbg_SUITE: Remove unused functions core_alias_SUITE: Slightly optimize catastrophic_runtime/1 Eliminate warnings for underscore variables multiply bound
| * otp_SUITE: Remove handling of the gs applicationBjörn Gustavsson2021-03-011-18/+9
| | | | | | | | While at it, refactor the list of filters in undefined_functions/1.
* | otp_SUITE: Enhance the dependency tests to run in both xref modesBjörn Gustavsson2021-02-261-9/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref can be run in two modes. More detailed information can be found by running in `functions` mode, but it requires analysing source code or BEAM files compiled with the `debug_info` option. When no debug_info is available, xref must be run in `module` mode. Note that more module edges can potentially be found in `modules` mode because the analysis is based on the BEAM code after all optimizations. For example, an apply in the source code could after optimizations be resolved to a specific function. Update otp_SUITE to test runtime dependencies in both modes. It is important to test the `modules` modes because reltool runs xref in that mode (because the BEAM files to be released might not contain debug information).
* | otp_SUITE: Refactor creation of the xref serverBjörn Gustavsson2021-02-261-24/+29
|/ | | | | | Break out the creation of the xref server to a separater helper functions to facilitate creation of multiple xref servers running in different modes.
* otp: Remove HiPE and HiPE-related accessoriesJohn Högberg2020-11-091-48/+7
|
* Implement EEP-48 aka doc chunksLukas Larsson2020-02-241-3/+3
|
* kernel: Add erts to code:lib_dir lookupLukas Larsson2020-02-241-2/+8
|
* system: Remove special handling of EDoc in otp_SUITE.Hans Bolinder2019-08-201-9/+2
|
* Update copyright yearHenrik Nord2018-06-181-1/+1
|
* system (test): Do not use deprecated functions in string(3)Dan Gudmundsson2017-09-151-2/+2
|
* Merge branch 'henrik/update-copyrightyear'Henrik Nord2016-04-131-1/+1
|\ | | | | | | | | * henrik/update-copyrightyear: update copyright-year
| * update copyright-yearHenrik Nord2016-03-151-1/+1
| |
* | Eliminate use of test_server:fail/0,1Björn-Egil Dahlberg2016-04-061-6/+6
| |
* | Eliminate use of ?config() macroBjörn-Egil Dahlberg2016-04-061-9/+9
| |
* | Modernize use of timetrapsBjörn-Egil Dahlberg2016-04-051-15/+4
| |
* | Remove ?line macrosBjörn-Egil Dahlberg2016-04-051-251/+251
|/
* otp_SUITE: Remove handling of test_server applicationBjörn Gustavsson2016-02-261-30/+2
|
* Eliminate use of test_server.hrl and test_server_line.hrlBjörn Gustavsson2016-02-171-1/+1
| | | | | | | As a first step to removing the test_server application as as its own separate application, change the inclusion of test_server.hrl to an inclusion of ct.hrl and remove the inclusion of test_server_line.hrl.
* Remove the deprecated webtool applicationBjörn Gustavsson2015-10-141-2/+2
|
* Adjust test case for missing applicationsHans Bolinder2015-09-221-2/+21
|
* Change license text to APLv2Bruce Yinhe2015-06-181-9/+10
|
* Merge branch 'maint'Erland Schönbeck2015-03-251-3/+1
|\
| * Update with changes in new time apiErland Schönbeck2015-03-231-3/+1
| | | | | | | | otp_SUITE: change filter för diameter
* | Merge branch 'maint'Erland Schönbeck2015-03-231-10/+2
|\ \ | |/ | | | | | | Conflicts: lib/ssh/test/ssh_basic_SUITE.erl
| * Revert "Use new time API and be back-compatible in ssh"Erland Schönbeck2015-03-161-10/+2
| | | | | | | | | | | | | | This reverts commit af972aaf14a5f53510e692f48f672f7e6805ee6d. Conflicts: lib/ssh/test/ssh_basic_SUITE.erl
* | Merge branch 'rickard/time_api/OTP-11997'Rickard Green2015-03-201-18/+28
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rickard/time_api/OTP-11997: (22 commits) Update primary bootstrap inets: Suppress deprecated warning on erlang:now/0 inets: Cleanup of multiple copies of functions Add inets_lib with common functions used by multiple modules inets: Update comments Suppress deprecated warning on erlang:now/0 Use new time API and be back-compatible in inets Remove unused functions and removed redundant test asn1 test SUITE: Eliminate use of now/0 Disable deprecated warning on erlang:now/0 in diameter_lib Use new time API and be back-compatible in ssh Replace all calls to now/0 in CT with new time API functions test_server: Replace usage of erlang:now() with usage of new API Replace usage of erlang:now() with usage of new API Replace usage of erlang:now() with usage of new API Replace usage of erlang:now() with usage of new API Replace usage of erlang:now() with usage of new API otp_SUITE: Warn for calls to erlang:now/0 Replace usage of erlang:now() with usage of new API Multiple timer wheels Erlang based BIF timer implementation for scalability Implement ethread events with timeout ... Conflicts: bootstrap/bin/start.boot bootstrap/bin/start_clean.boot bootstrap/lib/compiler/ebin/beam_asm.beam bootstrap/lib/compiler/ebin/compile.beam bootstrap/lib/kernel/ebin/auth.beam bootstrap/lib/kernel/ebin/dist_util.beam bootstrap/lib/kernel/ebin/global.beam bootstrap/lib/kernel/ebin/hipe_unified_loader.beam bootstrap/lib/kernel/ebin/inet_db.beam bootstrap/lib/kernel/ebin/inet_dns.beam bootstrap/lib/kernel/ebin/inet_res.beam bootstrap/lib/kernel/ebin/os.beam bootstrap/lib/kernel/ebin/pg2.beam bootstrap/lib/stdlib/ebin/dets.beam bootstrap/lib/stdlib/ebin/dets_utils.beam bootstrap/lib/stdlib/ebin/erl_tar.beam bootstrap/lib/stdlib/ebin/escript.beam bootstrap/lib/stdlib/ebin/file_sorter.beam bootstrap/lib/stdlib/ebin/otp_internal.beam bootstrap/lib/stdlib/ebin/qlc.beam bootstrap/lib/stdlib/ebin/random.beam bootstrap/lib/stdlib/ebin/supervisor.beam bootstrap/lib/stdlib/ebin/timer.beam erts/aclocal.m4 erts/emulator/beam/bif.c erts/emulator/beam/erl_bif_info.c erts/emulator/beam/erl_db_hash.c erts/emulator/beam/erl_init.c erts/emulator/beam/erl_process.h erts/emulator/beam/erl_thr_progress.c erts/emulator/beam/utils.c erts/emulator/sys/unix/sys.c erts/preloaded/ebin/erlang.beam erts/preloaded/ebin/erts_internal.beam erts/preloaded/ebin/init.beam erts/preloaded/src/erts_internal.erl lib/common_test/test/ct_hooks_SUITE_data/cth/tests/empty_cth.erl lib/diameter/src/base/diameter_lib.erl lib/kernel/src/os.erl lib/ssh/test/ssh_basic_SUITE.erl system/doc/efficiency_guide/advanced.xml
| * otp_SUITE: Warn for calls to erlang:now/0Björn Gustavsson2015-03-201-18/+28
| |
* | Use new time API and be back-compatible in sshErland Schönbeck2015-02-251-2/+10
| | | | | | | | otp_SUITE: Ignore undefined functions in ssh
* | otp_SUITE: Ignore diameter undefined function errorsErland Schönbeck2015-02-181-2/+18
|/
* Support for ignoring apps in runtime_dependencies testRickard Green2014-04-011-11/+69
|
* Remove orber/cos*/ic files from encoding testLars Thorsen2014-03-281-0/+10
| | | | These applications contains generated code with the latin1 directivce.
* Add test-case verifying runtime dependencies found by xrefRickard Green2014-03-201-2/+60
|
* otp_SUITE: Add test cases to ensure that OTP conventions are obeyedBjörn Gustavsson2013-04-191-2/+62
| | | | | | Erlang source files should not have any "coding:" comment. The encoding for documentation XML files should be "utf-8" or "UTF-8".