-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_all_examples.sh
More file actions
executable file
·41 lines (31 loc) · 969 Bytes
/
run_all_examples.sh
File metadata and controls
executable file
·41 lines (31 loc) · 969 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
35
36
37
38
39
40
41
#!/bin/bash
##
## Rudimentary script to run all examples in the project
## Just a convenience to save me som typing
##
##
# Shell color definitions
RED='\033[0;31m'
PURPLE='\033[0;34m'
NC='\033[0m' # No Color
##
# Print a nice section header for each sample beeing run
function sample_header {
echo -------------------------------------
printf "${PURPLE}$1${NC}\n"
echo -------------------------------------
}
sample_header "Simple sample"
cargo run --package uberbyte --example simple
sample_header "Create a UberByte"
cargo run --package uberbyte --example create
sample_header simple
cargo run --package uberbyte --example is_set
sample_header "Set clear flip"
cargo run --package uberbyte --example set_clear_flip
sample_header "check mask set"
cargo run --package uberbyte --example check_mask_set
sample_header "shift"
cargo run --package uberbyte --example shift
sample_header "Formatters"
cargo run --package uberbyte --example formatters