util: add mesa-sha1 test to meson
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 27 Nov 2017 11:33:48 +0000 (11:33 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 28 Nov 2017 11:06:04 +0000 (11:06 +0000)
Fixes: 513d7ffa23d42e96f831 "util: Add a SHA1 unit test program"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/meson.build

index ac86c9e111eeb89a0249f4aecacc7c65a2af1327..b54c20796ff01012759b6cfeabf2cc7d8b1577d8 100644 (file)
@@ -134,8 +134,17 @@ if with_tests
     dependencies : [dep_m],
   )
 
+  mesa_sha1_test = executable(
+    'mesa-sha1_test',
+    files('mesa-sha1_test.c'),
+    include_directories : inc_common,
+    link_with : libmesa_util,
+    c_args : [c_msvc_compat_args],
+  )
+
   test('u_atomic', u_atomic_test)
   test('roundeven', roundeven_test)
+  test('mesa-sha1', mesa_sha1_test)
 
   subdir('tests/hash_table')
   subdir('tests/string_buffer')