#!/bin/sh

set -e

cd "$AUTOPKGTEST_TMP"

cat <<EOF > jsoncpp.json
{
  "Name":           "jsoncpp",
  "SourceUrl":      "https://github.com/open-source-parsers/jsoncpp/tags"
}
EOF

# ignore readelf error
abi-monitor -get -build -v 1.8.4 jsoncpp.json 2>stderr.txt
grep -v "LEB value too large" stderr.txt 1>&2 || true
