diff options
Diffstat (limited to 'archives/extend/2014-March/000345.html')
-rw-r--r-- | archives/extend/2014-March/000345.html | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/archives/extend/2014-March/000345.html b/archives/extend/2014-March/000345.html new file mode 100644 index 00000000..1da559eb --- /dev/null +++ b/archives/extend/2014-March/000345.html @@ -0,0 +1,148 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] usage of make_* command + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20usage%20of%20make_%2A%20command&In-Reply-To=%3C53188B8E.5010803%40ninenines.eu%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000344.html"> + <LINK REL="Next" HREF="000341.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] usage of make_* command</H1> + <B>Loïc Hoguin</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20usage%20of%20make_%2A%20command&In-Reply-To=%3C53188B8E.5010803%40ninenines.eu%3E" + TITLE="[99s-extend] usage of make_* command">essen at ninenines.eu + </A><BR> + <I>Thu Mar 6 15:51:58 CET 2014</I> + <P><UL> + <LI>Previous message: <A HREF="000344.html">[99s-extend] usage of make_* command +</A></li> + <LI>Next message: <A HREF="000341.html">[99s-extend] Cowboy pre request filter +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#345">[ date ]</a> + <a href="thread.html#345">[ thread ]</a> + <a href="subject.html#345">[ subject ]</a> + <a href="author.html#345">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Sorry I meant ./test/ not ./tests/ + +But yes. That's how OTP does it. + +On 03/06/2014 03:50 PM, Anton Koval' wrote: +><i> Thank you for answer. +</I>><i> Is it common way (for OTP-based application) to store tests in `tests` +</I>><i> subdirectory rather then in `src/tests/`? +</I>><i> +</I>><i> +</I>><i> On Thu, Mar 6, 2014 at 4:40 PM, Loïc Hoguin <<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A> +</I>><i> <mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>>> wrote: +</I>><i> +</I>><i> Tests should be in ./tests, not ./src/tests. +</I>><i> +</I>><i> If you put them in ./tests everything you mentioned will work. +</I>><i> +</I>><i> +</I>><i> On 03/03/2014 09:49 PM, Anton Koval' wrote: +</I>><i> +</I>><i> Hello, +</I>><i> +</I>><i> I have next structure of my project: +</I>><i> . +</I>><i> ├── deps +</I>><i> │ ├── cowboy +</I>><i> │ ├── cowlib +</I>><i> │ ├── erlang_iconv +</I>><i> │ ├── erlydtl +</I>><i> │ ├── mochiweb_xpath +</I>><i> │ └── ranch +</I>><i> ├── ebin +</I>><i> │ ├── fetchers.beam +</I>><i> │ ├── parsers.beam +</I>><i> │ └── wasearch_sup.beam +</I>><i> ├── erlang.mk <<A HREF="http://erlang.mk">http://erlang.mk</A>> <<A HREF="http://erlang.mk">http://erlang.mk</A>> +</I>><i> +</I>><i> ├── Makefile +</I>><i> ├── _rel +</I>><i> │ └── .... +</I>><i> ├── relx +</I>><i> ├── relx.config +</I>><i> ├── src +</I>><i> │ ├── fetchers.erl +</I>><i> │ ├── main_handler.erl +</I>><i> │ ├── parsers.erl +</I>><i> │ ├── tests +</I>><i> │ │ ├── parsers_SUITE_data +</I>><i> │ │ ├── parsers_SUITE.erl +</I>><i> │ │ ├── .... +</I>><i> │ ├── wasearch_app.erl +</I>><i> │ ├── wasearch.app.src +</I>><i> │ └── wasearch_sup.erl +</I>><i> └── templates +</I>><i> └── index.dtl +</I>><i> +</I>><i> I would prefer to store tests not in `src` directory but rather in +</I>><i> `tests` subdirectory. +</I>><i> Erlang.mk README says: You can run an individual test suite by +</I>><i> using the +</I>><i> special |test_*| targets. For example if you have a common_test +</I>><i> suite +</I>><i> named |spdy| and you want to run only this suite and not the +</I>><i> others, you +</I>><i> can use the |make test_spdy| command. +</I>><i> And of course `make test_parsers` returns `no rule to make +</I>><i> target` error. +</I>><i> Is there a way to run suites from custom directory with +</I>><i> `make_<mod_name_with_suite>` command? +</I>><i> +</I>><i> +</I>><i> _________________________________________________ +</I>><i> Extend mailing list +</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> <mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>> +</I>><i> <A HREF="https://lists.ninenines.eu/__listinfo/extend">https://lists.ninenines.eu/__listinfo/extend</A> +</I>><i> <<A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>> +</I>><i> +</I>><i> +</I>><i> -- +</I>><i> Loïc Hoguin +</I>><i> <A HREF="http://ninenines.eu">http://ninenines.eu</A> +</I>><i> +</I>><i> +</I> +-- +Loïc Hoguin +<A HREF="http://ninenines.eu">http://ninenines.eu</A> + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000344.html">[99s-extend] usage of make_* command +</A></li> + <LI>Next message: <A HREF="000341.html">[99s-extend] Cowboy pre request filter +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#345">[ date ]</a> + <a href="thread.html#345">[ thread ]</a> + <a href="subject.html#345">[ subject ]</a> + <a href="author.html#345">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> |