remove test/main.*
[liba.git] / test / xmake.lua
blob7624637ae38f2043566e78c5e214c4f9634b7789
1 ---@diagnostic disable
2 del_files = remove_files or del_files
3 add_tests = add_tests or function() end
5 function building(sources)
6 set_group("test")
7 set_default(false)
8 set_kind("binary")
9 add_files(sources)
10 if has_config("liba-cxx") then
11 add_defines("HAS_CXX")
12 else
13 del_files("*.cpp")
14 end
15 add_deps("a")
16 add_tests("")
17 end
19 target("test/a")
20 building({ "a.c", "a.cpp" })
21 target_end()
23 target("test/avl")
24 building({ "avl.c", "avl.cpp" })
25 target_end()
27 target("test/buf")
28 building({ "buf.c", "buf.cpp" })
29 target_end()
31 target("test/complex")
32 building({ "complex.c", "complex.cpp" })
33 target_end()
35 target("test/crc")
36 building({ "crc.c", "crc.cpp" })
37 target_end()
39 target("test/hpf")
40 building({ "hpf.c", "hpf.cpp" })
41 target_end()
43 target("test/list")
44 building({ "list.c", "list.cpp" })
45 target_end()
47 target("test/lpf")
48 building({ "lpf.c", "lpf.cpp" })
49 target_end()
51 target("test/math")
52 building({ "math.c", "math.cpp" })
53 target_end()
55 target("test/mf")
56 building({ "mf.c", "mf.cpp" })
57 target_end()
59 target("test/notefreqs")
60 building({ "notefreqs.c", "notefreqs.cpp" })
61 target_end()
63 target("test/operator")
64 building({ "operator.c", "operator.cpp" })
65 target_end()
67 target("test/pid")
68 building({ "pid.c", "pid.cpp" })
69 target_end()
71 target("test/pid_expert")
72 building({ "pid_expert.c", "pid_expert.cpp" })
73 target_end()
75 target("test/pid_fuzzy")
76 building({ "pid_fuzzy.c", "pid_fuzzy.cpp" })
77 target_end()
79 target("test/pid_neuro")
80 building({ "pid_neuro.c", "pid_neuro.cpp" })
81 target_end()
83 target("test/poly")
84 building({ "poly.c", "poly.cpp" })
85 target_end()
87 target("test/que")
88 building({ "que.c", "que.cpp" })
89 target_end()
91 target("test/rbt")
92 building({ "rbt.c", "rbt.cpp" })
93 target_end()
95 target("test/slist")
96 building({ "slist.c", "slist.cpp" })
97 target_end()
99 target("test/str")
100 building({ "str.c", "str.cpp" })
101 target_end()
103 target("test/test")
104 building({ "test.c", "test.cpp" })
105 target_end()
107 target("test/tf")
108 building({ "tf.c", "tf.cpp" })
109 target_end()
111 target("test/trajbell")
112 building({ "trajbell.c", "trajbell.cpp" })
113 target_end()
115 target("test/trajpoly3")
116 building({ "trajpoly3.c", "trajpoly3.cpp" })
117 target_end()
119 target("test/trajpoly5")
120 building({ "trajpoly5.c", "trajpoly5.cpp" })
121 target_end()
123 target("test/trajpoly7")
124 building({ "trajpoly7.c", "trajpoly7.cpp" })
125 target_end()
127 target("test/trajtrap")
128 building({ "trajtrap.c", "trajtrap.cpp" })
129 target_end()
131 target("test/utf")
132 building({ "utf.c", "utf.cpp" })
133 target_end()
135 target("test/vec")
136 building({ "vec.c", "vec.cpp" })
137 target_end()
139 target("test/version")
140 building({ "version.c", "version.cpp" })
141 target_end()