Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Modify tests so they execute
· 66449a07
Shayan Doust
authored
Sep 23, 2019
66449a07
Write autopkgtest
· 28799727
Shayan Doust
authored
Sep 23, 2019
Currently passes
28799727
Show whitespace changes
Inline
Side-by-side
debian/bcalm.install
View file @
28799727
...
...
@@ -2,3 +2,6 @@ debian/missing-sources/compare_fasta.py usr/share/doc/bcalm/test
debian
/
missing
-
sources
/
reference
.
fasta
usr
/
share
/
doc
/
bcalm
/
test
debian
/
missing
-
sources
/
simple_test
.
sh
usr
/
share
/
doc
/
bcalm
/
test
example
/*
usr
/
share
/
doc
/
bcalm
/
test
test
/*
usr
/
share
/
doc
/
bcalm
/
test
debian
/
missing
-
sources
/
compare_fasta
.
py
usr
/
share
/
doc
/
bcalm
/
test
debian/missing-sources/simple_test.sh
View file @
28799727
#!/bin/bash
rm
-f
reference.fasta
#
rm -f reference.fasta
#wget https://raw.githubusercontent.com/GATB/MindTheGap/f5cb0fec816686c7393772787d736565c4f056a4/test/full_test/reference.fasta >& /dev/null
../build/
bcalm
-in
reference.fasta
-abundance-min
1
>
/dev/null
>
& /dev/null
rm
-rf
reference.unitigs.fa.glue
*
rm
-f
compare_fasta.py
bcalm
-in
reference.fasta
-abundance-min
1
>
/dev/null
>
& /dev/null
#
rm -rf reference.unitigs.fa.glue*
#
rm -f compare_fasta.py
#wget https://raw.githubusercontent.com/GATB/minia/master/test/compare_fasta.py >& /dev/null
python3 compare_fasta.py reference.fasta reference.unitigs.fa
res
=
$?
rm
-f
reference.fasta reference.h5 reference.unitigs.fa compare_fasta.py
#
rm -f reference.fasta reference.h5 reference.unitigs.fa compare_fasta.py
if
[
"
$res
"
=
"0"
]
then
echo
"test OK"
...
...
debian/tests/run-unit-test
View file @
28799727
#!/bin/bash
set
-e
pkg
=
#PACKAGENAME#
pkg
=
bcalm
if
[
"
${
AUTOPKGTEST_TMP
}
"
=
""
]
;
then
AUTOPKGTEST_TMP
=
$(
mktemp
-d
/tmp/
${
pkg
}
-test
.XXXXXX
)
# Double quote below to expand the temporary directory variable now versus
# later is on purpose.
# shellcheck disable=SC2064
trap
"rm -rf
${
AUTOPKGTEST_TMP
}
"
0 INT QUIT ABRT PIPE TERM
fi
cp
-a
/usr/share/doc/
${
pkg
}
/
exampl
es/
*
"
${
AUTOPKGTEST_TMP
}
"
cp
-a
/usr/share/doc/
${
pkg
}
/
t
es
t
/
*
"
${
AUTOPKGTEST_TMP
}
"
cd
"
${
AUTOPKGTEST_TMP
}
"
#do_stuff_to_test_package#
bash simple_test.sh
bash run-tiny.sh