X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fcommon.sh;h=9e6cb2269cebb0a0b7a08b55a43f102c87e22e86;hb=f7d9cd4bee03230dd8839581f772bdf2bdbf3c97;hp=1a677335b586eca66a1f9bb2e4768144a0fb9700;hpb=17de69d5b6a8082a86d08f7617718e38c27205e0;p=mmh diff --git a/test/common.sh b/test/common.sh index 1a67733..9e6cb22 100644 --- a/test/common.sh +++ b/test/common.sh @@ -8,6 +8,17 @@ trap ' ' 0 1 2 15 failed=0 +#fake sleeps 60 secounds and then reads all input +mmh_test_fakepager() +{ + sleep 60 + + while read a + do + sleep 0 + done + exit 0 +} test_skip() { @@ -80,6 +91,12 @@ progress_done() } +#### Replace generated Content-ID headers with static value +replace_contentid() +{ + sed "/^Content-ID/s/:.*/: /" "$@" +} + #### Filter that squeezes blank lines, partially emulating GNU cat -s, #### but sufficient for our purpose.