Test error during installation

Issue #136 resolved
Former user created an issue

Hello! I'm installing the MetaBat at Ubuntu 20.04 and at the point of make test I receive the following error:

 make test
Running tests...
Test project /home/username/software/berkeleylab-metabat-8b5702be9852/build
    Start 1: test_depths
1/4 Test #1: test_depths ......................   Passed    0.01 sec
    Start 2: test_metabat1
2/4 Test #2: test_metabat1 ....................   Passed    0.00 sec
    Start 3: test_metabat2
3/4 Test #3: test_metabat2 ....................   Passed    0.00 sec
    Start 4: runMetaBat.sh
4/4 Test #4: runMetaBat.sh ....................***Failed    0.00 sec

75% tests passed, 1 tests failed out of 4

Total Test time (real) =   0.01 sec

The following tests FAILED:
          4 - runMetaBat.sh (Failed)
Errors while running CTest
make: *** [Makefile:118: test] Error 8

All installation prerequisites are satisfied.

Please, advise how to overcome it.

Comments (5)

  1. Rob Egan

    I have no ideas as to why this might happen.

    Can you post the contents of Testing/Temporary/LastTest.log?

  2. Anna Doloman

    The output for the failed test from Testing/Temporary/LastTest.log is :

    4/4 Testing: runMetaBat.sh
    4/4 Test: runMetaBat.sh
    Command: "/home/username/software/berkeleylab-metabat-8b5702be9852/runMetaBat.sh" "/home/username/software/berkeleylab-metabat-8b5702be9852/test/contigs.fa" "/home/adoloman/berkeleylab-metabat-8b5702be9852/test/contigs-1000.fastq.bam"
    Directory: /home/username/software/berkeleylab-metabat-8b5702be9852/build/test-runMetaBat
    "runMetaBat.sh" start time: Sep 28 19:47 CEST
    Output:
    ----------------------------------------------------------
    Please ensure that the MetaBAT binaries are in your PATH: Could not find metabat2
    <end of output>
    Test time =   0.00 sec
    ----------------------------------------------------------
    Test Failed.
    "runMetaBat.sh" end time: Sep 28 19:47 CEST
    "runMetaBat.sh" time elapsed: 00:00:00
    ----------------------------------------------------------
    
    End testing: Sep 28 19:47 CEST
    

    The instruction I follow is:

    cd ~/software
    wget https://bitbucket.org/berkeleylab/metabat/get/master.tar.gz
    tar xzvf master.tar.gz
    cd berkeleylab-metabat-*
    mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make && make test && sudo make install
    cd ~/software
    rm -rf berkeleylab-metabat-* master.tar.gz
    

  3. Yalbi Itzel Balderas Martinez

    I am experiencing the same problem. I do not know what is happening. I am using Ubuntu 20.4.

    Command: "/opt/berkeleylab-metabat-8b5702be9852/runMetaBat.sh" "/opt/berkeleylab-metabat-8b5702be9852/test/contigs.fa" "/opt/berkeleyla

    b-metabat-8b5702be9852/test/contigs-1000.fastq.bam"

    Directory: /opt/berkeleylab-metabat-8b5702be9852/build/test-runMetaBat

    "runMetaBat.sh" start time: Mar 22 03:20 UTC

    Output:


    Please ensure that the MetaBAT binaries are in your PATH: Could not find metabat2

    <end of output>

    Where should metabat2 be?

  4. Rob Egan

    I think this is just an issue of the pathing of the tests under some circumstances.

    I believe that this commit fixes it, at least when I can reproduce it:

    eea7b03b40

  5. Log in to comment