Commit ba87f79b authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Add test that checks correct program behaviour when it called without arguments

parent 55af0bb9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
bowtie2 (2.3.4.1-2) UNRELEASED; urgency=medium

  * Team upload.
  * Autopkgtest: add test that checks correct program behaviour when it called
    without arguments

 -- Liubov Chuprikova <chuprikovalv@gmail.com>  Tue, 12 Jun 2018 15:15:38 +0200

bowtie2 (2.3.4.1-1) unstable; urgency=medium

  * New upstream version 2.3.4.1
+13 −0
Original line number Diff line number Diff line
#/bin/sh -e

TMP="$(mktemp)"
# Run bowtie2 without any arguments and save stderr in a temporary file:
STDOUT="$(bowtie2 2> ${TMP})"
# Exit status of the previous command should be 1
[ "$?" -eq 1 ]
# Save help message into a variable:
HELP_MESSAGE="$(bowtie2 --help)"
# Check if stderr contains help message:
grep -q "${HELP_MESSAGE}" "${TMP}"
echo "SUCCESS: help message was detected!"
rm "${TMP}"
+2 −0
Original line number Diff line number Diff line
Tests: check-wo-arguments

Tests: indexing-ref-genome

Tests: binary-run