diff --git a/share/openPMD/json_schema/verify_identical.sh b/share/openPMD/json_schema/verify_identical.sh new file mode 100755 index 0000000000..207026fbb8 --- /dev/null +++ b/share/openPMD/json_schema/verify_identical.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if (( $# != 2 )); then + echo "Usage: $BASH_SOURCE " >&2 + exit 1 +fi + +diff \ + <(openpmd-convert_json_toml "@$(realpath "$1")" | jq -S .) \ + <(jq -S . < "$2")