aboutsummaryrefslogtreecommitdiff
path: root/src/tests/slab_test/bam.lua
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-13 22:31:46 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-13 22:31:46 +0200
commit360da84db0d7165c84d160b518f39cd16006c758 (patch)
treea6fea5da753ec4ac5a37237cefda52801f9647ac /src/tests/slab_test/bam.lua
parent27a6934ea3073c3eaf782cc7615ce4ed0dbf4a18 (diff)
downloadkogata-360da84db0d7165c84d160b518f39cd16006c758.tar.gz
kogata-360da84db0d7165c84d160b518f39cd16006c758.zip
Migrate to BAM build tool
Diffstat (limited to 'src/tests/slab_test/bam.lua')
-rw-r--r--src/tests/slab_test/bam.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/slab_test/bam.lua b/src/tests/slab_test/bam.lua
new file mode 100644
index 0000000..87c6666
--- /dev/null
+++ b/src/tests/slab_test/bam.lua
@@ -0,0 +1,11 @@
+local source = {"src/common/libkogata/slab_alloc.c",
+ "src/tests/slab_test/slab_test.c"}
+local obj = Compile(host_settings, source)
+
+local bin = Link(host_settings, "build/tests/slab_test", obj)
+
+local slab_test = "build/tests/slab_test.log"
+AddJob(slab_test, "slab_test", "./" .. bin .. " > " .. slab_test)
+AddDependency(slab_test, bin)
+
+table.insert(tests, slab_test)