refactor: clean up scripts

This commit is contained in:
cscherr 2025-07-31 16:25:37 +02:00
parent 416dd1660d
commit ba9ba5aa09
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
5 changed files with 10 additions and 12 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
/target
/.git
scripts/copy_to_svn.sh
scripts/copy_to_win.sh

6
scripts/bench_algorithms.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# I'm using a bash script because if i set the target in .cargo/config.toml
# i can't build for x86_64 anymore, which means I can't run the unit tests.
TARGET="x86_64-unknown-linux-gnu"
cd crates/algorithms
cargo bench --target $TARGET --no-default-features

View file

@ -1,5 +0,0 @@
#!/bin/bash
set -e
rsync --cvs-exclude --recursive --links --copy-links --filter=':- .gitignore' \
--verbose --human-readable --partial --progress \
"$PWD" "/home/cscherr/Documents/SVN/nt/BA/trunk/Studium/Christoph_Scherr/system/Implementation/"

View file

@ -1,6 +0,0 @@
#!/bin/bash
set -e
EPATH=/mnt/c/Users/cscherr/Documents/code/rust/nucleo-l053r8-crcbench
rsync --cvs-exclude --recursive --links --copy-links --filter=':- .gitignore' \
--verbose --human-readable --partial --progress \
"$PWD/" $EPATH

View file

@ -2,4 +2,5 @@
# I'm using a bash script because if i set the target in .cargo/config.toml
# i can't build for x86_64 anymore, which means I can't run the unit tests.
TARGET="x86_64-unknown-linux-gnu"
cargo test --target $TARGET -p crc --no-default-features
cd crates/algorithms
cargo test --target $TARGET --no-default-features