home: hub: zuo

ref: 476b3ea3a5d3791c51daa633b800ec0c76435a33
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"))