#!/bin/bash
set -e
. tests/lib

t-dependencies dgit-infrastructure systemd
t-restrict x-dgit-out-of-tree-only

# Exits zero if the unit file is valid, and it can find
# /usr/bin/tag2upload-oracled (hence out-of-tree only).
systemd-analyze verify \
    $root/debian/dgit-infrastructure.tag2upload-oracled.user.service
