aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-09 11:52:03 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-09 11:52:03 -0500
commit3d0b7418b2c1a87d44144749f5f055cfa0995f6c (patch)
treeb7acd681e6c31c68dbcc733f6f35b1e86a8134a5 /meson.build
parent400e3421b123c0092988df3422f96cc210d33f7b (diff)
downloadsok-3d0b7418b2c1a87d44144749f5f055cfa0995f6c.tar.bz2
sok-3d0b7418b2c1a87d44144749f5f055cfa0995f6c.zip
add test-solve
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build17
1 files changed, 15 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 74af93a..1d5f2e3 100644
--- a/meson.build
+++ b/meson.build
@@ -8,7 +8,7 @@ sources = [
'src/libsok/sok-solve.c',
]
-# text interface
+# text exe
executable('sok-text', sources + [
'src/text/main.c',
'src/text/levels.c',
@@ -16,9 +16,22 @@ executable('sok-text', sources + [
'src/text/draw.c',
], dependencies: [])
-# text interface
+# sdl exe
executable('sok-sdl', sources + [
'src/sdl/main.c',
], dependencies: [
# 'sdl2',
])
+
+# test executable
+test_solve = executable('test-solve', sources + [
+ 'src/text/levels.c',
+ 'src/test-solve/main.c',
+], dependencies: [])
+
+# generate solve tests
+foreach i: [0, 3, 4, 11, 18, 23] # long tests: 14, 17, 22, 26
+ test('level @0@'.format(i), test_solve, args: [
+ '@0@'.format(i),
+ ])
+endforeach