pax_global_header 0000666 0000000 0000000 00000000064 11763146263 0014523 g ustar 00root root 0000000 0000000 52 comment=1c98f6ccd4adc915167d4302d732d79e4da3d390 rebar-2.0.0/ 0000775 0000000 0000000 00000000000 11763146263 0012615 5 ustar 00root root 0000000 0000000 rebar-2.0.0/.gitignore 0000664 0000000 0000000 00000000153 11763146263 0014604 0 ustar 00root root 0000000 0000000 *.beam rebar *~ *.orig .*.swp rt.work .hgignore .eunit dialyzer_warnings xref_warnings rebar.cmd rebar.ps1 rebar-2.0.0/.hgignore 0000664 0000000 0000000 00000000066 11763146263 0014422 0 ustar 00root root 0000000 0000000 \.beam ^rebar$ .~ \.orig \.swp rt.work/* ^.gitignore$ rebar-2.0.0/.hgtags 0000664 0000000 0000000 00000000063 11763146263 0014072 0 ustar 00root root 0000000 0000000 e8747041ef63f1b394d3b156c72c5bc12e92ecc4 RELEASE-1 rebar-2.0.0/LICENSE 0000664 0000000 0000000 00000023677 11763146263 0013641 0 ustar 00root root 0000000 0000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS rebar-2.0.0/Makefile 0000664 0000000 0000000 00000001020 11763146263 0014246 0 ustar 00root root 0000000 0000000 .PHONY: dialyzer_warnings xref_warnings all: ./bootstrap clean: @rm -rf rebar ebin/*.beam inttest/rt.work debug: @./bootstrap debug check: debug xref dialyzer xref: @./rebar xref dialyzer: dialyzer_warnings @diff -U0 dialyzer_reference dialyzer_warnings dialyzer_warnings: -@dialyzer -q -n ebin -Wunmatched_returns -Werror_handling \ -Wrace_conditions > dialyzer_warnings binary: VSN = $(shell ./rebar -V) binary: clean all cp rebar ../rebar.wiki/rebar (cd ../rebar.wiki && git commit -m "Update $(VSN)" rebar) rebar-2.0.0/NOTES.org 0000664 0000000 0000000 00000000727 11763146263 0014224 0 ustar 00root root 0000000 0000000 * Major operations ** Compile *** Code generation *** Compilation/linking *** App validation ** Clean ** ct testing ** eunit testing ** Installation ** Doc generation * Modes/File types ** Erlang ** Port driver ** NIF driver ** SNMP MIBs ** ASN.1 files * Misc. Notes ** Port/NIF driver compilation needs pre/post hook ** Need to support code generation for things like protobuf ** Need to support compilation flags * Contexts ** Application ** General ** Release ?! rebar-2.0.0/README.md 0000664 0000000 0000000 00000010014 11763146263 0014070 0 ustar 00root root 0000000 0000000 rebar ===== rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases. rebar is a self-contained Erlang script, so it's easy to distribute or even embed directly in a project. Where possible, rebar uses standard Erlang/OTP conventions for project structures, thus minimizing the amount of build configuration work. rebar also provides dependency management, enabling application writers to easily re-use common libraries from a variety of locations (git, hg, etc). Building -------- Information on building and installing [Erlang/OTP](http://www.erlang.org) can be found [here](https://github.com/erlang/otp/wiki/Installation) ([more info](https://github.com/erlang/otp/blob/master/INSTALL.md)). ### Dependencies To build rebar you will need a working installation of Erlang R13B03 (or later). Should you want to clone the rebar repository, you will also require git. #### Downloading You can download a pre-built binary version of rebar from: https://github.com/basho/rebar/wiki/rebar #### Building rebar ```sh $ git clone git://github.com/basho/rebar.git $ cd rebar $ ./bootstrap Recompile: src/getopt ... Recompile: src/rebar_utils ==> rebar (compile) Congratulations! You now have a self-contained script called "rebar" in your current working directory. Place this script anywhere in your path and you can use rebar to build OTP-compliant apps. ``` Contributing to rebar ===================== Pull requests and branching --------------------------- Use one topic branch per pull request. Do not commit to master in your fork. Provide a clean branch without any merge commits from upstream. Usually you should squash any intermediate commits into the original single commit. Code style ---------- Do not introduce trailing whitespace. Do not mix spaces and tabs. Do not introduce lines longer than 80 characters. [erlang-mode (emacs)](http://www.erlang.org/doc/man/erlang.el.html) indentation is preferred. vi-only users are encouraged to give [Vim emulation](http://emacswiki.org/emacs/Evil) ([more info](https://gitorious.org/evil/pages/Home)) a try. Writing Commit Messages ----------------------- Structure your commit message like this:
One line summary (less than 50 characters) Longer description (wrap at 72 characters)### Summary * Less than 50 characters * What was changed * Imperative present tense (fix, add, change) * `Fix bug 123` * `Add 'foobar' command` * `Change default timeout to 123` * No period ### Description * Wrap at 72 characters * Why, explain intention and implementation approach * Present tense ### Atomicity * Break up logical changes * Make whitespace changes separately Dialyzer and Tidier ------------------- Before you submit a patch check for [xref](http://www.erlang.org/doc/man/xref.html) and [Dialyzer](http://www.erlang.org/doc/man/dialyzer.html) warnings. A successful run of ``make check`` looks like: ```sh $ make check Recompile: src/rebar_core ==> rebar (compile) Command 'debug' not understood or not applicable Congratulations! You now have a self-contained script called "rebar" in your current working directory. Place this script anywhere in your path and you can use rebar to build OTP-compliant apps. ==> rebar (xref) make: [dialyzer_warnings] Error 2 (ignored) ``` [xref](http://www.erlang.org/doc/man/xref.html) and [Dialyzer](http://www.erlang.org/doc/man/dialyzer.html) warnings are compared against a set of safe-to-ignore warnings found in [dialyzer_reference](https://raw.github.com/tuncer/rebar/maint/dialyzer_reference) and [xref_reference](https://raw.github.com/tuncer/rebar/maint/xref_reference). It is **strongly recommended** to check the code with [Tidier](http://tidier.softlab.ntua.gr:20000/tidier/getstarted). Select all transformation options and enable **automatic** transformation. If Tidier suggests a transformation apply the changes **manually** to the source code. Do not use the code from the tarball (*out.tgz*) as it will have white-space changes applied by Erlang's pretty-printer. rebar-2.0.0/THANKS 0000664 0000000 0000000 00000002550 11763146263 0013532 0 ustar 00root root 0000000 0000000 The following people have contributed to rebar: Dave Smith Jon Meredith Tim Dysinger Bryan Fink Tuncer Ayaz Ian Wilkinson Juan Jose Comellas Tom Preston-Werner OJ Reeves Ruslan Babayev Ryan Tilder Kevin Smith David Reid Cliff Moon Chris Bernard Jeremy Raymond Bob Ippolito Alex Songe Andrew Thompson Russell Brown Chris Chew Klas Johansson Geoff Cant Kostis Sagonas Essien Ita Essien Manuel Duran Aguete Daniel Neri Misha Gorodnitzky Adam Kocoloski Joseph Wayne Norton Mihai Balea Matthew Batema Alexey Romanov Benjamin Nortier Magnus Klaar Anthony Ramine Charles McKnight Andrew Tunnell-Jones Joe Williams Daniel Reverri Jesper Louis Andersen Richard Jones Tim Watson Anders 'andekar' Christopher Brown Jordi Chacon Shunichi Shinohara Mickael Remond Evax Software Piotr Usewicz Anthony Molinaro Andrew Gopienko Steve Vinoski Evan Miller Jared Morrow Jan Kloetzke Mathias Meyer Steven Gravell Alexis Sellier Mattias Holmlund Tino Breddin David Nonnenmacher Anders Nygren Scott Lystig Fritchie Uwe Dauernheim Yurii Rashkovskii Alfonso De Gregorio Matt Campbell Benjamin Plee Ben Ellis Ignas Vysniauskas Anton Lavrik Jan Vincent Liwanag Przemyslaw Dabek Fabian Linzberger Smith Winston Jesse Gumm Torbjorn Tornkvist Ali Sabil Tomas Abrahamsson Francis Joanis fisher@yun.io Yurin Slava Phillip Toland Mike Lazar Loic Hoguin Ali Yakout Adam Schepis Amit Kapoor Ulf Wiger Nick Vatamaniuc rebar-2.0.0/bootstrap 0000775 0000000 0000000 00000011250 11763146263 0014557 0 ustar 00root root 0000000 0000000 #!/usr/bin/env escript %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- %% ex: ft=erlang ts=4 sw=4 et main(Args) -> %% Get a string repr of build time Built = build_time(), %% Get a string repr of first matching VCS changeset VcsInfo = vcs_info([{hg, ".hg", "hg identify -i"}, {git, ".git", "git describe --always"}]), %% Check for force=1 flag to force a rebuild case lists:member("force=1", Args) of true -> rm("ebin/*.beam"); false -> rm("ebin/rebar_core.beam") end, %% Add check for debug flag DebugFlag = case lists:member("debug", Args) of true -> debug_info; false -> undefined end, %% Extract the system info of the version of OTP we use to compile rebar OtpInfo = string:strip(erlang:system_info(otp_release), both, $\n), %% Compile all src/*.erl to ebin case make:files(filelib:wildcard("src/*.erl"), [{outdir, "ebin"}, {i, "include"}, DebugFlag, {d, 'BUILD_TIME', Built}, {d, 'VCS_INFO', VcsInfo}, {d, 'OTP_INFO', OtpInfo}]) of up_to_date -> ok; error -> io:format("Failed to compile rebar files!\n"), halt(1) end, %% Make sure file:consult can parse the .app file case file:consult("ebin/rebar.app") of {ok, _} -> ok; {error, Reason} -> io:format("Invalid syntax in ebin/rebar.app: ~p\n", [Reason]), halt(1) end, %% Add ebin/ to our path true = code:add_path("ebin"), %% Run rebar to do proper .app validation and such rebar:main(["compile"] ++ Args), %% Read the contents of the files in ebin and templates; note that we %% place all the beam files at the top level of the code archive so %% that code loading works properly. Files = load_files("*", "ebin") ++ load_files("priv/templates/*", "."), case zip:create("mem", Files, [memory]) of {ok, {"mem", ZipBin}} -> %% Archive was successfully created. Prefix that binary with our %% header and write to "rebar" file. %% Without -noshell -noinput escript consumes all input that would %% otherwise go to the shell for the next command. Script = <<"#!/usr/bin/env escript\n%%! -noshell -noinput\n", ZipBin/binary>>, case file:write_file("rebar", Script) of ok -> ok; {error, WriteError} -> io:format("Failed to write rebar script: ~p\n", [WriteError]), halt(1) end; {error, ZipError} -> io:format("Failed to construct rebar script archive: ~p\n", [ZipError]), halt(1) end, %% Finally, update executable perms for our script on *nix, %% or write out script files on win32. case os:type() of {unix,_} -> [] = os:cmd("chmod u+x rebar"), ok; {win32,_} -> write_windows_scripts(), ok; _ -> ok end, %% Add a helpful message io:format("Congratulations! You now have a self-contained script called" " \"rebar\" in\n" "your current working directory. " "Place this script anywhere in your path\n" "and you can use rebar to build OTP-compliant apps.\n"). rm(Path) -> NativePath = filename:nativename(Path), Cmd = case os:type() of {unix,_} -> "rm -f "; {win32,_} -> "del /q " end, [] = os:cmd(Cmd ++ NativePath), ok. build_time() -> {{Y, M, D}, {H, Min, S}} = calendar:now_to_universal_time(now()), lists:flatten(io_lib:format("~4..0w~2..0w~2..0w_~2..0w~2..0w~2..0w", [Y, M, D, H, Min, S])). load_files(Wildcard, Dir) -> [read_file(Filename, Dir) || Filename <- filelib:wildcard(Wildcard, Dir)]. read_file(Filename, Dir) -> {ok, Bin} = file:read_file(filename:join(Dir, Filename)), {Filename, Bin}. vcs_info([]) -> "No VCS info available."; vcs_info([{Id, Dir, Cmd} | Rest]) -> case filelib:is_dir(Dir) of true -> lists:concat([Id, " ", string:strip(os:cmd(Cmd), both, $\n)]); false -> vcs_info(Rest) end. write_windows_scripts() -> CmdScript= "@echo off\r\n" "setlocal\r\n" "set rebarscript=%~f0\r\n" "escript.exe \"%rebarscript:.cmd=%\" %*\r\n", ok = file:write_file("rebar.cmd", CmdScript). rebar-2.0.0/bootstrap.bat 0000664 0000000 0000000 00000000043 11763146263 0015317 0 ustar 00root root 0000000 0000000 @echo off escript.exe bootstrap %* rebar-2.0.0/dialyzer_reference 0000664 0000000 0000000 00000000115 11763146263 0016376 0 ustar 00root root 0000000 0000000 rebar_utils.erl:154: Call to missing or unexported function escript:foldl/3 rebar-2.0.0/ebin/ 0000775 0000000 0000000 00000000000 11763146263 0013532 5 ustar 00root root 0000000 0000000 rebar-2.0.0/ebin/rebar.app 0000664 0000000 0000000 00000005335 11763146263 0015335 0 ustar 00root root 0000000 0000000 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- %% ex: ts=4 sw=4 ft=erlang et {application, rebar, [{description, "Rebar: Erlang Build Tool"}, {vsn, "2.0.0"}, {modules, [ rebar, rebar_abnfc_compiler, rebar_appups, rebar_app_utils, rebar_base_compiler, rebar_config, rebar_core, rebar_cleaner, rebar_ct, rebar_deps, rebar_asn1_compiler, rebar_edoc, rebar_erlc_compiler, rebar_escripter, rebar_eunit, rebar_file_utils, rebar_lfe_compiler, rebar_erlydtl_compiler, rebar_log, rebar_otp_app, rebar_port_compiler, rebar_protobuffs_compiler, rebar_neotoma_compiler, rebar_rel_utils, rebar_reltool, rebar_require_vsn, rebar_subdirs, rebar_templater, rebar_upgrade, rebar_utils, rebar_xref, getopt, mustache ]}, {registered, []}, {applications, [kernel, stdlib, sasl]}, {env, [ %% Default log level {log_level, error}, %% Default parallel jobs {jobs, 3}, %% any_dir processing modules {any_dir_modules, [ rebar_require_vsn, rebar_deps, rebar_subdirs, rebar_templater, rebar_cleaner ]}, %% Dir specific processing modules {modules, [ {app_dir, [ rebar_abnfc_compiler, rebar_protobuffs_compiler, rebar_neotoma_compiler, rebar_asn1_compiler, rebar_erlc_compiler, rebar_lfe_compiler, rebar_erlydtl_compiler, rebar_port_compiler, rebar_otp_app, rebar_ct, rebar_eunit, rebar_escripter, rebar_edoc, rebar_xref ]}, {rel_dir, [ rebar_appups, rebar_reltool, rebar_upgrade ]} ]} ]} ]}. rebar-2.0.0/include/ 0000775 0000000 0000000 00000000000 11763146263 0014240 5 ustar 00root root 0000000 0000000 rebar-2.0.0/include/rebar.hrl 0000664 0000000 0000000 00000000705 11763146263 0016044 0 ustar 00root root 0000000 0000000 -define(FAIL, throw({error, failed})). -define(ABORT(Str, Args), rebar_utils:abort(Str, Args)). -define(CONSOLE(Str, Args), io:format(Str, Args)). -define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)). -define(INFO(Str, Args), rebar_log:log(info, Str, Args)). -define(WARN(Str, Args), rebar_log:log(warn, Str, Args)). -define(ERROR(Str, Args), rebar_log:log(error, Str, Args)). -define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))). rebar-2.0.0/inttest/ 0000775 0000000 0000000 00000000000 11763146263 0014307 5 ustar 00root root 0000000 0000000 rebar-2.0.0/inttest/bug_5_rt.erl 0000664 0000000 0000000 00000001227 11763146263 0016523 0 ustar 00root root 0000000 0000000 -module(bug_5_rt). -compile(export_all). files() -> [{create, "ebin/a1.app", app(a1)}, {create, "deps/d1/src/d1.app.src", app(d1)}, {create, "rebar.config", <<"{deps, [{d1, \"1\", {hg, \"http://example.com\", \"tip\"}}]}.\n">>}, {copy, "../rebar", "rebar"}]. run(_Dir) -> {ok, _} = retest:sh("./rebar compile"), ok. %% %% Generate the contents of a simple .app file %% app(Name) -> App = {application, Name, [{description, atom_to_list(Name)}, {vsn, "1"}, {modules, []}, {registered, []}, {applications, [kernel, stdlib]}]}, io_lib:format("~p.\n", [App]). rebar-2.0.0/inttest/ct1/ 0000775 0000000 0000000 00000000000 11763146263 0014776 5 ustar 00root root 0000000 0000000 rebar-2.0.0/inttest/ct1/ct1_rt.erl 0000664 0000000 0000000 00000001141 11763146263 0016673 0 ustar 00root root 0000000 0000000 -module(ct1_rt). -compile(export_all). files() -> [{create, "ebin/a1.app", app(a1)}, {copy, "../../rebar", "rebar"}, {copy, "rebar.config", "rebar.config"}, {copy, "test_SUITE.erl", "itest/test_SUITE.erl"}]. run(_Dir) -> {ok, _} = retest:sh("./rebar compile ct"), ok. %% %% Generate the contents of a simple .app file %% app(Name) -> App = {application, Name, [{description, atom_to_list(Name)}, {vsn, "1"}, {modules, []}, {registered, []}, {applications, [kernel, stdlib]}]}, io_lib:format("~p.\n", [App]). rebar-2.0.0/inttest/ct1/rebar.config 0000664 0000000 0000000 00000000024 11763146263 0017254 0 ustar 00root root 0000000 0000000 {ct_dir, "itest"}. rebar-2.0.0/inttest/ct1/test_SUITE.erl 0000664 0000000 0000000 00000000241 11763146263 0017427 0 ustar 00root root 0000000 0000000 -module(test_SUITE). -compile(export_all). -include_lib("ct.hrl"). all() -> [simple_test]. simple_test(Config) -> io:format("Test: ~p\n", [Config]). rebar-2.0.0/inttest/ct2/ 0000775 0000000 0000000 00000000000 11763146263 0014777 5 ustar 00root root 0000000 0000000 rebar-2.0.0/inttest/ct2/ct2_rt.erl 0000664 0000000 0000000 00000001150 11763146263 0016675 0 ustar 00root root 0000000 0000000 -module(ct2_rt). -compile(export_all). files() -> [{create, "ebin/foo.app", app(foo)}, {copy, "../../rebar", "rebar"}, {copy, "foo.test.spec", "test/foo.test.spec"}, {copy, "foo_SUITE.erl", "test/foo_SUITE.erl"}]. run(_Dir) -> {ok, _} = retest:sh("./rebar compile ct -v"), ok. %% %% Generate the contents of a simple .app file %% app(Name) -> App = {application, Name, [{description, atom_to_list(Name)}, {vsn, "1"}, {modules, []}, {registered, []}, {applications, [kernel, stdlib]}]}, io_lib:format("~p.\n", [App]). rebar-2.0.0/inttest/ct2/foo.test.spec 0000664 0000000 0000000 00000000027 11763146263 0017413 0 ustar 00root root 0000000 0000000 {suites, "test", all}. rebar-2.0.0/inttest/ct2/foo_SUITE.erl 0000664 0000000 0000000 00000000240 11763146263 0017233 0 ustar 00root root 0000000 0000000 -module(foo_SUITE). -include_lib("common_test/include/ct.hrl"). -compile(export_all). all() -> [foo]. foo(Config) -> io:format("Test: ~p\n", [Config]). rebar-2.0.0/inttest/retest 0000775 0000000 0000000 00000041075 11763146263 0015552 0 ustar 00root root 0000000 0000000 #!/usr/bin/env escript PK !W< \ getopt.beamX}l[uOOG['~L$Be˹Eqb&i#RD"GqN&'q#M)b ],Kl>aav`l_cld*:<;ęOJRO~*3ؤS_$B$I ,XNŦmfX[X,lY-Ub~o5Z;شNY/O-gW^X.,Vjйlb٪J*oԠZ)-JEۮ,@h\*Flڢo/֛i[5åsz*HtT`f_C6wxba#l܊2g5w5lz}ŚVi9۰NkjԊͳ"ʵ>1!A7䶍rMi+Аػja#P |E]|oRכ+E?_jq6tRaI3-Ydۋ/ZFjrMP*:VdU`yjVVBha$94ߪ ŇtlIqT[.{uYߦ닑B%o00S҂:ɌuLN4./j%ҭkrv)H3ei㖦OiRbJS1+q>eǭ}.WniV^d:W$7/>;>0y9|`">&Έ"3#A=]3}&щ֭j:+@uN_p(KhL#IVf<̏")[ڧ[ƋHn%`y+#jץ! il:͒ğ} ߈"U]qKhgV:°o3/7)1"R.#eV",ai$d4>ޝ]dgRB&6Y$ǒ d V&UX`(//H 4h N(x.Fsn}=Ye8*a;|0!`}OA⩆43s=oji*;ndUVvWWVfFލYH?rQN437^$מ@O t$OhO:Խ~{O[gEQIj,TP4)fesj9Ten~wݲrgeeODDXY큸+z60VK{4Jd.3 $.McKD9~`5Ў j X l[{ ŞiM0Z -