aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 16:41:20 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 16:41:20 +0100
commitb9781282a79e19dd6f61d62403ad5aa378ede927 (patch)
treedb122b8920b13922f76d8135fdd17e51dadb7bb2 /test.sh
parentFix arg.h (diff)
downloadadjbacklight-b9781282a79e19dd6f61d62403ad5aa378ede927.tar.gz
adjbacklight-b9781282a79e19dd6f61d62403ad5aa378ede927.tar.bz2
adjbacklight-b9781282a79e19dd6f61d62403ad5aa378ede927.tar.xz
Add support for using stdin instead of spawning multiple times when adjusting rapidly
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index 89ea6cb..dd4cd06 100755
--- a/test.sh
+++ b/test.sh
@@ -47,4 +47,11 @@ printf '%i\n' 25 > .testdir/acpi_videox/brightness
test $(./test -g) = 50.00%
+rm -r .testdir/acpi_videox
+printf '%s\n' 5 +15 -5 +20% | ./test dev
+test $(./test -g dev) = 50.00%
+
+printf '%s\n' 5 +15 -5 +10% | ./test -a
+test $(./test -ga) = 40.00%
+
rm -r .testdir