summaryrefslogtreecommitdiff
path: root/test/hbar.sh
blob: 80f6a9c618329666c12bcf2b8358d3d69cc0b672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

HBAR=./bin/hbar
TEXT="Hello there"
UNIT="mb"
MAX=100

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

hbar
for x in $(seq $MAX); do
    ${HBAR} -l 0 -T "${TEXT}" -u ${UNIT} $((MAX - x)) $MAX
    ${HBAR} -l 1 -T "${TEXT}" -u ${UNIT} $x $MAX
    sleep 0.01
done
${HBAR} -l 0 -t -T "${TEXT}" -u ${UNIT} $((MAX-x)) $MAX
${HBAR} -l 1 -t -T "${TEXT}" -u ${UNIT} $x $MAX