#!/bin/bash -ex sed -i 's/#for-autopkgtest/for-autopkgtest/g' debian/patches/series dpkg-source --before-build "$(pwd)" cp src/avro_private.h tests/ # not installed in libavro-dev mkdir -p tests/build && cd tests/build cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja cmake --build . ctest --output-on-failure