projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mhl and mhbuild ignore to long lines
[mmh]
/
test
/
common.sh
diff --git
a/test/common.sh
b/test/common.sh
index
805afea
..
9e6cb22
100644
(file)
--- a/
test/common.sh
+++ b/
test/common.sh
@@
-8,6
+8,17
@@
trap '
' 0 1 2 15
failed=0
' 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()
{
test_skip()
{
@@
-52,6
+63,12
@@
require_locale()
test_skip "no suitable locale available"
}
test_skip "no suitable locale available"
}
+# Do a best guess at FQDN
+mh_hostname()
+{
+ hostname -f 2>/dev/null || uname -n
+}
+
# Some stuff for doing silly progress indicators
progress_update()
{
# Some stuff for doing silly progress indicators
progress_update()
{
@@
-74,6
+91,12
@@
progress_done()
}
}
+#### Replace generated Content-ID headers with static value
+replace_contentid()
+{
+ sed "/^Content-ID/s/:.*/: <TESTID>/" "$@"
+}
+
#### Filter that squeezes blank lines, partially emulating GNU cat -s,
#### but sufficient for our purpose.
#### Filter that squeezes blank lines, partially emulating GNU cat -s,
#### but sufficient for our purpose.