131 lines
7.2 KiB
JSON
131 lines
7.2 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(pkg-config --list-all)",
|
|
"Read(//usr/include/GLFW/**)",
|
|
"Bash(ldconfig -p)",
|
|
"Bash(make *)",
|
|
"Bash(echo \"exit: $?\")",
|
|
"Bash(timeout 2 ./vectorgons)",
|
|
"Read(//tmp/**)",
|
|
"Bash(glxinfo)",
|
|
"Bash(grep -iE '^\\(scrot|grim|import|maim|spectacle\\)$')",
|
|
"Bash(convert vg_shot.png -crop 270x210+0+0 +repage -resize 300% vg_crop.png)",
|
|
"Bash(identify -format \"%wx%h\\\\n\" vg_multi.png)",
|
|
"Bash(convert vg_multi.png -crop 760x600+460+0 +repage vg_multi_solids.png)",
|
|
"Bash(convert vg2.png -crop 740x620+0+0 +repage vg2_crop.png)",
|
|
"Bash(convert vg_ast.png -resize 1000x vg_ast_full.png)",
|
|
"Bash(xwininfo -name Vectorgons -int)",
|
|
"Bash(timeout 3 ./vectorgons)",
|
|
"Bash(timeout 4 ./vectorgons)",
|
|
"Bash(cat)",
|
|
"Bash(cc -O2 -o /tmp/sim /tmp/sim.c -lm)",
|
|
"Bash(/tmp/sim)",
|
|
"Bash(cc -O2 -o /tmp/st2 /tmp/st2.c -lm)",
|
|
"Bash(/tmp/st2)",
|
|
"Bash(rm -f /tmp/st2 /tmp/st2.c)",
|
|
"Bash(convert /tmp/vg_frame.ppm -crop 760x360+340+60 +repage /tmp/vg_faces.png)",
|
|
"Bash(convert /tmp/vg_frame.ppm -crop 760x300+340+430 +repage /tmp/vg_googie.png)",
|
|
"Bash(convert /tmp/vg_frame.ppm -crop 360x340+150+60 +repage /tmp/vg_angry.png)",
|
|
"Read(//usr/bin/**)",
|
|
"Read(//usr/x86_64-w64-mingw32/**)",
|
|
"Read(//usr/x86_64-w64-mingw32/lib/**)",
|
|
"Bash(dpkg -l)",
|
|
"Bash(timeout 12 curl -sI https://github.com)",
|
|
"Bash(timeout 12 curl -sI https://deb.debian.org)",
|
|
"Bash(timeout 60 apt-get download gcc-mingw-w64-x86-64-posix)",
|
|
"Bash(timeout 90 curl -sL -o glfw-win.zip https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.bin.WIN64.zip)",
|
|
"Bash(unzip -o -q glfw-win.zip -d /tmp/)",
|
|
"Bash(identify /tmp/vg_win.png)",
|
|
"Bash(awk '{print \"screenshot size:\", $3}')",
|
|
"Bash(convert /tmp/vg_win.png -crop 300x300+0+0 +repage -resize 200% /tmp/vg_win_crop.png)",
|
|
"Bash(convert /tmp/vg_win.png -crop 1140x800+0+20 +repage /tmp/vg_win_crop.png)",
|
|
"Bash(export WINEDEBUG=-all DISPLAY=:0)",
|
|
"Bash(echo \"=== /p preview: should exit cleanly and fast ===\")",
|
|
"Bash(timeout 15 wine ./vectorgons.scr /p 12345)",
|
|
"Bash(echo \"exit=$?\")",
|
|
"Bash(echo)",
|
|
"Bash(convert /tmp/scr.png -resize 60% /tmp/scr_small.png)",
|
|
"Bash(grep -n \"static void add_ball\\\\|static void update_clocks\\\\|static void add_symbol\\\\|#define MAX_SHAPES\\\\|Vectorgons: %d\\\\|add_symbol\\(build_hand\\)\\\\|update_clocks\\(\\);$\" vectorgons.c)",
|
|
"Bash(convert /tmp/vg_frame.ppm -crop 1100x380+0+40 +repage /tmp/vg_sil_top.png)",
|
|
"Bash(convert /tmp/vg_frame.ppm -crop 1100x340+0+400 +repage /tmp/vg_sil_bot.png)",
|
|
"Bash(grep -n \"int active = active_count\\(\\);\\\\|for \\(int i = 0; i < active; i++\\)\\\\|if \\(!g_screensaver\\) {\\\\s*$\\\\|render_osd\\(fbw, fbh, osd_alpha\\);\" vectorgons.c)",
|
|
"Bash(echo \"=== exe launches & loads shapes? ===\")",
|
|
"Bash(timeout 12 wine ./vectorgons.exe)",
|
|
"Bash(timeout 12 wine ./vectorgons.scr /p 0)",
|
|
"Bash(echo \"scr /p exit=$?\")",
|
|
"Bash(timeout 8 wine ./vectorgons.scr /s)",
|
|
"Bash(python3 verify_mirror.py)",
|
|
"Bash(sed 's#-lglfw -lGLU -lGL#X#' /dev/null)",
|
|
"Bash(DISPLAY=:0 timeout 6 wine vectorgons.exe)",
|
|
"Bash(tail -3 /tmp/vgtest/wine.log)",
|
|
"Bash(python3 count3.py)",
|
|
"Bash(cc -O2 -std=c11 -o cnt3 cnt3.c -lglfw -lGLU -lGL -lm)",
|
|
"Bash(DISPLAY=:0 VG_COUNT=1 timeout 8 ./cnt3)",
|
|
"Bash(python3 verify_counts.py)",
|
|
"Bash(python3 verify_visual.py)",
|
|
"Bash(echo \"exit=$? \\(no matches expected\\)\")",
|
|
"Bash(DISPLAY=:0 timeout 3 ./vectorgons)",
|
|
"Bash(echo \"normal-config exit=$? \\(124=ran ok\\)\")",
|
|
"Bash(cp ~/.vectorgons /tmp/vgtest/cfg.bak)",
|
|
"Bash(printf 'mag_count=1000\\\\nglass_count=1000\\\\nmirror_count=1000\\\\ndensity=200\\\\nrender_dist=400\\\\nspeed=20\\\\n')",
|
|
"Bash(DISPLAY=:0 timeout 4 ./vectorgons)",
|
|
"Bash(python3 verify_smooth.py)",
|
|
"Bash(convert smooth.ppm -crop 760x500+330+150 +repage -resize 200% smooth_zoom.png)",
|
|
"Bash(python3 verify_gm.py)",
|
|
"Bash(sort -t: -k2 -u)",
|
|
"Bash(awk -F: '{print $2}')",
|
|
"Bash(sed -n '3659,3667p' vectorgons.c)",
|
|
"Bash(sed -n '3868,3879p' vectorgons.c)",
|
|
"Bash(echo \"build: $?\")",
|
|
"Bash(python3 measure.py)",
|
|
"Bash(convert hud.ppm -crop 260x150+840+10 +repage -resize 250% -gamma 1.4 hud2.png)",
|
|
"Bash(convert hud.ppm -crop 320x170+1660+8 +repage -resize 220% hud3.png)",
|
|
"Bash(awk '{print $5, $NF}')",
|
|
"Bash(rm -f /tmp/vgtest/vg_meas* /tmp/vgtest/*.ppm /tmp/vgtest/hud*.png /tmp/vgtest/measure.py)",
|
|
"Bash(awk 'NR>=2440 && NR<=2505 && /^static |^void |^int .*\\\\\\(|^[a-z].*\\\\{$/' vectorgons.c)",
|
|
"Bash(awk 'NR<=2470 && /^[a-zA-Z].*\\\\\\(.*\\\\\\).*\\\\{?$/ {ln=NR; line=$0} END{}' vectorgons.c)",
|
|
"Bash(awk -F: '$1<2503')",
|
|
"Bash(sed -n '3691,3700p' vectorgons.c)",
|
|
"Bash(sed -n '55,75p' vectorgons.c)",
|
|
"Bash(sed -n '76,90p' vectorgons.c)",
|
|
"Bash(sed -n '3700,3712p' vectorgons.c)",
|
|
"Bash(cd *)",
|
|
"Bash(python3 bench.py)",
|
|
"Bash(python3 correct.py)",
|
|
"Bash(convert corr.ppm -crop 1700x600+150+250 +repage -resize 46% corr2.png)",
|
|
"Bash(DISPLAY=:0 timeout 5 wine vectorgons.exe)",
|
|
"Bash(echo \"exit=$? \\(124=ran full duration, healthy\\)\")",
|
|
"Bash(sed -n '/static void grab_scene/,/^}/p' vectorgons.c)",
|
|
"Bash(sed -n '/ensure_scene_tex/,/^}/p' vectorgons.c)",
|
|
"Bash(python3 bloom.py)",
|
|
"Bash(convert bloom_on.ppm -resize 46% bon.png)",
|
|
"Bash(convert bloom_off.ppm -resize 46% boff.png)",
|
|
"Bash(python3 bloom2.py)",
|
|
"Bash(convert b_on.ppm -resize 42% bon2.png)",
|
|
"Bash(convert b_off.ppm -resize 42% boff2.png)",
|
|
"Bash(convert b_on.ppm -resize 42% bon3.png)",
|
|
"Bash(convert b_on.ppm -crop 460x460+700+320 +repage -resize 130% bl_bloom.png)",
|
|
"Bash(convert b_off.ppm -crop 460x460+700+320 +repage -resize 130% bl_legacy.png)",
|
|
"Bash(montage bl_bloom.png bl_legacy.png -tile 2x1 -geometry +4+4 -background gray20 -label '%f' compare.png)",
|
|
"Bash(montage bl_bloom.png bl_legacy.png -tile 2x1 -geometry +4+4 compare.png)",
|
|
"Bash(python3 bbench.py)",
|
|
"Bash(awk '{print $5,$NF}')",
|
|
"Bash(echo \"exit=$? \\(124=healthy\\)\")",
|
|
"Bash(python3 -)",
|
|
"Bash(python3 cull.py)",
|
|
"Bash(convert cull_off.ppm -resize 42% cull_off.png)",
|
|
"Bash(convert diff.png -resize 42% diff_s.png)",
|
|
"Bash(compare -metric AE -fuzz 4% cull_on.ppm cull_off.ppm diff4.png)",
|
|
"Bash(convert diff4.png -resize 42% diff4_s.png)",
|
|
"Bash(compare -metric AE -fuzz 2% cull_on.ppm cull_off.ppm bdiff.png)",
|
|
"Bash(convert bdiff.png -resize 40% bdiff_s.png)",
|
|
"Bash(echo \"wine exit=$? \\(124=healthy\\)\")",
|
|
"Bash(rm -f /tmp/vgtest/vg_*.c /tmp/vgtest/vg_c /tmp/vgtest/*.ppm /tmp/vgtest/*.png /tmp/vgtest/*.py)",
|
|
"Bash(python3 glow.py)",
|
|
"Bash(python3 dense.py)",
|
|
"Bash(montage g_bloom.png g_legacy.png -tile 2x1 -geometry +2+2 g_cmp125.png)",
|
|
"Bash(montage g_bloom.png g_legacy.png -tile 2x1 -geometry +2+2 g_cmp_fold.png)"
|
|
]
|
|
}
|
|
}
|