summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-07-05 17:55:08 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-07-05 17:55:08 (EDT)
commite40838befba81d83845eba8883941d87fb88cef9 (patch)
tree915218751e63c7d22a370670e76007c4d80404ba
parent6bd5bd386a4612661d3b224bf27cad7e9b4032bb (diff)
tests: Check specials file contents
-rwxr-xr-xtests/build.sh8
1 files changed, 7 insertions, 1 deletions
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 \