#!/bin/bash

set -euo pipefail

test_file=ci/example_tests/test.json
# Use awk to remove the filename that sha256sum likes printing out so much.
sha256="$(sha256sum "$test_file" | awk '{print $1}')"
expected_sha256=0df88820cf036e7aa3e2c738e0e4d60e055309d1c796827a6f93cd7faf6bb3f2

if [[ $sha256 != $expected_sha256 ]]; then
  echo "Sha of $test_file does not match ($sha256 vs. $expected_sha256)!"
  exit 1
fi
