mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Use jq instead of json_reformat in validate-docx-golden-tests2.
This commit is contained in:
@@ -251,7 +251,7 @@ validate-docx-golden-tests: ## validate docx golden tests against schema
|
||||
|
||||
validate-docx-golden-tests2: ## validate docx golden tests using OOXMLValidator
|
||||
which dotnet || ("dotnet is required" && exit 1)
|
||||
which json_reformat || ("json_reformat is required" && exit 1)
|
||||
which jq || ("jq is required" && exit 1)
|
||||
test -d ./OOXML-Validator || \
|
||||
(git clone https://github.com/mikeebowen/OOXML-Validator.git \
|
||||
&& cd OOXML-Validator && dotnet build --configuration=Release)
|
||||
|
||||
@@ -5,6 +5,6 @@ set -eu
|
||||
(for i in "$@"; do
|
||||
dotnet run --configuration=Release --framework=net8.0 --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r
|
||||
done) >validation
|
||||
json_reformat -s <validation
|
||||
jq <validation
|
||||
|
||||
[ $(cat validation | wc -c) = 2 ]
|
||||
|
||||
Reference in New Issue
Block a user