Support meson test command 56/295756/1
authorJaechul Lee <jcsing.lee@samsung.com>
Thu, 13 Jul 2023 08:26:17 +0000 (17:26 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Thu, 13 Jul 2023 08:29:42 +0000 (17:29 +0900)
[Version] 0.0.7
[Issue Type] update

Change-Id: I0f909451066b584c127991186c7b824a0443ce8c
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
README.md
meson.build
packaging/libaudio-effect.spec
test/meson.build

index 0d8c8e7e3a950f0e3294eb8d9bc9ad2f96d32d1b..a716e21d005bf7477dc890db40f642a714864950 100644 (file)
--- a/README.md
+++ b/README.md
@@ -7,6 +7,5 @@ Additional audio pre-process methods.
  * GBS : gbs build -A aarch64 --include-all
 
 ## How to test
- * cd build/test
- * export LD_LIBRARY_PATH=../
- * ./refcopy_test
+ * meson test -C build/ --print-errorlogs
+ * meson test -C build/ amplify_test --print-errorlogs
index 9a3e8df0c38420c91e4c16d2fab7ba7c4b5dc95b..2a76ae11548af147d8dadcecc35d8850f69260b4 100644 (file)
@@ -139,6 +139,11 @@ pkg.generate(
 # --- test include ---
 if get_option('testsuite').enabled()
   subdir('test')
+  configure_file(input: './test/resources/obama.raw',  output: 'obama.raw',  copy: true)
+  configure_file(input: './test/resources/rec.raw',  output: 'rec.raw',  copy: true)
+  configure_file(input: './test/resources/ref.raw',  output: 'ref.raw',  copy: true)
+  configure_file(input: './test/resources/rec_refcopy_5ch.raw',  output: 'rec_refcopy.raw',  copy: true)
+  configure_file(input: './test/resources/airport_48k.raw',  output: 'airport_48k.raw',  copy: true)
 endif
 
 # --- install pkg-config ---
index f51ce3bddb040aa3ef74fb65b96cc9a974e01836..2f0bf7f2a52cf5c3a5c8098447a83db7c8369992 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libaudio-effect
 Summary:    audio effect library
-Version:    0.0.6
+Version:    0.0.7
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index dde780d27843533a407d45ec927b170c91cfc808..c88cbf5be3c278b9a2ebf0c4be7608d6c0453b5c 100644 (file)
@@ -26,8 +26,8 @@ if get_option('aec-webrtc').enabled()
   test_list += [[ 'aec_webrtc_test', 'aec_webrtc_test.c' ]]
 endif
 
-env = environment()
-env.set('LD_LIBRARY_PATH', './')
+testsuite_env = environment()
+testsuite_env.set('LD_LIBRARY_PATH', './')
 
 foreach c : test_list
   name = c[0]
@@ -39,12 +39,6 @@ foreach c : test_list
     install: true,
   )
 
-  test(name, e)
+  test(name, e, env: testsuite_env)
 
 endforeach
-
-configure_file(input: './resources/obama.raw',  output: 'obama.raw',  copy: true)
-configure_file(input: './resources/rec.raw',  output: 'rec.raw',  copy: true)
-configure_file(input: './resources/ref.raw',  output: 'ref.raw',  copy: true)
-configure_file(input: './resources/rec_refcopy_5ch.raw',  output: 'rec_refcopy.raw',  copy: true)
-configure_file(input: './resources/airport_48k.raw',  output: 'airport_48k.raw',  copy: true)