Skip to content

Commit

Permalink
Move to common test
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Mar 14, 2016
1 parent fb51bee commit b89de9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ clean: $(REBAR)
.PHONY: test dialyzer typer clean distclean

test: $(REBAR) compile
@$(REBAR) xref eunit recursive=false
@$(REBAR) xref ct

$(DEPSOLVER_PLT):
@dialyzer $(DIALYZER_FLAGS) --output_plt $(DEPSOLVER_PLT) --build_plt \
Expand Down
18 changes: 13 additions & 5 deletions test/crypt_tests.erl → test/crypt_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (c) 2012-2015, Michael Santos <michael.santos@gmail.com>
%% Copyright (c) 2012-2016, Michael Santos <michael.santos@gmail.com>
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -28,14 +28,22 @@
%% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
%% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
%% POSSIBILITY OF SUCH DAMAGE.
-module(crypt_tests).
-module(crypt_SUITE).

-compile(export_all).
-include_lib("common_test/include/ct.hrl").

-include_lib("eunit/include/eunit.hrl").
-export([
all/0
]).

-export([
crypt/1
]).

crypt_test() ->
all() ->
[crypt].

crypt(_Config) ->
<<"aaqPiZY5xR5l.">> = crypt:crypt("test","aa"),
<<"aaqPiZY5xR5l.">> = crypt:crypt([<<"t">>, ["e", [<<"s">>], <<"t">>]],
[<<"a">>, "a"]),
Expand Down

0 comments on commit b89de9d

Please sign in to comment.