mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
add more proptests for output
This commit is contained in:
parent
c78dd2453a
commit
2e18ca96fd
9 changed files with 154 additions and 78 deletions
80
Justfile
80
Justfile
|
|
@ -1,42 +1,4 @@
|
|||
default:
|
||||
bacon -sj test
|
||||
tui:
|
||||
cargo run --example tui
|
||||
cloc:
|
||||
for src in {cli,edn/src,input/src,jack/src,midi/src,output/src,plugin/src,sampler/src,tek/src,time/src,tui/src}; do echo; echo $src; cloc --quiet $src; done
|
||||
test:
|
||||
cargo test --workspace --exclude jack
|
||||
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
|
||||
cov:
|
||||
rm -rf target/coverage/html || true
|
||||
{{covfig}} time cargo test --workspace --exclude jack --profile coverage
|
||||
{{covfig}} time grcov . --binary-path ./target/coverage/deps/ -s . -t html --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||
llcov:
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report --doc
|
||||
time cargo llvm-cov report --doctests --html #--output-path target/coverage/html
|
||||
prof:
|
||||
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
|
||||
status:
|
||||
cargo c
|
||||
cloc --by-file src/
|
||||
git status
|
||||
doc:
|
||||
cargo doc --document-private-items
|
||||
|
||||
upstreams := "codeberg origin" # TODO!
|
||||
|
||||
amend:
|
||||
git commit --amend
|
||||
push:
|
||||
git push -u codeberg main && git push -u origin main
|
||||
tpush:
|
||||
git push --tags -u codeberg && git push --tags -u origin
|
||||
fpush:
|
||||
git push -fu codeberg main && git push -fu origin main
|
||||
ftpush:
|
||||
git push --tags -fu codeberg && git push --tags -fu origin
|
||||
|
||||
upstreams := "codeberg origin" # TODO!
|
||||
debug := "reset && cargo run --"
|
||||
release := "reset && cargo run --release --"
|
||||
name := "-n tek"
|
||||
|
|
@ -47,15 +9,37 @@ audio-in := "-l 'Komplete Audio 6 Pro:capture_AUX1' -r 'Komplete Audio 6 Pro:c
|
|||
audio-out := "-L 'Komplete Audio 6 Pro:playback_AUX1' -R 'Komplete Audio 6 Pro:playback_AUX1'"
|
||||
firefox-in := "-l 'Firefox:output_FL' -r 'Firefox:output_FR'"
|
||||
|
||||
# TODO: arranger track mappings
|
||||
#-i "1=Midi-Bridge:nanoKEY Studio 2:(capture_0) nanoKEY Studio nanoKEY Studio _"
|
||||
#-o "1=Midi-Bridge:Komplete Audio 6 1:(playback_0) Komplete Audio 6 MIDI 1"
|
||||
#-i "2=Midi-Bridge:nanoKEY Studio 2:(capture_0) nanoKEY Studio nanoKEY Studio _"
|
||||
#-o "2=Midi-Bridge:Komplete Audio 6 1:(playback_0) Komplete Audio 6 MIDI 1"
|
||||
#-i "3=Midi-Bridge:nanoKEY Studio 2:(capture_0) nanoKEY Studio nanoKEY Studio _"
|
||||
#-o "3=Midi-Bridge:Komplete Audio 6 1:(playback_0) Komplete Audio 6 MIDI 1"
|
||||
#-i "4=Midi-Bridge:nanoKEY Studio 2:(capture_0) nanoKEY Studio nanoKEY Studio _"
|
||||
#-o "4=Midi-Bridge:Komplete Audio 6 1:(playback_0) Komplete Audio 6 MIDI 1"
|
||||
default:
|
||||
bacon -s
|
||||
tui:
|
||||
cargo run --example tui
|
||||
cloc:
|
||||
for src in {cli,edn/src,input/src,jack/src,midi/src,output/src,plugin/src,sampler/src,tek/src,time/src,tui/src}; do echo; echo $src; cloc --quiet $src; done
|
||||
test:
|
||||
cargo test --workspace --exclude jack
|
||||
prof:
|
||||
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
|
||||
doc:
|
||||
cargo doc --workspace --document-private-items
|
||||
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
|
||||
cov:
|
||||
rm -rf target/coverage/html || true
|
||||
{{covfig}} time cargo test --workspace --exclude jack --profile coverage
|
||||
{{covfig}} time grcov . --binary-path ./target/coverage/deps/ -s . -t html --ignore-not-existing --ignore '../*' --ignore "/*" --ignore 'target/*' -o target/coverage/html
|
||||
llcov:
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report
|
||||
time cargo llvm-cov --workspace --exclude jack --profile coverage --no-report --doc
|
||||
time cargo llvm-cov report --doctests --html #--output-path target/coverage/html
|
||||
amend:
|
||||
git commit --amend
|
||||
push:
|
||||
git push -u codeberg main && git push -u origin main
|
||||
tpush:
|
||||
git push --tags -u codeberg && git push --tags -u origin
|
||||
fpush:
|
||||
git push -fu codeberg main && git push -fu origin main
|
||||
ftpush:
|
||||
git push --tags -fu codeberg && git push --tags -fu origin
|
||||
|
||||
run:
|
||||
{{debug}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue