in reply to Re: make test hangs
in thread make test hangs

Hi hotpelmen,
this outpout was produces by a:
"make test TEST_VERBOSE=1" on the shell.
When I try to run it as a perl inliner I got the folloing:

perl -MExtUtils::Command::MM -MTest::Harness - e undef *Test::Har ness::Switches; test_harness(1, 'blib/lib', 'blib/arch') t/ *.t /bin/-sh: syntax error: `(' unexpected
But I have no idea how to start it manualy or how to use the correct syntax for the perl interpreter?
Can you help me on this ?

The log with "### START ##..." was the outout of the test script: 00simple_test.t that I'v created to see what is going on since the TEST::HARNESS will discharge any output to STDOUT.

I've found this on the internet:
"make test TEST_VERBOSE=1 TEST_FILE=<test_script> | tee test.log"
when I run it as:
"make test TEST_VERBOSE=1 TEST_FILE=t/00simple_test.t | tee test.log"
It also hangs and there are no additional informations in the created test.log. Did someone know what additional TEST variables I can use to see what is going on ?


Regards WolliK

Replies are listed 'Best First'.
Re^3: make test hangs
by davido (Cardinal) on Feb 12, 2015 at 17:56 UTC

    Shouldn't you be able to run prove -bv? Then you don't have to fiddle with the harness directly. If it runs as it should, then your problem is probably something in the makefile. If it doesn't run as it should, the error messages might be more helpful at least.


    Dave

      Hi Dave,
      when i run prove -bv I get the hang on the same position.

      /tmp/DBI-1.633>prove -bv
      t/00simple_test.t ...............<--- hangs for ever

      When I run it for a specific script is shows: t/00simple_test.t ..<--- hangs for ever now after two dots

      When I run it in DRY run mode ("prove -D"(do nothing just check for the scripts) it works fine, no hang and it comes to an end!
      So I need to find why it hangs, at what state and in what module or routine happens this stuck situation?

      Regards WolliK

Re^3: make test hangs
by syphilis (Archbishop) on Feb 12, 2015 at 22:36 UTC
    perl -MExtUtils::Command::MM -MTest::Harness - e undef *Test::Harness: +:Switches; test_harness1, 'blib/lib', 'blib/arch') t/ *.t /bin/-sh: syntax error: `(' unexpected
    I think the problem there is the space in - e, which should be appearing as -e

    Remove that space and at least one of your problems should go away.
    However, I don't know exactly where to look in order to fix whatever it is that's inserting that space - somewhere in ExtUtils::MakeMaker, I guess.
    What version of EU::MM do you have ?

    Update: On closer inspection it seems that you might be responsible for the insertion of that space - as the space aint there in your first post.

    Cheers,
    Rob

      Hi Rob,

      sorry ther is no space I got this only when I copied it into the reply
      WolliK