-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathtests
More file actions
executable file
·34 lines (29 loc) · 846 Bytes
/
tests
File metadata and controls
executable file
·34 lines (29 loc) · 846 Bytes
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
source ./climate
# ----------------------------------------------------------------------------
# Colors Test
printf "Colors Test\n"
printf "${RED}RED "
printf "${GREEN}GREEN "
printf "${BLUE}BLUE "
printf "${YELLOW}YELLOW "
printf "${PLAIN}PLAIN\n"
printf "${RED_BOLD}RED_BOLD "
printf "${GREEN_BOLD}GREEN_BOLD "
printf "${BLUE_BOLD}BLUE_BOLD "
printf "${YELLOW_BOLD}YELLOW_BOLD "
printf "${PLAIN_BOLD}PLAIN_BOLD\n"
printf "${PLAIN}\n"
# ----------------------------------------------------------------------------
# Spinner Test
printf "Spinner Test\n"
sleep 1 &
pid=$!
printf "PID ${pid} started in background\n"
spinner $pid
printf "PID ${pid} finished\n\n\n"
printf "Spinner Test - lock\n"
bash -c "sleep 1 && echo 'somerandomstring'" &
pid=$!
printf "PID ${pid} started in background\n"
spinner $pid
printf "PID ${pid} finished\n\n\n"