#! /bin/sh

# Autopkgtest for licencerecon
#
# Copyright : 2026 P Blackman
# License   : BSD-2-clause
#
# Use the package to test itself
# Tests should pass!

set -x
set -e

# Files are encrypted to avoid confusing licensecheck
debian/tests/Crypt

mv debian/copyright debian/copyright.tmp
cp debian/tests/data/copyright debian/copyright

lrc -v
lrc -t
lrc -l
lrc -g
lrc -l -s
lrc -h

# Restore original copyright file
mv debian/copyright.tmp debian/copyright

# ReEncrypt test data files
debian/tests/Crypt
