File: simple_test.sh

package info (click to toggle)
discosnp 1%3A2.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,652 kB
  • sloc: python: 5,893; sh: 2,966; cpp: 2,692; makefile: 12
file content (28 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

run_discoSnp++.sh -r fof.txt -T

diff discoRes_k_31_c_3_D_100_P_3_b_0_coherent.fa ref_discoRes_k_31_c_3_D_100_P_3_b_0_coherent.fa
if [ $? -ne 0 ] ; then
  echo "*** Test: FAILURE on diff .fa"
  exit 1
fi

# we do not want to compare fildate lines since they are de facto not similar
awk '!/##filedate=/' discoRes_k_31_c_3_D_100_P_3_b_0_coherent.vcf > discoRes_a.vcf
awk '!/##filedate=/' ref_discoRes_k_31_c_3_D_100_P_3_b_0_coherent.vcf > discoRes_b.vcf
diff discoRes_a.vcf discoRes_b.vcf
if [ $? -ne 0 ] ; then
  echo "*** Test: FAILURE on diff .vcf"
  exit 1
fi

rm -fr discoRes_*  reference_genome.fa.*



echo "*** Test: OK"