tests: Exclude transport tests when build excludes testing ABIs

The test transport will never be marked stable as we never want to
publicly expose it in a production build. Therefore isolate the
transport tests to builds that enable the testing ABI, allowing the
transport tests to link.

Fixes: 0a6d6821bd74 ("transport: Stabilise core transport and implementation APIs")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If1b252d8df0eeef9fb535824536436344d8c00ec
diff --git a/tests/meson.build b/tests/meson.build
index e9d88ec..82f7fde 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -24,9 +24,12 @@
   'libpldm_pdr_test',
   'libpldm_firmware_update_test',
   'msgbuf',
-  'transport',
 ]
 
+if get_option('abi').contains('testing')
+  tests += [ 'transport' ]
+endif
+
 if get_option('oem-ibm').allowed()
   tests += [
     'oem/ibm/libpldm_fileio_test',