Permalink
Browse files

use plain rebar ct to run CT suite

  • Loading branch information...
1 parent 802a758 commit 7b8219374b946c16806d5bcd025ad9404582f2ae @uwiger committed Jan 22, 2012
View
@@ -1,9 +1,4 @@
-.PHONY: all compile clean deps eunit test eqc docs doc
-
-DIRS=src
-EQC=${HOME}/lib/eqc-1.0.1
-
-BRANCH=`git branch | awk '/\*/ {print $2}'`
+.PHONY: all compile clean deps eunit test docs doc
all: compile
@@ -15,21 +10,16 @@ clean:
deps:
./rebar get-deps
+ ./rebar update-deps
eunit:
./rebar eunit
-test/run_eqc_test.beam: test/run_eqc_test.erl
- erlc -W -o test test/run_eqc_test.erl
-
-test: script test/run_eqc_test.beam
- ./run_eqc.escript -m run_eqc_test -n 1000 -rpt error -pa test
+test:
+ ./rebar ct
docs: doc
doc:
./rebar doc
- ./mk_readme.escript doc/README.md README.md
+# ./mk_readme.escript doc/README.md README.md
-script: compile
- escript ebin/run_eqc.beam generate run_eqc.escript ${EQC}
- chmod u+x run_eqc.escript
View
@@ -1,12 +0,0 @@
-unsplit - Resolve conflicts in Mnesia tables after network split
-
-Author: Ulf Wiger, Erlang Solutions Ltd
-
-
-NOTE: This application is currently a fairly crude prototype,
- and is not intended for mission-critical tasks (yet).
-
-Documentation will follow, as soon as the approach has been
-verified to work. So far, no Mnesia patches are used, but
-for it to work really well, some added functionality in
-Mnesia may well be needed.
View
@@ -1,13 +1,9 @@
-<h1>The unsplit application</h1>
+#unsplit - A framework for resolving Mnesia netsplits#
-unsplit - A framework for resolving Mnesia netsplits
-=====================================================
-.
-
-Copyright © 2010 Erlang Solutions Ltd.
+Copyright (c) 2010 Erlang Solutions Ltd.
__Version:__ 0.5
@@ -72,12 +68,11 @@ and the fetched data will be handed to the merge function as:
The return value, `ret()` is defined as:
-
<pre>
ret() :: stop
-| {ok, state()}
-| {ok, actions(), state()}
-| {ok, actions(), strategy(), state()}
+ | {ok, state()}
+ | {ok, actions(), state()}
+ | {ok, actions(), strategy(), state()}
actions() :: [action()]
@@ -88,7 +83,6 @@ strategy() :: all_keys | {ModS, FunS}
-
If a custom fetch strategy function is given, it will be called as
@@ -117,14 +111,13 @@ running, but is not found on the other side. `[{[{mytab,2,a}], [{mytab,2,b}]}]`
would mean that conflicting versions of the object `{mytab,2}` were found.
-<h2 class="indextitle">Modules</h2>
-
+##Modules##
<table width="100%" border="0" summary="list of modules">
-<tr><td><a href="unsplit/blob/master/doc/unsplit.md" class="module">unsplit</a></td></tr>
-<tr><td><a href="unsplit/blob/master/doc/unsplit_lib.md" class="module">unsplit_lib</a></td></tr>
-<tr><td><a href="unsplit/blob/master/doc/unsplit_reporter.md" class="module">unsplit_reporter</a></td></tr>
-<tr><td><a href="unsplit/blob/master/doc/unsplit_server.md" class="module">unsplit_server</a></td></tr>
-<tr><td><a href="unsplit/blob/master/doc/unsplit_vclock.md" class="module">unsplit_vclock</a></td></tr></table>
+<tr><td><a href="http://github.com/esl/unsplit/blob/master/doc/unsplit.md" class="module">unsplit</a></td></tr>
+<tr><td><a href="http://github.com/esl/unsplit/blob/master/doc/unsplit_lib.md" class="module">unsplit_lib</a></td></tr>
+<tr><td><a href="http://github.com/esl/unsplit/blob/master/doc/unsplit_reporter.md" class="module">unsplit_reporter</a></td></tr>
+<tr><td><a href="http://github.com/esl/unsplit/blob/master/doc/unsplit_server.md" class="module">unsplit_server</a></td></tr>
+<tr><td><a href="http://github.com/esl/unsplit/blob/master/doc/unsplit_vclock.md" class="module">unsplit_vclock</a></td></tr></table>
View
@@ -1,11 +1,7 @@
-<h1>The unsplit application</h1>
+#unsplit - A framework for resolving Mnesia netsplits#
-unsplit - A framework for resolving Mnesia netsplits
-
-=====================================================
-.
Copyright (c) 2010 Erlang Solutions Ltd.
@@ -72,12 +68,11 @@ and the fetched data will be handed to the merge function as:
The return value, `ret()` is defined as:
-
<pre>
ret() :: stop
-| {ok, state()}
-| {ok, actions(), state()}
-| {ok, actions(), strategy(), state()}
+ | {ok, state()}
+ | {ok, actions(), state()}
+ | {ok, actions(), strategy(), state()}
actions() :: [action()]
@@ -88,7 +83,6 @@ strategy() :: all_keys | {ModS, FunS}
-
If a custom fetch strategy function is given, it will be called as
@@ -117,8 +111,7 @@ running, but is not found on the other side. `[{[{mytab,2,a}], [{mytab,2,b}]}]`
would mean that conflicting versions of the object `{mytab,2}` were found.
-<h2 class="indextitle">Modules</h2>
-
+##Modules##
<table width="100%" border="0" summary="list of modules">
View
@@ -1,9 +1,6 @@
-Module unsplit
-==============
-<h1>Module unsplit</h1>
-
+#Module unsplit#
* [Description](#description)
* [Function Index](#index)
* [Function Details](#functions)
@@ -15,40 +12,34 @@ Framework for merging mnesia tables after netsplit.
__Behaviours:__ [`application`](application.md), [`supervisor`](supervisor.md).
-__Authors:__ : Ulf Wiger ([`ulf.wiger@erlang-solutions.com`](mailto:ulf.wiger@erlang-solutions.com)).
-
-<h2><a name="description">Description</a></h2>
+__Authors:__ : Ulf Wiger ([`ulf.wiger@erlang-solutions.com`](mailto:ulf.wiger@erlang-solutions.com)).<a name="description"></a>
+##Description##
...
+<a name="index"></a>
-
-<h2><a name="index">Function Index</a></h2>
-
+##Function Index##
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#get_reporter-0">get_reporter/0</a></td><td>Look up the predefined callback module for reporting inconsistencies.</td></tr><tr><td valign="top"><a href="#report_inconsistency-4">report_inconsistency/4</a></td><td>Report an inconcistency to the predefined reporter.</td></tr><tr><td valign="top"><a href="#report_inconsistency-5">report_inconsistency/5</a></td><td>Report an inconsistency to Reporter (an unsplit_reporter behaviour).</td></tr><tr><td valign="top"><a href="#start-2">start/2</a></td><td>Application start callback.</td></tr><tr><td valign="top"><a href="#stop-1">stop/1</a></td><td>Application stop callback.</td></tr></table>
+<a name="functions"></a>
-
-<h2><a name="functions">Function Details</a></h2>
-
+##Function Details##
<a name="get_reporter-0"></a>
-<h3>get_reporter/0</h3>
+###get_reporter/0##
-
-
-<pre>get_reporter() -> <a href="#type-module">module()</a></pre>
-
+<pre>get_reporter() -&gt; module()</pre>
<br></br>
@@ -57,15 +48,12 @@ __Authors:__ : Ulf Wiger ([`ulf.wiger@erlang-solutions.com`](mailto:ulf.wiger@er
Look up the predefined callback module for reporting inconsistencies
<a name="report_inconsistency-4"></a>
-<h3>report_inconsistency/4</h3>
-
-
+###report_inconsistency/4##
-<pre>report_inconsistency(Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -> ok</pre>
-
+<pre>report_inconsistency(Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -&gt; ok</pre>
<br></br>
@@ -74,15 +62,12 @@ Look up the predefined callback module for reporting inconsistencies
Report an inconcistency to the predefined reporter
<a name="report_inconsistency-5"></a>
-<h3>report_inconsistency/5</h3>
-
-
+###report_inconsistency/5##
-<pre>report_inconsistency(Reporter, Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -> ok</pre>
-
+<pre>report_inconsistency(Reporter, Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -&gt; ok</pre>
<br></br>
@@ -91,15 +76,12 @@ Report an inconcistency to the predefined reporter
Report an inconsistency to Reporter (an unsplit_reporter behaviour)
<a name="start-2"></a>
-<h3>start/2</h3>
-
+###start/2##
-
-<pre>start(X1::Type, X2::Arg) -> {ok, pid()}</pre>
-
+<pre>start(X1::Type, X2::Arg) -&gt; {ok, pid()}</pre>
<br></br>
@@ -108,15 +90,12 @@ Report an inconsistency to Reporter (an unsplit_reporter behaviour)
Application start callback
<a name="stop-1"></a>
-<h3>stop/1</h3>
-
-
-
+###stop/1##
-<pre>stop(X1::State) -> ok</pre>
+<pre>stop(X1::State) -&gt; ok</pre>
<br></br>
Oops, something went wrong.

0 comments on commit 7b82193

Please sign in to comment.