git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: Factor "seq" shell function out into common infrastructure.
[sliver-openvswitch.git]
/
tests
/
testsuite.at
diff --git
a/tests/testsuite.at
b/tests/testsuite.at
index
3ec28d6
..
e8f7498
100644
(file)
--- a/
tests/testsuite.at
+++ b/
tests/testsuite.at
@@
-33,6
+33,14
@@
ovs_wait () {
done
exit 1
}
+
+# Prints the integers from $1 to $2, increasing by $3 (default 1) on stdout.
+seq () {
+ while test $1 -le $2; do
+ echo $1
+ set `expr $1 + ${3-1}` $2 $3
+ done
+}
]
m4_divert_pop([PREPARE_TESTS])