Skip to content
Snippets Groups Projects
Commit fedbb693 authored by arq5x's avatar arq5x
Browse files

[TST] resolve platform-specific issues with GNU cut.

parent b94d9f5e
No related branches found
No related tags found
No related merge requests found
...@@ -560,7 +560,7 @@ rm obs ...@@ -560,7 +560,7 @@ rm obs
############################################################ ############################################################
echo " intersect.new.t48...\c" echo " intersect.new.t48...\c"
echo "Error: Sorted input specified" > exp echo "Error: Sorted input specified" > exp
$BT intersect -a chromsOutOfOrder.bed -b b.bed -sorted 2>&1 > /dev/null | grep "Error: Sorted input specified, " | cut -f1 --delimiter=',' > obs $BT intersect -a chromsOutOfOrder.bed -b b.bed -sorted 2>&1 > /dev/null | grep "Error: Sorted input specified, " | cut -f1 -d ',' > obs
check obs exp check obs exp
rm obs exp rm obs exp
...@@ -571,7 +571,7 @@ rm obs exp ...@@ -571,7 +571,7 @@ rm obs exp
############################################################ ############################################################
echo " intersect.new.t49...\c" echo " intersect.new.t49...\c"
echo "Error: Sorted input specified" > exp echo "Error: Sorted input specified" > exp
$BT intersect -a recordsOutOfOrder.bed -b b.bed -sorted 2>&1 > /dev/null | grep "Error: Sorted input specified, " | cut -f1 --delimiter=',' > obs $BT intersect -a recordsOutOfOrder.bed -b b.bed -sorted 2>&1 > /dev/null | grep "Error: Sorted input specified, " | cut -f1 -d ',' > obs
check obs exp check obs exp
rm obs exp rm obs exp
...@@ -590,7 +590,7 @@ rm obs exp ...@@ -590,7 +590,7 @@ rm obs exp
echo " intersect.new.t51...\c" echo " intersect.new.t51...\c"
echo "is an empty file." > exp echo "is an empty file." > exp
touch dummy.txt touch dummy.txt
$BT intersect -a dummy.txt -b b.bed 2>&1 > /dev/null | cut -f3-6 --delimiter=' ' > obs $BT intersect -a dummy.txt -b b.bed 2>&1 > /dev/null | cut -f3-6 -d ' ' > obs
check obs exp check obs exp
rm obs exp dummy.txt rm obs exp dummy.txt
......
...@@ -92,7 +92,7 @@ rm obs exp ...@@ -92,7 +92,7 @@ rm obs exp
############################################################ ############################################################
echo " sample.new.t07...\c" echo " sample.new.t07...\c"
echo 10 > exp echo 10 > exp
$BT sample -i mainFile.bed -n 10 | wc -l | cut -f1 --delimiter=' '> obs $BT sample -i mainFile.bed -n 10 | wc -l | cut -f1 -d ' '> obs
check obs exp check obs exp
rm obs exp rm obs exp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment