#!/bin/bash

set -ex

echo ">>> Running executable"
$meta_executable \
    --bam "$meta_resources_dir/demuxafy_test_data/chr_1_pooled.sorted.bam" \
    --output samtools_result/

[[ ! -f samtools_result/sorted.bam ]] && echo "Output preprocessed BAM file could not be found!" && exit 1

echo ">>> Test finished successfully"
