aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-04 22:11:23 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-04 22:11:23 +0300
commit4b43d303090f9091a3a77baef1a6c53b45032acd (patch)
tree57ec3e0c320f728c844f0ff129bba5b775d98f20 /tools
parent9abe913a1f6556e504592867bd623370312910de (diff)
downloadmeson-4b43d303090f9091a3a77baef1a6c53b45032acd.zip
meson-4b43d303090f9091a3a77baef1a6c53b45032acd.tar.gz
meson-4b43d303090f9091a3a77baef1a6c53b45032acd.tar.bz2
Convert test declarations.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cmake2meson.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py
index 9e27151..f1720a8 100755
--- a/tools/cmake2meson.py
+++ b/tools/cmake2meson.py
@@ -199,6 +199,8 @@ class Converter:
libcmd = 'static_library'
args = t.args
line = '%s_lib = %s(%s)' % (t.args[0].value, libcmd, self.convert_args(args, False))
+ elif t.name == 'add_test':
+ line = 'test(%s)' % self.convert_args(t.args, False)
elif t.name == 'option':
optname = t.args[0].value
description = t.args[1].value