Skip to content

Commit

Permalink
Adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emmarousseau committed Mar 18, 2024
1 parent c987786 commit a875b4e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/gffread/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mkdir -p "$test_output_dir"
echo "> Test 1 - Read annotation file, output GFF"

"$meta_executable" \
-E \
--expose_dups \
--input "$test_dir/annotation.gff" \
-o "$test_output_dir/ann_simple.gff"

Expand All @@ -31,8 +31,8 @@ echo ">> Check if output is empty"

echo ">> Compare output to expected output"

# Not comparing header lines, they are not in the same order and reference file
# was created with a different version of gffread.
# Not comparing header lines as they are not in the same order
# (reference file was created with gffred version 11.8 instead of 12.7).
diff <(grep -v '^#' "$expected_output_dir/ann_simple.gff") \
<(grep -v '^#' "$test_output_dir/ann_simple.gff") || \
(echo "Output file ann_simple.gff does not match expected output" && exit 1)
Expand All @@ -57,8 +57,8 @@ echo ">> Check if output is empty"

echo ">> Compare output to expected output"

# remove trailing semicolons from the files
# Difference in trailing semicolon presence might be due to reference output
# removing trailing semicolons from the files
# Difference in trailing semicolon presence possibly due to reference output
# being generated by gffred version 11.8 instead of 12.7.
sed -i 's/;$/''/' "$expected_output_dir/annotation.gtf"
sed -i 's/;$/''/' "$test_output_dir/annotation.gtf"
Expand Down Expand Up @@ -109,8 +109,7 @@ echo ">> Compare output to expected output"
diff "$expected_output_dir/annotation.tbl" "$test_output_dir/annotation.tbl" || \
(echo "Output file annotation.tbl does not match expected output" && exit 1)

# reference output annotation.tbl was created manually since it was not included
# in the original test data.
# reference output annotation.tbl was created manually with gffread 0.12.7

################################################################################

Expand Down

0 comments on commit a875b4e

Please sign in to comment.