Files
darkforge/toolchain/scripts/116-dejagnu.sh
2026-03-20 15:09:30 +01:00

34 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8.19: DejaGNU
# ============================================================================
# Purpose: Build DejaGNU, a framework for testing other programs.
# Primarily used to run the GCC test suite.
# Inputs: /sources/dejagnu-1.6.3.tar.gz
# Outputs: DejaGNU framework in /usr/share/dejagnu
# Ref: LFS 13.0 §8.19
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="dejagnu"
VERSION="1.6.3"
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
cd "${PACKAGE}-${VERSION}"
# Configure DejaGNU
./configure --prefix=/usr
make install
# Verify installation
echo "DejaGNU version: $(/usr/bin/runtest --version 2>&1 | head -1)"
cd "${SRCDIR}"
pkg_cleanup "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="