Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Script doesnt work #68

Closed
jeregrine opened this issue Aug 20, 2015 · 10 comments
Closed

Test Script doesnt work #68

jeregrine opened this issue Aug 20, 2015 · 10 comments
Assignees
Labels

Comments

@jeregrine
Copy link
Contributor

make tests doesn't even work :/

@elbrujohalcon
Copy link
Member

What is the error you are seeing, @jeregrine?

@jeregrine
Copy link
Contributor Author

Enter Import Password:
MAC verified OK
writing RSA key
unable to load certificate
66019:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59/src/crypto/asn1/tasn_dec.c:1341:
66019:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59/src/crypto/asn1/tasn_dec.c:385:Type=X509
cat: priv/temp/cert.pem: No such file or directory
make: *** No rule to make target `tests'.  Stop.

@elbrujohalcon
Copy link
Member

@jeregrine what's the command you're trying to run?
If it is make tests, as it seems to be, I have to warn you that the proper command to run the tests in this project is make test

@jeregrine
Copy link
Contributor Author

Still if I change the test_certs commands to run make test it also fails.
So.

On Fri, Aug 21, 2015 at 7:48 AM, Jason S jason@rokkincat.com wrote:

... I am running the test_certs scripts? Which executes make tests?

On Fri, Aug 21, 2015 at 7:45 AM, Brujo Benavides <notifications@github.com

wrote:

@jeregrine https://github.com/jeregrine what's the command you're
trying to run?
If it is make tests, as it seems to be, I have to warn you that the
proper command to run the tests in this project is make test


Reply to this email directly or view it on GitHub
#68 (comment).

@jeregrine
Copy link
Contributor Author

Sorry for ellipses. the test_certs script does not work.

@elbrujohalcon
Copy link
Member

You're entirely right. I had an older version of the system in my machine, sorry.

@elbrujohalcon
Copy link
Member

I can reproduce the error here now, it's somehow related to SSL but it's still unclear to me what's happening.

@elbrujohalcon elbrujohalcon assigned igaray and jfacorro and unassigned elbrujohalcon and igaray Aug 21, 2015
@jfacorro
Copy link

@jeregrine I just run the priv/test_certs script using a certificate and private key file from Inaka and the tests passed. Is it possible that your certificate and/or private key is outdated?

Here is the command I ran and the result:

➜ apns4erl git:(master) priv/test_certs apns_dev.cer certs.p12
Enter Import Password:
MAC verified OK
writing RSA key
Makefile:23: warning: overriding commands for target `shell'
erlang.mk:1033: warning: ignoring old commands for target `shell'
 GEN    clean
 GEN    clean-app
 GEN    clean-ct
./rebar compile
==> proper (compile)
make[2]: `include/compile_flags.hrl' is up to date.
==> jiffy (compile)
./rebar compile
==> sync (compile)
./rebar compile
==> sync (compile)
mkdir -p ebin
erl -make
cp src/aleppo.app.src ebin/aleppo.app
-n
 APP    katana.app.src
==> eper (compile)
==> eper (escriptize)
 ERLC   apns.erl apns_connection.erl apns_queue.erl apns_sup.erl
 APP    apns.app.src
 GEN    build-ct-suites


Common Test v1.11 starting (cwd is apns4erl)



CWD set to: "apns4erl/logs/ct_run.ct@jfacorro.2015-08-21_14.45.33"

TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)

Cover compiling 3 modules - this may take some time... done

Testing work.apns4erl.apns_SUITE: Starting test, 1 test cases

=INFO REPORT==== 21-Aug-2015::14:45:45 ===
Sending msg <<"��;�">> (expires on 1440265545)

=INFO REPORT==== 21-Aug-2015::14:45:45 ===
Feedback server disconnected. Waiting 600000 millis to connect again...

=INFO REPORT==== 21-Aug-2015::14:45:46 ===
Sending msg <<223,202,67,151>> (expires on 1440265546)

=INFO REPORT==== 21-Aug-2015::14:45:47 ===
Sending msg <<"��X�">> (expires on 1440265547)

=INFO REPORT==== 21-Aug-2015::14:45:48 ===
Sending msg <<"��k�">> (expires on 1440265548)

=INFO REPORT==== 21-Aug-2015::14:45:49 ===
Sending msg <<"��s@">> (expires on 1440265549)

=INFO REPORT==== 21-Aug-2015::14:45:50 ===
Sending msg <<"��x1">> (expires on 1440265550)

=INFO REPORT==== 21-Aug-2015::14:45:51 ===
    application: apns
    exited: stopped
    type: temporary
Testing work.apns4erl.apns_SUITE: TEST COMPLETE, 1 ok, 0 failed of 1 test cases

Cover analysing... done

Updating apns4erl/logs/index.html... done
Updating apns4erl/logs/all_runs.html... done

 GEN    tests-ct

@jeregrine
Copy link
Contributor Author

Ahh so you need to run it in the head directory, gotyou.

@jfacorro
Copy link

@jeregrine Yeah, sorry for the confusion. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants