module coracle import nspkg.tests.signaturefixtures import os fn test_install_payload_diagnostics_match_libalpm() ! { $if !linux { return } base := os.join_path(os.vtmp_dir(), 'alpm-install-log-${os.getpid()}') os.mkdir_all(base)! defer { os.rmdir_all(base) or { eprintln(err) } } probe := os.join_path(base, 'probe') signaturefixtures.command('v', ['-path', os.dir(@VMODROOT) + '|@vlib|@vmodules', '-o', probe, os.join_path(@VMODROOT, 'tests', 'install_log_probe.v')])! output := signaturefixtures.command('timeout', ['60s', 'unshare', '--user', '--map-root-user', '--mount', probe, base, os.readlink('/proc/self/ns/mnt')!])! assert output.contains('28 install diagnostic comparisons verified') }