home: hub: zuo

ref: be919211e93d5ca646050aa14aae987f4fb8d62e
dir: /tests/c.zuo/

View raw version
#lang zuo

(require "harness.zuo")

(alert "c")

(check (config-merge (hash 'CFLAGS "-O2") 'CFLAGS "-g")
       (hash 'CFLAGS "-O2 -g"))

(check (config-define (hash 'CFLAGS "-O2") "ZUO")
       (hash 'CFLAGS "-O2" 'CPPFLAGS "-DZUO"))

(check (config-define (hash 'CPPFLAGS "-DSLOW") "ZUO")
       (hash 'CPPFLAGS "-DSLOW -DZUO"))

(check (config-include (hash 'CPPFLAGS "-DSLOW") "zuo/private")
       (hash 'CPPFLAGS "-DSLOW -Izuo/private"))