From 2268ea86607be28c9c8e6a57719df261daef49fe Mon Sep 17 00:00:00 2001 From: "David A. Harding" Date: Thu, 25 Jul 2019 08:57:50 -1000 Subject: [PATCH] Tests: ensure wallet description lengths are under 320 chars --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index c85a20dc..02efa3bb 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ pre-build-tests-fast: check-for-non-ascii-urls check-for-wrong-filename-assignme check-for-consistent-bitcoin-core-titles \ check-for-too-many-wallets-on-one-platform \ check-validate-yaml \ + check-wallet-description-length \ ## Post-build tests which, aggregated together, take less than 10 seconds to run on a typical PC post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-for-liquid-errors \ @@ -305,3 +306,7 @@ check-for-too-many-wallets-on-one-platform: check-validate-yaml: ## Validate YAML files against schemas $S ! find _wallets -type f -exec bundle exec _contrib/schema-validator.rb quality-assurance/schemas/wallets.yaml {} \; | grep . + +check-wallet-description-length: +## Ensure wallet descriptions are 320 characters or less + $S sed -n '/^ choose-your-wallet:/,/^ [-a-z]\+:/{/wallet.*:.\{320\}/p} ' _translations/en.yml | eval $(ERROR_ON_OUTPUT)