nx_site_publish_boundary_gate_t336.nx source
↩ module page · 22 lines · 1632 B
1import "nx_site_publish_boundary_candidate_t336.nx"
2import "nx_gate_verdict.nx"
3func main()->i64{
4 if sys_chdir("/volume1/homes/elderwesto/nishihost")!=0{return 3}
5 let logfd:i64=sys_openat_wr("buildroot/knowledge/gates/publisher-boundary-gate-t336.log",FSX_MODE_RW)
6 if logfd<0||sys_dup3(logfd,1,0)!=1{return 4};sys_close(logfd)
7 let c:*i64=gv_ctr();let a:*i64=sys_mmap(5*8) as *i64
8 a[0]="nx_site_publish" as *u8 as i64;a[1]="prepare-release" as *u8 as i64
9 a[2]="buildroot/knowledge/gates/publisher-boundary-absent-t336.json" as *u8 as i64
10 a[3]="0000000000000000000000000000000000000000000000000000000000000000" as *u8 as i64;a[4]=0
11 gv_check("absent manifest preserves IO rc",sp_main(4,a)==FSX_RC_IO,c)
12 a[2]="buildroot/knowledge/gates/publisher-boundary-malformed-t336.json" as *u8 as i64
13 a[3]="021fb596db81e6d02bf3d2586ee3981fe519f275c0ac9ca76bbcf2ebb4097d96" as *u8 as i64
14 gv_check("malformed manifest preserves usage rc",sp_main(4,a)==PB_RC_USAGE,c)
15 a[3]="0000000000000000000000000000000000000000000000000000000000000000" as *u8 as i64
16 gv_check("manifest digest mismatch preserves conflict rc",sp_main(4,a)==PB_RC_CONFLICT,c)
17 a[3]="not-a-digest" as *u8 as i64
18 gv_check("malformed digest preserves usage rc",sp_main(4,a)==PB_RC_USAGE,c)
19 a[2]="buildroot/knowledge/gates/publisher-boundary-real-preflight-t336.json" as *u8 as i64;a[3]="85489a5678874febb7c8aa26736d936e75e7663e80c52fd54cc01116ae565c04" as *u8 as i64
20 gv_check("real current eleven-dependency preflight passes without publication",sp_main(4,a)==0,c)
21 return gv_verdict("PUBLISH-BOUNDARY-DIAGNOSTICS",c,"prepare-release only; no publication requested")
22}