summaryrefslogtreecommitdiff
path: root/systest/all_SUITE_data
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-12-05 07:47:07 -0500
committerFred Hebert <mononcqc@ferd.ca>2017-12-05 07:57:40 -0500
commit553a579b36fe0fb4a8bf464cd282d43c07d4e192 (patch)
tree92a62624f4be249cd583ea1f3c33145641087e09 /systest/all_SUITE_data
parent46ea7e1e8f700d92947a0a9d8bfb0fb43b122a66 (diff)
Alias plugin promoted to built-in command
- Uses the code at https://github.com/tsloughter/rebar_alias and brings it within rebar3 - adds safety checks to prevent redefining built-in commands or obvious circular dependencies between commands (indirect circular deps are still possible) - adds tests - adds a systest to ensure no clash with the existing plugin
Diffstat (limited to 'systest/all_SUITE_data')
-rw-r--r--systest/all_SUITE_data/alias_clash/rebar.config4
-rw-r--r--systest/all_SUITE_data/alias_clash/src/alias_clash.app.src15
-rw-r--r--systest/all_SUITE_data/alias_clash/src/alias_clash.erl13
3 files changed, 32 insertions, 0 deletions
diff --git a/systest/all_SUITE_data/alias_clash/rebar.config b/systest/all_SUITE_data/alias_clash/rebar.config
new file mode 100644
index 0000000..baf20a9
--- /dev/null
+++ b/systest/all_SUITE_data/alias_clash/rebar.config
@@ -0,0 +1,4 @@
+{alias, [{help, [version]}, % should be skipped, but be overriden by plugin
+ {test, [compile, {eunit, "-c"}, cover]}]}.
+
+{plugins, [rebar_alias]}. % should be overridden
diff --git a/systest/all_SUITE_data/alias_clash/src/alias_clash.app.src b/systest/all_SUITE_data/alias_clash/src/alias_clash.app.src
new file mode 100644
index 0000000..b4cdda2
--- /dev/null
+++ b/systest/all_SUITE_data/alias_clash/src/alias_clash.app.src
@@ -0,0 +1,15 @@
+{application, alias_clash,
+ [{description, "An OTP library"},
+ {vsn, "0.1.0"},
+ {registered, []},
+ {applications,
+ [kernel,
+ stdlib
+ ]},
+ {env,[]},
+ {modules, []},
+
+ {maintainers, []},
+ {licenses, ["Apache 2.0"]},
+ {links, []}
+ ]}.
diff --git a/systest/all_SUITE_data/alias_clash/src/alias_clash.erl b/systest/all_SUITE_data/alias_clash/src/alias_clash.erl
new file mode 100644
index 0000000..9249cdb
--- /dev/null
+++ b/systest/all_SUITE_data/alias_clash/src/alias_clash.erl
@@ -0,0 +1,13 @@
+-module(alias_clash).
+
+%% API exports
+-export([]).
+
+%%====================================================================
+%% API functions
+%%====================================================================
+
+
+%%====================================================================
+%% Internal functions
+%%====================================================================