File: run_tests.sh

package info (click to toggle)
iqtree 1.6.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,140 kB
  • sloc: cpp: 111,752; ansic: 53,619; python: 242; sh: 195; makefile: 52
file content (50 lines) | stat: -rwxr-xr-x 1,558 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash -
#===============================================================================
#
#          FILE: run_tests.sh
#
#         USAGE: ./run_tests.sh
#
#   DESCRIPTION:
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Tung Nguyen (nltung@gmail.com),
#  ORGANIZATION:
#       CREATED: 2016-08-12 16:43:54 CEST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

if [ "$#" -lt 1 ]
then
    echo "Please enter the name of the local branch you want to compile"
    echo "USAGE: $0 <branch_name> [<iqtree_flags_in_quotes>]" >&2
    exit 1
fi

branchName=$1
flags=$2

if [ "$flags" == "" ]; then
    flags="static"
fi

#Compile the specified branch
source compile.sh ${branchName} "$flags"

#Generate test cases
echo -e "\nGENERATE TEST CASES FOR THE SEQUENTIAL VERSION\n"
testCasesSeq="${branchName}-seq-test-cases.txt"
./gen_test_standard.py -b ${buildDir}/iqtree -c test_configs.txt -o "${testCasesSeq}"
echo "Test cases were writen to ${testCasesSeq}"
./submit_jobs.sh 24 ${testCasesSeq} test_data test-results-${branchName}-seq

echo -e "\nGENERATE TEST CASES FOR THE OMP VERSION\n"
testCasesOMP="${branchName}-omp-test-cases.txt"
./gen_test_standard.py -b ${buildDirOMP}/iqtree-omp -c test_configs.txt -o "${testCasesOMP}" -f "-nt 2"
echo "Test cases were writen to ${testCasesOMP}"
./submit_jobs.sh 48 ${testCasesOMP} test_data test-results-${branchName}-omp