diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-08-13 16:51:11 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-08-13 16:51:11 -0400 |
commit | 58ffb2e6f35ae2528d55ce92f79b42b8bc17be9c (patch) | |
tree | 54629bfd4189d500942a5de72c8209174a579c0f /runtests | |
parent | c874ebb5389424e2d04be0c64350c9146b8f8d49 (diff) | |
download | mirror-ponymix-58ffb2e6f35ae2528d55ce92f79b42b8bc17be9c.tar.gz mirror-ponymix-58ffb2e6f35ae2528d55ce92f79b42b8bc17be9c.tar.bz2 mirror-ponymix-58ffb2e6f35ae2528d55ce92f79b42b8bc17be9c.zip |
add adj-balance verb for incremental balance changes
This is useful if you ever wanted to script balance adjustment, since it
would otherwise require 2 invocations (get + set).
Diffstat (limited to 'runtests')
-rwxr-xr-x | runtests | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -19,7 +19,7 @@ do_test() { (( ++testno )) - result=$("$pulsemix" "$verb" ${arg+"$arg"} 2>/dev/null) + result=$("$pulsemix" "$verb" -- ${arg+"$arg"} 2>/dev/null) if [[ $result != $expected ]]; then printf '==> test %d FAIL: expected %s, got %s\n' "$testno" "$expected" "$result" (( ++fail )) @@ -40,7 +40,11 @@ do_test '' 'decrease' bar # balance do_test 30 'set-balance' 30 +do_test 30 'get-balance' do_test 100 'set-balance' 9001 +do_test -5 'adj-balance' -105 +do_test 45 'adj-balance' 50 +do_test 100 'adj-balance' 9001 do_test 0 'set-balance' 0 if (( ! fail )); then |