Skip to content

Commit

Permalink
[#11] remove sync dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Euen committed Apr 28, 2017
1 parent 09a28dc commit bfa008b
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 51 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PROJECT = fusco

REBAR := ./rebar
REBAR := rebar3
DIALYZER = dialyzer

APPS = kernel stdlib sasl inets ssl public_key crypto compiler
Expand All @@ -13,12 +13,12 @@ compile:
$(REBAR) compile

doc:
$(REBAR) doc
$(REBAR) edoc

test: compile
$(REBAR) eunit ct

release: all dialyze test
release: all dialyzer test
$(REBAR) release

clean:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,10 @@ list of all available options, please check OTP's ssl module manpage.
disconnect(Client :: pid())
```

Running Tests
----
You can execute all test with
```bash
> make test
```
And you can check [this repo](https://github.com/esl/fusco_eqc) and run the Erlang QuickCheck tests
Binary file removed rebar
Binary file not shown.
16 changes: 1 addition & 15 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
, strict_validation
, warn_export_vars
, warn_exported_vars
, warn_missing_spec
, warn_untyped_record
, debug_info
, {platform_define, "R1[45]", no_binary_to_integer}]}.

Expand All @@ -28,11 +26,6 @@
, {meck, "0.8.4"}
, {xref_runner, {git, "https://github.com/inaka/xref_runner", {tag, "0.2.6"}}}
]}
]},
{shell, [
{deps, [
{sync, {git, "https://github.com/rustyio/sync.git", {ref, "9c78e7b"}}}
]}
]}
]}.

Expand All @@ -50,8 +43,6 @@
, strict_validation
, warn_export_vars
, warn_exported_vars
, warn_missing_spec
, warn_untyped_record
, debug_info]}.

{ct_opts, [ {sys_config, ["test/test.config"]}
Expand Down Expand Up @@ -83,9 +74,4 @@
, {plt_extra_apps, []}
, {plt_location, local}
, {base_plt_apps, [stdlib, kernel]}
, {base_plt_location, global}]}.

%% == Shell ==

{shell, [{apps, [sync]}]}.

, {base_plt_location, global}]}.
File renamed without changes.
17 changes: 0 additions & 17 deletions test/crt.pem

This file was deleted.

15 changes: 0 additions & 15 deletions test/key.pem

This file was deleted.

12 changes: 11 additions & 1 deletion test/webserver_utils.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
-module(webserver_utils).

-compile(export_all).
-export([default_string/0,
empty_body/5,
copy_body_100_continue/5,
pre_1_1_server/5,
pre_1_1_server_keep_alive/5,
very_slow_response/5,
no_content_length/5,
no_content_length_1_0/5,
trailing_space_header/5,
no_response/5]).


-define(DEFAULT_STRING, "Great success!").

Expand Down

0 comments on commit bfa008b

Please sign in to comment.