Skip to content
Snippets Groups Projects
Commit fd6eba9d authored by Domenico Giordano's avatar Domenico Giordano
Browse files

adding utility to check json differences

parent 9ad63452
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
PARSERTEST_DIR=$(dirname $(readlink -f $0) )
# Input arguments
function usage(){
echo "Usage: $0 [<workload-directory> (default: .)]"
......@@ -85,11 +86,12 @@ for job in $jobs; do
testjson=${APPtest}${suffix}
if [ -f ${testjson} ]; then
echo -e "\n${testjson}:"
cat ${testjson}
python -c "import yaml; print yaml.dump( yaml.safe_load(open('${testjson}')))"
if [ -f ${prodjson} ]; then
if [ "$status2" == "" ]; then status2=0; fi
echo -e "\nDIFFERENCES to ${prodjson}:"
diff ${testjson} ${prodjson}
$PARSERTEST_DIR/json-differ.py ${prodjson} ${testjson}
#diff ${testjson} ${prodjson}
if [ $? -eq 0 ]; then
echo "[None]"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment