summaryrefslogtreecommitdiff
path: root/test/hbar.sh
blob: eada165236e249a61a6ca81caf887c73c499bca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

HBAR=./dist/hbar
UNIT="mb"
MAX=100

TEXT="✓ Привет World Привет World Привет World Привет World Привет World Привет World "
for x in $(seq $MAX); do
    ${HBAR} -T "${TEXT}" -u ${UNIT} $x $MAX
    #sleep 0.01
done

sleep 1
clear
echo Doing hello there bar
sleep 1

TEXT="Hello there"

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}
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 0 -t -T "${TEXT}" $x $MAX
${HBAR} -l 1 -t -T "${TEXT}" $((MAX-x)) $MAX

MAX=2000000

sleep 1
clear
echo Doing long bar 
sleep 1

for x in $(seq 0 991 $MAX); do
    ${HBAR} -h -T "${TEXT}" $((x*1000000)) $((MAX*1000000))
done
${HBAR} -ht -T "${TEXT}" $x $MAX