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

Tests do not work #88

Open
nivertech opened this issue Jun 4, 2014 · 0 comments
Open

Tests do not work #88

nivertech opened this issue Jun 4, 2014 · 0 comments

Comments

@nivertech
Copy link

What's the proper way to run erjang testsuite?
I trying run tests using run_erl_tests.sh and it's broken on master branch.

https://github.com/trifork/erjang/blob/master/run_erl_tests.sh#L11

It uses missing erl.sh, which I supposed should be jerl.sh, but even after fixing this and other problems,, I run into what I think is missing parse transform in triq:

~/ws/erjang/src/test/erl/properties/simple$ erlc -I ../../../../../triq/include *.erl
 binary_tests.erl:none: error in parse transform 'triq_autoexport': {undef,
                                              [{triq_autoexport,
                                                parse_transform,
                                                [[{attribute,1,file,
                                                   {"binary_tests.erl",1}},
                                                  {attribute,6,module,
                                                   binary_tests},
                                                  {attribute,1,file,
                                                   {"/home/zvi/ws/erjang/src/test/erl/properties/simple/../../../../../triq/include/triq.hrl",
                                                    1}},

when running modified script:

#!/bin/sh

(cd src/test/erl; erlc *.erl )
(cd src/test/erl/deterministic; erlc *.erl)
(cd src/test/erl/properties/erlang; erlc -I../../../../../triq/include *.erl)
(cd src/test/erl/properties/simple; erlc -I../../../../../triq/include *.erl)

CMD=""

for f in src/test/erl/deterministic/*_tests.beam ; do 
    test=`basename $f .beam`
    CMD="$CMD -s $test test"
done

for f in src/test/erl/properties/erlang/*_tests.beam ; do 
    test=`basename $f .beam`
    CMD="$CMD -s $test test"
done

for f in src/test/erl/properties/simple/*_tests.beam ; do 
    test=`basename $f .beam`
    CMD="$CMD -s $test test"
done

echo $CMD

#./erl.sh -noshell -pa ./src/test/erl $CMD -s erlang halt
./jerl -noshell -pa ./src/test/erl $CMD -s erlang halt

See:
https://github.com/nivertech/erjang/blob/zvi_fix_tests/run_erl_tests.sh

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

No branches or pull requests

1 participant