From e40838befba81d83845eba8883941d87fb88cef9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 05 Jul 2023 17:55:08 -0400 Subject: tests: Check specials file contents --- diff --git a/tests/build.sh b/tests/build.sh index 91fb172..01eafd1 100755 --- a/tests/build.sh +++ b/tests/build.sh @@ -22,7 +22,7 @@ set -eu . "${TOP_SRCDIR}/tests/aux/tap-functions.sh" . "${TOP_SRCDIR}/tests/aux/common.sh" -plan_ 3 +plan_ 4 mkdir -p "${TOP_BUILDDIR}/tests/pkg/" if [ x"${TOP_BUILDDIR}" != x"${TOP_SRCDIR}" ]; then @@ -34,6 +34,12 @@ OPK_WORK_AREA="${TOP_BUILDDIR}/tests/pkg/" command_ok_ 'mknod' -- \ "${TOP_BUILDDIR}/mknod${EXEEXT}" \ "${TOP_BUILDDIR}/tests/pkg/data/dev/null" c 1 3 +cmd_is 'specials file' cat "${TOP_BUILDDIR}/tests/pkg/specials" 0<<-EOF + version=1 + type major minor name + c 1 3 /dev/null + EOF + SOURCE_DATE_EPOCH=1685592000 command_ok_ 'package building' -- \ "${TOP_BUILDDIR}/opkg-opk" \ -b \ -- cgit v0.9.1