diff options
-rw-r--r-- | Emakefile | 9 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | src/plop.erl | 13 | ||||
-rw-r--r-- | src/sign.erl | 1 |
5 files changed, 8 insertions, 25 deletions
@@ -1,11 +1,6 @@ %% erl -make (-*- erlang -*-) -{["src/*", "test/*"], +{["src/*"], [debug_info, - {i, "../"}, + {i, "../"}, % For hackney. {outdir, "ebin/"}, {parse_transform, lager_transform}]}. -{["test/src/*"], - [debug_info, - {i, "include/"}, - {outdir, "test/ebin/"}, - {parse_transform, lager_transform}]}. @@ -13,3 +13,7 @@ dialyze: build dialyzer ebin tags: etags src/*.[he]rl + +# Unit testing. +check: build + test/check.erl @@ -10,8 +10,6 @@ Compile the application $ make -Test the application +Run tests - [FIXME] - -TODO: -plop Keyfile "test/rsakey.pem" -plop Passphrase "sikrit" + $ make check diff --git a/src/plop.erl b/src/plop.erl index 1f9ddd0..b6d7ff1 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -34,7 +34,6 @@ -include("plop.hrl"). %%-include("db.hrl"). -include_lib("public_key/include/public_key.hrl"). --include_lib("eunit/include/eunit.hrl"). %%%%% moved from plop.hrl, maybe remove -define(PLOPVERSION, 0). @@ -369,15 +368,3 @@ serialise(#signature{ SigLen = size(Signature), list_to_binary([serialise(Algorithm), <<SigLen:16, Signature/binary>>]). - -%%%%%%%%%%%%%%%%%%%% -%% Internal tests. For more tests see ../test/. -%% serialise_test_() -> -%% [?_assertEqual( -%% <<0:8, 0:8, 0:64, 0:16, "foo">>, -%% serialise(#spt_signed{ -%% version = 0, -%% signature_type = certificate_timestamp, -%% timestamp = 0, -%% entry_type = x509, -%% signed_entry = <<"foo">>}))]. diff --git a/src/sign.erl b/src/sign.erl index 1fb1c07..07c5047 100644 --- a/src/sign.erl +++ b/src/sign.erl @@ -22,7 +22,6 @@ -import(stacktrace, [call/2]). -include_lib("public_key/include/public_key.hrl"). --include_lib("eunit/include/eunit.hrl"). -record(state, {pubkey :: public_key:rsa_public_key(), privkey :: public_key:rsa_private_key(), |