X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftestsuite.at;h=264a15fd6860dc5fb9ed558882a1116e3dab0b1b;hb=c5cf10598f8c9f4428291e9df3ecd72a05fb1ccf;hp=b045ae66e15da7f295fe9951f1103ab88911588a;hpb=038b21a100dd346a7e1fbf833284e1d58949e7cb;p=sliver-openvswitch.git diff --git a/tests/testsuite.at b/tests/testsuite.at index b045ae66e..264a15fd6 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -46,6 +46,39 @@ if test "$IS_WIN32" = "yes"; then pwd () { command pwd -W "$@" } + + diff () { + command diff --strip-trailing-cr "$@" + } + + kill () { + case "$1" in + -0) + shift + for i in $*; do + # tasklist will always have return code 0. + # If pid does exist, there will be a line with the pid. + if tasklist //fi "PID eq $i" | grep $i; then + : + else + return 1 + fi + done + return 0 + ;; + -[1-9]*) + shift + for i in $*; do + taskkill //F //PID $i + done + ;; + [1-9][1-9]*) + for i in $*; do + taskkill //F //PID $i + done + ;; + esac + } fi ] m4_divert_pop([PREPARE_TESTS])