home: hub: zuo

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