interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / site / test-ledger-links.sh

18 lines · 1140 bytes Raw Blame History
1#!/bin/sh
2# ORACLE: checks what the Omega ledger linker (om/site/ledger.om lk_tresolve) wrote into a built dist.
3# Ledger L402 names `.github profile/cudaplusplus@ef6abb8; drakestapleton.com ... works/cudaplusplus@62a663d`.
4# A repository named in one clause must not carry past `;`: the second commit belongs to
5# drakestapleton.com (not on the forge) and stays plain text, while the first stays linked under .github.
6# Usage: sh om/site/test-ledger-links.sh [DIST] (exit 0 pass, 1 fail)
7dist=${1:-dist}
8page=$dist/now/index.html
9[ -s "$page" ] || { echo "test-ledger-links: FAIL no $page"; exit 1; }
10fail=0
11grep -qF 'works/cudaplusplus@62a663d' "$page" || { echo 'test-ledger-links: FAIL L402 token absent'; fail=1; }
12if grep -qF '>works/cudaplusplus@62a663d</a>' "$page"; then
13 echo 'test-ledger-links: FAIL works/cudaplusplus@62a663d is linked (repository carried past ";")'; fail=1
14fi
15grep -qF 'href="https://interplane.io/drakestapleton/.github/commit/ef6abb8"' "$page" \
16 || { echo 'test-ledger-links: FAIL profile/cudaplusplus@ef6abb8 lost its .github link'; fail=1; }
17[ $fail = 0 ] && echo 'test-ledger-links: PASS'
18exit $fail