# 61-ipcalc.test -- ipcalc 1.0.3 (meta-openembedded/meta-networking, # recipes-support; upstream gitlab.com/ipcalc/ipcalc @ c341e55be386). # # The Red Hat / GitLab ipcalc: an IPv4 and IPv6 network and netmask calculator. # Almost the whole tool is pure computation over inet_pton(3)/inet_ntop(3) and # integer arithmetic -- no fork, no threads, no mmap, no VLA, no setjmp -- which # makes it an unusually clean instrument. It measures two things this image's # other ports do not: # # 1. 128-bit network arithmetic. The IPv6 paths carry a /56 host count as # 2^(72) = 4722366482869645213696 and a /48 address count as # 1208925819614629174706176 -- decimal strings far past 64 bits, produced by # the tool's own multi-word arithmetic, so a wasm32 lowering bug in that # arithmetic shows up as a wrong digit rather than a crash. # 2. The RESOLVER, in isolation. -h (reverse, getnameinfo) and -o (forward, # getaddrinfo) are the only two calls in the program that leave libc, so a # red there localises to NSS and cannot be confused with a calculation # fault. Every other case here is deterministic and network-free. # # Calibrated against a NATIVE x86_64 build of the SAME upstream commit, which # scores all-green on every case below -- so a red here is a target-only # divergence, not a miscalibrated assertion. . "$BST_LIB" require ipcalc ipcalc/present # field