source "$BP_DIR/bp_test/lib/test.sh"
-run "write_fasta -I $in -o $tmp -x"
+run "$bp -I $in -o $tmp -x"
assert_no_diff $tmp $out.1
-rm $tmp
+clean
-run "write_fasta -I $in -w 4 -o $tmp -x"
+run "$bp -I $in -w 4 -o $tmp -x"
assert_no_diff $tmp $out.2
-rm $tmp
+clean
-run "write_fasta -I $in -w 4 -Z -o $tmp.gz -x"
+run "$bp -I $in -w 4 -Z gzip -o $tmp.gz -x"
gunzip $tmp.gz
assert_no_diff $tmp $out.3
-rm $tmp
+clean
+
+run "$bp -I $in -w 4 -Z bzip2 -o $tmp.bz2 -x"
+bunzip2 $tmp.bz2
+assert_no_diff $tmp $out.3
+clean