| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e # Exit immediately if any command exits with a non-zero status |
| 4 |
|
| 5 |
# This is a Temporary Fix for CI fail as CI fails on nightly toolchain due to some formatting issues which I am unable |
| 6 |
# to reproduce locally. |
| 7 |
# |
| 8 |
# For more info, check https://github.com/AS1100K/pastey/pull/15 |
| 9 |
if [[ "$1" == "nightly" ]]; then |
| 10 |
cp pastey-test-suite/tests/ui/case-warning.nightly.stderr pastey-test-suite/tests/ui/case-warning.stderr |
| 11 |
cp pastey-test-suite/tests/ui/raw-mode-wrong-position.nightly.stderr pastey-test-suite/tests/ui/raw-mode-wrong-position.stderr |
| 12 |
else |
| 13 |
cp pastey-test-suite/tests/ui/case-warning.stable.stderr pastey-test-suite/tests/ui/case-warning.stderr |
| 14 |
cp pastey-test-suite/tests/ui/raw-mode-wrong-position.stable.stderr pastey-test-suite/tests/ui/raw-mode-wrong-position.stderr |
| 15 |
fi |
| 16 |
|
| 17 |
echo "========================================" |
| 18 |
echo "Running tests with pastey crate..." |
| 19 |
echo "========================================" |
| 20 |
cargo test |
| 21 |
|
| 22 |
echo "========================================" |
| 23 |
echo "Running tests with pastey-test-suite crate..." |
| 24 |
echo "========================================" |
| 25 |
cd pastey-test-suite |
| 26 |
cargo test |
| 27 |
rm ./tests/ui/case-warning.stderr |
| 28 |
rm ./tests/ui/raw-mode-wrong-position.stderr |
| 29 |
cd ../ |
| 30 |
|
| 31 |
cd paste-compat |
| 32 |
./test.sh |
| 33 |
cd ../ |