1#!/bin/bash 2# 3set -e 4cd $(dirname $(realpath $0)) 5 6set +e 7if (../../parse_systrace.py no_nnapi_trace.html || true) 2>&1 | \ 8 grep "No NNAPI Runtime trace present" > /dev/null 9then 10 true 11else 12 echo failed 13 exit 1 14fi 15set -e 16 17echo parsing hdrnet 18../../parse_systrace.py hdrnet.html > hdrnet.tmp 19echo parsing cpu 20../../parse_systrace.py cpu.html > cpu.tmp 21echo parsing unittest 22../../parse_systrace.py unittest.html > unittest.tmp 23echo parsing hdrnet --per-execution 24../../parse_systrace.py --per-execution hdrnet.html > hdrnet-bm.tmp 25../../parse_systrace.py --per-execution --json omr1_incomplete.html > omr1_incomplete.tmp 26../../parse_systrace.py omr1.html > omr1.tmp 27../../parse_systrace.py old.html > old.tmp 28 29echo checking hdrnet 30diff hdrnet.txt hdrnet.tmp 31echo checking cpu 32diff cpu.txt cpu.tmp 33echo checking unittest 34diff unittest.txt unittest.tmp 35echo checking benchmark 36diff hdrnet-bm.txt hdrnet-bm.tmp 37echo checking omr1_incomplete 38diff omr1_incomplete.json omr1_incomplete.tmp 39echo checking omr1 40diff omr1.txt omr1.tmp 41echo old 42diff old.txt old.tmp 43 44echo Success 45