support for linear regression
[liba.git] / test / xmake.lua
blob0acccea3baa0640ac52cc6cbe7e650d2a8d1d2af
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("*.cc")
14 end
15 add_deps("a")
16 add_tests("")
17 end
19 target("test/a")
20 building({ "a.c", "a.cc" })
21 target_end()
23 target("test/avl")
24 building({ "avl.c", "avl.cc" })
25 target_end()
27 target("test/buf")
28 building({ "buf.c", "buf.cc" })
29 target_end()
31 target("test/complex")
32 building({ "complex.c", "complex.cc" })
33 target_end()
35 target("test/crc")
36 building({ "crc.c", "crc.cc" })
37 target_end()
39 target("test/hpf")
40 building({ "hpf.c", "hpf.cc" })
41 target_end()
43 target("test/list")
44 building({ "list.c", "list.cc" })
45 target_end()
47 target("test/lpf")
48 building({ "lpf.c", "lpf.cc" })
49 target_end()
51 target("test/math")
52 building({ "math.c", "math.cc" })
53 target_end()
55 target("test/mf")
56 building({ "mf.c", "mf.cc" })
57 target_end()
59 target("test/notefreqs")
60 building({ "notefreqs.c", "notefreqs.cc" })
61 target_end()
63 target("test/pid")
64 building({ "pid.c", "pid.cc" })
65 target_end()
67 target("test/pid_expert")
68 building({ "pid_expert.c", "pid_expert.cc" })
69 target_end()
71 target("test/pid_fuzzy")
72 building({ "pid_fuzzy.c", "pid_fuzzy.cc" })
73 target_end()
75 target("test/pid_neuro")
76 building({ "pid_neuro.c", "pid_neuro.cc" })
77 target_end()
79 target("test/poly")
80 building({ "poly.c", "poly.cc" })
81 target_end()
83 target("test/que")
84 building({ "que.c", "que.cc" })
85 target_end()
87 target("test/rbt")
88 building({ "rbt.c", "rbt.cc" })
89 target_end()
91 target("test/regress_linear")
92 building({ "regress_linear.c", "regress_linear.cc" })
93 target_end()
95 target("test/slist")
96 building({ "slist.c", "slist.cc" })
97 target_end()
99 target("test/str")
100 building({ "str.c", "str.cc" })
101 target_end()
103 target("test/test")
104 building({ "test.c", "test.cc" })
105 target_end()
107 target("test/tf")
108 building({ "tf.c", "tf.cc" })
109 target_end()
111 target("test/trajbell")
112 building({ "trajbell.c", "trajbell.cc" })
113 target_end()
115 target("test/trajpoly3")
116 building({ "trajpoly3.c", "trajpoly3.cc" })
117 target_end()
119 target("test/trajpoly5")
120 building({ "trajpoly5.c", "trajpoly5.cc" })
121 target_end()
123 target("test/trajpoly7")
124 building({ "trajpoly7.c", "trajpoly7.cc" })
125 target_end()
127 target("test/trajtrap")
128 building({ "trajtrap.c", "trajtrap.cc" })
129 target_end()
131 target("test/utf")
132 building({ "utf.c", "utf.cc" })
133 target_end()
135 target("test/vec")
136 building({ "vec.c", "vec.cc" })
137 target_end()
139 target("test/version")
140 building({ "version.c", "version.cc" })
141 target_end()