summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 10:42:59 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 10:42:59 +0000
commit707bd74cf86cd91111e6191e30e8d12e1dc349bf (patch)
tree10cce8ae513ca2b36811d22d44cf50e38661aac0 /test
parentf7efbd649729f64913ffc6bf1e1eea885cd76cfd (diff)
Fix hbar with no arguments
Diffstat (limited to 'test')
-rwxr-xr-xtest/hbar.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/hbar.sh b/test/hbar.sh
index 6eaaa55..eada165 100755
--- a/test/hbar.sh
+++ b/test/hbar.sh
@@ -17,27 +17,29 @@ sleep 1
TEXT="Hello there"
-${HBAR} -t -T "${TEXT}" -u ${UNIT} $x $MAX
for x in $(seq $MAX); do
${HBAR} -T "${TEXT}" -u ${UNIT} $x $MAX
#sleep 0.01
done
${HBAR} -t -T "${TEXT}" -u ${UNIT} $x $MAX
+echo "world"
+
sleep 1
clear
echo Doing 2 bars at the same time
sleep 1
-hbar
+${HBAR}
+sleep 1
for x in $(seq $MAX); do
${HBAR} -l 0 -T "${TEXT}" $((MAX - x)) $MAX
${HBAR} -l 1 -T "${TEXT}" $x $MAX
done
-${HBAR} -l 1 -T "${TEXT}" $x $MAX
-${HBAR} -l 0 -t -T "${TEXT}" $((MAX-x)) $MAX
+${HBAR} -l 0 -t -T "${TEXT}" $x $MAX
+${HBAR} -l 1 -t -T "${TEXT}" $((MAX-x)) $MAX
-MAX=20000000
+MAX=2000000
sleep 1
clear
@@ -45,6 +47,6 @@ echo Doing long bar
sleep 1
for x in $(seq 0 991 $MAX); do
- ${HBAR} -h -T "${TEXT}" $x $MAX
+ ${HBAR} -h -T "${TEXT}" $((x*1000000)) $((MAX*1000000))
done
${HBAR} -ht -T "${TEXT}" $x $MAX