From 64f3760b1971d717faafde2608bab043bcbb15d3 Mon Sep 17 00:00:00 2001 From: Alexei Sholik Date: Sat, 23 Aug 2014 23:16:29 +0300 Subject: [PATCH] Add missing fixtures for escript test --- lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex | 3 +++ lib/mix/test/fixtures/dep_with_protocol/mix.exs | 9 +++++++++ .../fixtures/escripttest_protocols/lib/escripttest.ex | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex create mode 100644 lib/mix/test/fixtures/dep_with_protocol/mix.exs create mode 100644 lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex diff --git a/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex b/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex new file mode 100644 index 0000000000..2e9995f4af --- /dev/null +++ b/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex @@ -0,0 +1,3 @@ +defprotocol DepProto do + def hello(x) +end diff --git a/lib/mix/test/fixtures/dep_with_protocol/mix.exs b/lib/mix/test/fixtures/dep_with_protocol/mix.exs new file mode 100644 index 0000000000..6b618fd34a --- /dev/null +++ b/lib/mix/test/fixtures/dep_with_protocol/mix.exs @@ -0,0 +1,9 @@ +defmodule DepProto.Mixfile do + use Mix.Project + + def project do + [ app: :depproto, + version: "0.1.0" ] + end +end + diff --git a/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex b/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex new file mode 100644 index 0000000000..95b9fb2516 --- /dev/null +++ b/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex @@ -0,0 +1,5 @@ +defmodule Escripttest do + def main([protocol]) do + IO.puts Protocol.consolidated?(Module.concat([protocol])) + end +end