diff --git a/.gitignore b/.gitignore index e32179b..de0e19c 100755 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /target /.git +scripts/copy_to_svn.sh +scripts/copy_to_win.sh diff --git a/scripts/bench_algorithms.sh b/scripts/bench_algorithms.sh new file mode 100755 index 0000000..06290cf --- /dev/null +++ b/scripts/bench_algorithms.sh @@ -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 diff --git a/scripts/copy_to_svn.sh b/scripts/copy_to_svn.sh deleted file mode 100755 index 11eabbb..0000000 --- a/scripts/copy_to_svn.sh +++ /dev/null @@ -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/" diff --git a/scripts/copy_to_win.sh b/scripts/copy_to_win.sh deleted file mode 100755 index 34e1a35..0000000 --- a/scripts/copy_to_win.sh +++ /dev/null @@ -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 diff --git a/scripts/test_crc.sh b/scripts/test_algorithms.sh similarity index 73% rename from scripts/test_crc.sh rename to scripts/test_algorithms.sh index 76237f3..d9493b4 100755 --- a/scripts/test_crc.sh +++ b/scripts/test_algorithms.sh @@ -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