-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 866 Bytes
/
Makefile
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
# Prerequisites 'rustup component add llvm-tools-preview' and 'cargo install grcov'
build_with_cov:
RUSTFLAGS="-Cinstrument-coverage" cargo build --release --features mock
coverage: build_with_cov
LLVM_PROFILE_FILE="STS1-%p-%m.profraw" cargo test --features mock --release
grcov . -s . --binary-path ./target/release/ -t html --branch --ignore-not-existing -o ./target/release/coverage/
firefox ./target/release/coverage/index.html&
sw_test:
cargo build --release -Fmock && RUST_LOG=info cargo test --release -Fmock
packs:
cargo test build_pack --features rpi
clean:
rm -rf *.profraw
rm -f scheduler/ThreadId* scheduler/updatepin
rm -f scheduler/data/*
rm -rf scheduler/archives/*
rm -rf scheduler/tests/tmp
rm -f scheduler/tests/*.pack
rebuild_student_archive:
rm -f tests/student_program.zip
cd tests/test_data; zip -r ../student_program.zip *