diff --git a/Makefile b/Makefile index d8cea7577..eacae9b96 100644 --- a/Makefile +++ b/Makefile @@ -1188,7 +1188,13 @@ gen_test_vectors: # `comm` is used to compare the checksums, and will also notify of any added file .PHONY: check_test_vectors check_test_vectors: - ./scripts/test_vectors.sh check apps/test-vectors + @# Test vectors are not compatible between architectures + @if uname -a | grep -q x86; then \ + ./scripts/test_vectors.sh check apps/test-vectors; \ + else \ + echo "Cannot check test vectors on non x86 platform for now."; \ + fi + .PHONY: doc # Build rust doc doc: install_rs_check_toolchain diff --git a/scripts/test_vectors.sh b/scripts/test_vectors.sh index 0cbead551..ee5785519 100755 --- a/scripts/test_vectors.sh +++ b/scripts/test_vectors.sh @@ -8,6 +8,11 @@ MODE="$1" TARGET_DIR="$2" CHECKSUM_FILE="checksums.sha256" +if [ -z "$(uname -a | grep x86)" ]; then + echo "Wrong architecture for test vectors, only x86 is supported" + exit 1 +fi + if [ -z "$MODE" ] || [ -z "$TARGET_DIR" ]; then echo "Usage: $0 " echo "Modes:"