diff options
author | Dylan Baker <[email protected]> | 2017-12-11 16:13:31 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-01-11 15:40:02 -0800 |
commit | 4ccb9816737945159289527322e759d92bf7a4d6 (patch) | |
tree | 5f4cc22fa3d962cfde826599e5a95e26904bdc8d /src/util/tests | |
parent | 8e981eb2b7099849c7b74d855afb0c65f92227e8 (diff) |
meson: Use consistent style for tests
Don't use intermediate variables, use consistent whitespace.
Acked-by: Eric Engestrom <[email protected]>
Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/util/tests')
-rw-r--r-- | src/util/tests/hash_table/meson.build | 16 | ||||
-rw-r--r-- | src/util/tests/string_buffer/meson.build | 17 |
2 files changed, 18 insertions, 15 deletions
diff --git a/src/util/tests/hash_table/meson.build b/src/util/tests/hash_table/meson.build index 43d8f43a83e..4bbc5100ea3 100644 --- a/src/util/tests/hash_table/meson.build +++ b/src/util/tests/hash_table/meson.build @@ -21,12 +21,14 @@ foreach t : ['clear', 'collision', 'delete_and_lookup', 'delete_management', 'destroy_callback', 'insert_and_lookup', 'insert_many', 'null_destroy', 'random_entry', 'remove_null', 'replacement'] - _test = executable( - '@0@_test'.format(t), - files('@[email protected]'.format(t)), - dependencies : [dep_thread, dep_dl], - include_directories : [inc_include, inc_util], - link_with : libmesa_util, + test( + t, + executable( + '@0@_test'.format(t), + files('@[email protected]'.format(t)), + dependencies : [dep_thread, dep_dl], + include_directories : [inc_include, inc_util], + link_with : libmesa_util, + ) ) - test(t, _test) endforeach diff --git a/src/util/tests/string_buffer/meson.build b/src/util/tests/string_buffer/meson.build index 14dbebca7d8..9f42e3550ae 100644 --- a/src/util/tests/string_buffer/meson.build +++ b/src/util/tests/string_buffer/meson.build @@ -18,12 +18,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -string_buffer_test = executable( - 'string_buffer_test', - 'string_buffer_test.cpp', - dependencies : [dep_thread, dep_dl, idep_gtest], - include_directories : inc_common, - link_with : [libmesa_util], +test( + 'string_buffer', + executable( + 'string_buffer_test', + 'string_buffer_test.cpp', + dependencies : [dep_thread, dep_dl, idep_gtest], + include_directories : inc_common, + link_with : [libmesa_util], + ) ) - -test('string_buffer', string_buffer_test) |