. "$BST_LIB"
# readline is a library, not a tool. On the fully-static wasm32-hwjs image no
# shared object survives to the rootfs (there is no runtime loader and nothing can
# dlopen; a consumer links readline statically at build time), so the readline
# package's on-target payload is its /etc/inputrc config file plus dpkg
# registration -- the library code proper is delivered into a consumer at link
# time, and readline's first consumer (bash) is recipes-extended, outside this
# Epic. Coverage is therefore the installed config + package registration; the
# interactive Up-arrow check is runtime-blocked and recorded as a skip below.

# --- the readline package is installed and its /etc/inputrc config landed ---
check     readline/inputrc       test -f /etc/inputrc
check_out readline/inputrc-body  "libreadline"  cat /etc/inputrc
# the readline package registered with dpkg (its file list carries /etc/inputrc)
check_out readline/pkg-installed "/etc/inputrc" cat /var/lib/dpkg/info/readline.list

# --- interactive Up-arrow line recall: runtime-blocked, recorded not-covered ---
# Pre-bash no interactive REPL on the image links readline (bash is recipes-extended,
# outside this Epic; GNU bc's --with-readline is rejected at configure on wasm32-hwjs,
# so bc ships without line editing), and expect -- the only PTY driver, and the
# mechanism this ticket names for the interactive check -- SIGILLs at Tcl interp init
# on the static glibc arm (glibc NSS __nss_module_load; brintos#92 / BRINTOS-77), so a
# spawn/send-Up script cannot run here regardless. Recorded, not left uncovered.
bst_skip readline/interactive-history "no readline REPL until bash (recipes-extended, outside Epic); bc --with-readline rejected on wasm32-hwjs; expect SIGILLs at interp init on static glibc (brintos#92/BRINTOS-77)"
