X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_test%2Ftest_all;h=e94395f84dbdc2324b8f5c09d080dfd1142fa706;hb=041e3704a12bb721c4dd3ee3f28bf286c5654e33;hp=061bec3f5bc69b2df1b18b7313b6d7e86c1f9a1d;hpb=bba949ceabb0a366245520982ad01db7c9fc62d3;p=biopieces.git diff --git a/bp_test/test_all b/bp_test/test_all index 061bec3..e94395f 100755 --- a/bp_test/test_all +++ b/bp_test/test_all @@ -1,8 +1,39 @@ -#!/usr/bin/env sh +#!/bin/bash -source "lib/test.sh" +source "$BP_DIR/bp_test/lib/test.sh" -rm $log_file +if [ -f $log_file ]; then + rm $log_file +fi + +test_perl +test_perl_module "Inline" +test_perl_module "JSON::XS" +test_perl_module "SVG" +test_perl_module "Bit::Vector" +test_perl_module "Time::HiRes" +test_ruby +test_ruby_gem "gnuplot" +test_ruby_gem "narray" +test_ruby_gem "RubyInline" +test_ruby_gem "terminal-table" +test_aux_program "blastall" +test_aux_program "blat" +test_aux_program "bwa" +test_aux_program "bowtie" +test_aux_program "formatdb" +test_aux_program "gnuplot" +test_aux_program "idba" +test_aux_program "muscle" +test_aux_program "mummer" +test_aux_program "mysql" +test_aux_program "prodigal" +test_aux_program "Ray" +test_aux_program "scan_for_matches" +test_aux_program "usearch" +test_aux_program "velveth" +test_aux_program "velvetg" +test_aux_program "vmatch" count=0 time0=`date +%s` @@ -17,13 +48,15 @@ time=$[ $time1 - $time0 ] test_count=`cat $log_file | wc -l | sed "s/ //g"` test_ok=`grep -c "OK" $log_file` +test_fail=`grep -c "FAIL" $log_file` +test_warn=`grep -c "WARNING" $log_file` -test_fail=$[ $test_count - $test_ok ] +report="Biopieces tested: $count Tests run: $test_count OK: $test_ok FAIL: $test_fail WARNING: $test_warn Time: $time secs" -report="Biopieces tested: $count Tests run: $test_count OK: $test_ok FAIL: $test_fail Time: $time secs" - -if [ $test_fail = 0 ]; then - echo_green "$report" -else +if (($test_fail > 0)); then echo_red "$report" +elif (($test_warn > 0)); then + echo_yellow "$report" +else + echo_green "$report" fi