add a script to run the tests with the GNU testsuite

This commit is contained in:
Sylvestre Ledru
2021-09-07 23:01:43 +02:00
parent ac576f50b0
commit 28989171ab
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
set -e
if test ! -d ../findutils.gnu; then
echo "Could not find ../findutils.gnu"
echo "git clone https://git.savannah.gnu.org/git/findutils.git findutils.gnu"
exit 1
fi
# build the rust implementation
cargo build --release
cp target/release/find ../findutils.gnu/find.rust
# Clone and build upstream repo
cd ../findutils.gnu
./bootstrap
./configure --quiet --disable-gcc-warnings
make -j "$(nproc)"
# overwrite the GNU version with the rust impl
cp find.rust find/find
# Run the tests
make check-TESTS