AtlatestRepositorysigil-ui
1
#!/usr/bin/env sigil2
(import (sigil shell prelude))3
(define root (realpath (path (script-dir) "..")))4
(with-temp-dir work5
(define executable (path work "surface-close"))6
($ guix shell gcc-toolchain libdrm -- gcc -std=c99 -Wall -Wextra -Werror7
,(path root "test/surface-close.c") -o ,executable)8
($ ,executable)9
($ guix shell gcc-toolchain libdrm -- gcc -std=c99 -Wall -Wextra -Werror10
,(path root "test/surface-mode.c") -o ,executable)11
($ ,executable)12
(println "SURFACE-MODE-PASSED")13
(println "SURFACE-CLOSE-PASSED"))