Zbigniew Jasinski [Fri, 16 Sep 2016 10:06:16 +0000 (12:06 +0200)]
Merge branch 'yaca' into tizen
Change-Id: Ie586cacd427d87daa0f0e972f86c9071a4ccf860
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Dariusz Michaluk [Tue, 13 Sep 2016 08:52:46 +0000 (10:52 +0200)]
YACA: Remove get sign property tests
Change-Id: I36a5d3be236d73b0788c6b83384b4afa3e3c8554
Krzysztof Jackiewicz [Tue, 23 Aug 2016 12:52:29 +0000 (14:52 +0200)]
YACA: Low-level RSA API tests
Change-Id: If83467a2cbcf409667336e7c5ec726b1dd11ae0f
Dariusz Michaluk [Tue, 13 Sep 2016 06:46:13 +0000 (08:46 +0200)]
YACA: Fix typo, samsumg -> samsung
Change-Id: I3ea3a5806cddf27b45fe879e89bfe3a4f23f687b
Dariusz Michaluk [Mon, 5 Sep 2016 15:24:17 +0000 (17:24 +0200)]
YACA: Add GCM/CCM output tests
Change-Id: I0e91408959ec6c0adda63263d2dcb8026c114186
Mateusz Forc [Tue, 16 Aug 2016 09:56:44 +0000 (11:56 +0200)]
YACA: Add GCM/CCM tag length combination tests
Change-Id: I91d45e95f1e9b6b85bec8977dd2c9b67fcc70fb7
Mateusz Forc [Fri, 12 Aug 2016 10:00:33 +0000 (12:00 +0200)]
YACA: Add GCM/CCM call order tests
Change-Id: Icfde4167a7f674c5cb5605c036ba47233da5c6d1
Krzysztof Jackiewicz [Wed, 7 Sep 2016 14:32:31 +0000 (16:32 +0200)]
YACA: Remove unnecessary multiplication of test input
Change-Id: I62ee40707100ff838396d5b94ab265d557d092fc
Zbigniew Jasinski [Mon, 5 Sep 2016 13:59:18 +0000 (15:59 +0200)]
Added '--test=' option
One can run particular test passing it's name as argument:
$ security-manager-tests --test='security_manager_07_user_add_app_install'
Change-Id: Ibfb2ac3f376a2f790d5af084ce42559594a65f1d
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Lukasz Pawelczyk [Mon, 5 Sep 2016 16:53:19 +0000 (18:53 +0200)]
YACA: 256 bit RSA has been deemed "too small" in OpenSSL 1.1
Change-Id: I5675cb454ab718d37171bea1745900fde83eb28e
Krzysztof Jackiewicz [Tue, 30 Aug 2016 12:01:03 +0000 (14:01 +0200)]
YACA: Keep key size in KeyPair
Change-Id: Ic84ef69b2140e970c7a1edea5810491d81fc1605
Krzysztof Jackiewicz [Tue, 23 Aug 2016 12:50:44 +0000 (14:50 +0200)]
YACA: Update padding values
Change-Id: I86651a3a17f93d5a0e18f2f3592b797bd3a30efc
Dariusz Michaluk [Mon, 29 Aug 2016 09:13:27 +0000 (11:13 +0200)]
YACA: Fix T4236 memory leak.
Change-Id: I47d28182022e8119931978f06e394617a211d049
Dariusz Michaluk [Tue, 23 Aug 2016 07:32:12 +0000 (09:32 +0200)]
YACA: Add RC2 effective key bits tests.
Change-Id: I6993b88a4784df9f5529ac6c4ea8a571611e4d50
Dariusz Michaluk [Fri, 19 Aug 2016 10:52:40 +0000 (12:52 +0200)]
YACA: Add seal/open tests.
Change-Id: Ie3ca9b19fde43bdf619919a05c8dcbf616dde68c
Dariusz Michaluk [Thu, 18 Aug 2016 11:48:13 +0000 (13:48 +0200)]
YACA: Add simple encrypt/decrypt tests.
Change-Id: I361190fd81762cc1ad2ba55f2ee1a5ff79842087
Dariusz Michaluk [Wed, 17 Aug 2016 10:39:31 +0000 (12:39 +0200)]
YACA: Add key wrapping tests.
Change-Id: I2c467b97d72c912a70096e4b91e3409b3a224cd3
Krzysztof Jackiewicz [Mon, 29 Aug 2016 14:28:07 +0000 (16:28 +0200)]
YACA: adjust to s/INTERNAL_KEYLEN/KEYLEN_COMPONENT/ change in yaca
Change-Id: I3e7dba8035064945f257962ede16effff5cf1032
Zbigniew Jasinski [Fri, 19 Aug 2016 10:56:31 +0000 (12:56 +0200)]
Merge remote-tracking branch 'origin/tizen' into yaca
Change-Id: Ie127f8356cce6938c6c9b9b9ad5c109db4c79117
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Dariusz Michaluk [Fri, 12 Aug 2016 10:26:43 +0000 (12:26 +0200)]
YACA: Add simple encrypt/decrypt invalid param tests.
Change-Id: I1ff53992cf048eeca8ec43dd22f5d4c0bdeeb80d
Dariusz Michaluk [Thu, 11 Aug 2016 14:29:42 +0000 (16:29 +0200)]
YACA: Add seal/open invalid param tests.
Change-Id: I4fdfb2794349c3b9a9c404b8452338be949c7870
Mateusz Forc [Thu, 28 Jul 2016 10:58:34 +0000 (12:58 +0200)]
YACA: Add encrypt-decrypt test
Change-Id: I59269302d0aabd22366f4ae1529a9bb2877acc64
Mateusz Forc [Thu, 28 Jul 2016 08:54:10 +0000 (10:54 +0200)]
YACA: Add scripts used to generate encrypt tests
Change-Id: I86de3c31e8e03a610590985883c1407a0a32320d
Dariusz Michaluk [Thu, 11 Aug 2016 11:49:37 +0000 (13:49 +0200)]
YACA: Add *alloc/memcmp/key_destroy tests.
Change-Id: I80d4000f8ae126e8f407b8982356975d61f6443e
Mateusz Forc [Tue, 19 Jul 2016 13:31:09 +0000 (15:31 +0200)]
YACA: Add encrypt output tests
Change-Id: I4087b0f3bfd792b2da34fa0ef881fa5519c389b3
Kyungwook Tak [Tue, 16 Aug 2016 05:26:56 +0000 (14:26 +0900)]
WAE: API changed due to changed installer cred
refer https://review.tizen.org/gerrit/#/c/81601
Change-Id: I77c0a969a65e6aa81c31034fd5dd45d1f8aaf45e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Lukasz Pawelczyk [Thu, 11 Aug 2016 15:00:09 +0000 (17:00 +0200)]
YACA: gen DH params with primelen == 512, 1024 takes too long
Change-Id: Ibb122ec330916e2c0081714db578cb234572ec01
Dariusz Michaluk [Fri, 5 Aug 2016 15:11:08 +0000 (17:11 +0200)]
YACA: yaca_key_derive_dh/_kdf output tests
Change-Id: I3902d2bb53b2d49fee05d32cec4a434a457805ac
Lukasz Pawelczyk [Tue, 9 Aug 2016 15:39:38 +0000 (17:39 +0200)]
YACA: test EC keys for sign/verify operations
Change-Id: I1c7b54678b6d5227c396a1879aaa9b85e54719b7
Lukasz Pawelczyk [Tue, 9 Aug 2016 15:38:49 +0000 (17:38 +0200)]
YACA: support comments starting with # (regardless of = in the middle)
Change-Id: I1ef080741cb1ab96b6579a09bb190897ec739bd8
Dariusz Michaluk [Fri, 5 Aug 2016 12:35:01 +0000 (14:35 +0200)]
YACA: invalid param tests for yaca_key_derive_dh/_kdf
Change-Id: I89787aad7caf11403ee2bf6594dd162567bd33d8
Lukasz Pawelczyk [Thu, 4 Aug 2016 11:15:50 +0000 (13:15 +0200)]
YACA: Use local test-vectors when available
Copy test-vectors to the local build dir and use them instead if
available. This makes possible to run the tests without "make install"
directly in the cmake build directory.
Change-Id: I4041cf669960e4b199aa14adfb8c17a9c991be2c
Mateusz Forc [Wed, 13 Jul 2016 13:38:29 +0000 (15:38 +0200)]
YACA: Add param combination tests for yaca_encrypt/decrypt_initialize()
Change-Id: I34e8cee773801550f25330592c2baaee40c51b34
Lukasz Pawelczyk [Mon, 25 Jul 2016 14:19:35 +0000 (16:19 +0200)]
YACA: import/export tests for EC, DH and parameters
Change-Id: Ie645a41accbbbd521ddb4fcd9337a93279ac0982
Lukasz Pawelczyk [Mon, 25 Jul 2016 13:40:56 +0000 (15:40 +0200)]
YACA: tests for importing DSA and EC from X509 certs
Change-Id: Ic2846be18af9861b0eb346ff52d757ec69763610
Lukasz Pawelczyk [Mon, 25 Jul 2016 13:34:52 +0000 (15:34 +0200)]
YACA: add new key types to tests' infrastructure
Change-Id: Iaba1057f1322ce7a15aa6454a4836bee361de6f6
Lukasz Pawelczyk [Mon, 25 Jul 2016 12:40:54 +0000 (14:40 +0200)]
YACA: key generation tests for EC, DH and also related to parameters
Change-Id: If09542527ce793c87380cc74e8f2d9c6d89a6404
Lukasz Pawelczyk [Fri, 22 Jul 2016 13:39:14 +0000 (15:39 +0200)]
YACA: invalid param tests for latest key functionalities
- EC keys
- DH keys
- generation of parameters
- generation of keys from parameters
- extraction of parameters
- extraction of public (this already existed, but had no tests)
Change-Id: Ifb26eeea43923426750ed269bfe92183b5854a7d
Mateusz Forc [Fri, 29 Jul 2016 09:32:01 +0000 (11:32 +0200)]
YACA: Add more invalid param tests
Change-Id: I5af29cf843aeee16e6692bca7b768004a9eab01d
Mateusz Forc [Mon, 18 Jul 2016 10:41:23 +0000 (12:41 +0200)]
YACA: Change container type in test-vector and change deleted enums
Change-Id: I78d8018cbf6ef6cd17f8744763901e257763b3fd
Lukasz Pawelczyk [Fri, 15 Jul 2016 13:41:55 +0000 (15:41 +0200)]
YACA: another workaround for a possible bug in clang
Change-Id: I05e4e97bb9d599c3021863d8e0e2e65b1f1dc877
Mateusz Forc [Thu, 14 Jul 2016 11:18:05 +0000 (13:18 +0200)]
YACA: remove semicolon from macros' end
Change-Id: I64c5db35a91c6c703a3a233dc0b104268318afd5
Mateusz Forc [Tue, 5 Jul 2016 16:20:16 +0000 (18:20 +0200)]
YACA: Add invalid param tests for encrypt/decrypt functions
Change-Id: I4081eb9ee3586ace34887d62bf1f5e672901b273
Lukasz Pawelczyk [Tue, 5 Jul 2016 17:03:54 +0000 (19:03 +0200)]
YACA: set_property tests (invalid param and proper operation)
Change-Id: I408f3f831370ca272601d5eeea632cfc1c4c01c7
Krzysztof Jackiewicz [Thu, 7 Jul 2016 11:00:01 +0000 (13:00 +0200)]
YACA: Update yaca_cleanup() usage
Change-Id: I7017e61b08d130dc045675f0e24c09e1e56c338f
Lukasz Pawelczyk [Tue, 5 Jul 2016 13:58:21 +0000 (15:58 +0200)]
YACA: sign_verify with different paddings vector test
Change-Id: Icd421be5ce8210e2932cebe927e97d3555290663
Lukasz Pawelczyk [Tue, 5 Jul 2016 13:58:07 +0000 (15:58 +0200)]
YACA: padding2str helper function
Change-Id: Icc5f8e4eb198ee11e76453ed751531bac09bbab8
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:09:36 +0000 (13:09 +0200)]
YACA: add PBKDF2 vector tests
Change-Id: Ie4a7754c8ac4dc8c574ebc66a3e42eeef8a7236e
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:39:05 +0000 (13:39 +0200)]
YACA: key_derive_pbkdf2 helper function
Change-Id: I1f5b40a0b2f59ad8a99567501e7d80196880945e
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:09:18 +0000 (13:09 +0200)]
YACA: add PBKDF2 invalid param tests
Change-Id: I8feed6eacc53c5e24e0788621196af724cc18487
Lukasz Pawelczyk [Fri, 1 Jul 2016 17:18:14 +0000 (19:18 +0200)]
YACA: test for importing public key from an X509 certificate
Change-Id: I7294bedf71426a7faf9e38703e6768954e6e6c1d
Lukasz Pawelczyk [Thu, 30 Jun 2016 10:35:36 +0000 (12:35 +0200)]
YACA: key import/export vector tests
Also some additional invalid params tests that were originally missing.
Change-Id: I21cc16a8809ebfd2c29feaf8c3a1101655fd6723
Lukasz Pawelczyk [Mon, 4 Jul 2016 16:25:35 +0000 (18:25 +0200)]
YACA: tests updated for int->void change in de-allocators
Change-Id: Ie4eeae2788ebe69fd7b9f7366518b9f986592acd
Lukasz Pawelczyk [Thu, 30 Jun 2016 09:59:28 +0000 (11:59 +0200)]
YACA: key_format and key_file_format handlers for vector
Change-Id: I550ed4e91a155520fb2e62ee00d4e2efb2f1cf1d
Lukasz Pawelczyk [Wed, 29 Jun 2016 15:50:03 +0000 (17:50 +0200)]
YACA: add DATA_MISMATCH testing for verification vector tests
Change-Id: I75f89e874f9357f5415e2d863dde1ea0badf2e73
Lukasz Pawelczyk [Wed, 29 Jun 2016 12:45:26 +0000 (14:45 +0200)]
YACA: simple sign/verify/hmac/cmac vector tests
Change-Id: Ia8a3ca01f86dddf8ac32e62327019f839acfb171
Lukasz Pawelczyk [Wed, 29 Jun 2016 11:45:55 +0000 (13:45 +0200)]
YACA: invalid param tests for simple sign/verify/hmac/cmac
Change-Id: I56f80163daac1126a9031ea7258473b0c54073f8
Lukasz Pawelczyk [Wed, 29 Jun 2016 11:45:14 +0000 (13:45 +0200)]
YACA: simple_sign() helper function
Fixed some style while here
Change-Id: I51c9a399fa76e77e9dbd6aa6ade6138203eba2e0
Lukasz Pawelczyk [Wed, 29 Jun 2016 10:25:31 +0000 (12:25 +0200)]
YACA: HMAC and CMAC invalid param tests
Change-Id: Ie6f2ec887ec6cdf9165f63641a5c7839562d6f37
Lukasz Pawelczyk [Tue, 28 Jun 2016 16:20:32 +0000 (18:20 +0200)]
YACA: HMAC and CMAC vector tests
Change-Id: I0d72539de1792e056a16ff4f29d86ea785836672
Lukasz Pawelczyk [Tue, 28 Jun 2016 16:20:03 +0000 (18:20 +0200)]
YACA: Helper functions for CMAC tests
Change-Id: I2f149eb032fe118c6acc5e3be8463aec593843cc
Lukasz Pawelczyk [Tue, 28 Jun 2016 14:33:06 +0000 (16:33 +0200)]
YACA: Drop the digest context reuse testing
Change-Id: I541fbc84a033270d0b30d22870f886846467b4be
Lukasz Pawelczyk [Wed, 22 Jun 2016 11:51:15 +0000 (13:51 +0200)]
YACA: yaca sign/verify vector tests
Change-Id: Ib062a4f77e493604da5d894d4b856cba7cb47027
Lukasz Pawelczyk [Wed, 22 Jun 2016 14:25:26 +0000 (16:25 +0200)]
YACA: yaca sign vector tests
Change-Id: Ib4485dc497108a0f00c6c8dcf91fcbb09b843af0
Lukasz Pawelczyk [Wed, 22 Jun 2016 14:17:43 +0000 (16:17 +0200)]
YACA: keytype2str helper function
Make it more generic with ENUM_DESCRIBE
Change-Id: I27ecd5832c1fc2d43dd82bf4399262d9745947f9
Lukasz Pawelczyk [Wed, 22 Jun 2016 11:50:27 +0000 (13:50 +0200)]
YACA: add key_type handling in the test vector API
Change-Id: I2aa8b6de1ac9cd3d9d3a4e29620abd01ac434a90
Krzysztof Jackiewicz [Thu, 23 Jun 2016 08:14:41 +0000 (10:14 +0200)]
YACA: Use Buffer instead of vector<char>
Change-Id: Ibc3b3b63ba250176b5168fa665ea8bc8482a9864
Krzysztof Jackiewicz [Thu, 23 Jun 2016 08:08:01 +0000 (10:08 +0200)]
YACA: Use get_output_length() where possible
Change-Id: I484b8cad6ed57968c167e85a2ab03448e8b8cc30
Krzysztof Jackiewicz [Tue, 21 Jun 2016 13:55:34 +0000 (15:55 +0200)]
YACA: Tests for digest simple API
Change-Id: I83936cc9458dedc9c9c8626e441f5b0e18e94291
Krzysztof Jackiewicz [Mon, 20 Jun 2016 15:59:48 +0000 (17:59 +0200)]
YACA: Test digest context reuse
Change-Id: I563d7ca6d16169876fac8a2a636dfa58f2747238
Krzysztof Jackiewicz [Mon, 20 Jun 2016 15:44:27 +0000 (17:44 +0200)]
YACA: Binary input message digest tests
Change-Id: I588fe4fbe707e3b7477272eb9f629e55694660bd
Krzysztof Jackiewicz [Mon, 20 Jun 2016 14:28:54 +0000 (16:28 +0200)]
YACA: Digest ASCII test vectors
Change-Id: Id07a3b696f2295f39a42bf497f6aba050b0470ce
Krzysztof Jackiewicz [Thu, 23 Jun 2016 10:32:57 +0000 (12:32 +0200)]
YACA: Fix: replace BufPtr with ChrPtr
Change-Id: I009691d114910b6758a3f24132cdbc3245f7fa2d
Krzysztof Jackiewicz [Tue, 21 Jun 2016 10:30:18 +0000 (12:30 +0200)]
YACA: Crypto tests
Change-Id: I8974001c316fca85cb3ab4cc485c70d82e5bc859
Krzysztof Jackiewicz [Mon, 20 Jun 2016 10:50:44 +0000 (12:50 +0200)]
YACA: Test vector helpers
Change-Id: I09bb1c03a8ae960f1f788b9a8dca8c1331f5f07f
Lukasz Pawelczyk [Mon, 20 Jun 2016 13:26:11 +0000 (15:26 +0200)]
YACA: Key import/export invalid param tests
Change-Id: Ib633c376518d9a79376a0f7017d3f0cb929a9be1
Lukasz Pawelczyk [Mon, 20 Jun 2016 13:25:28 +0000 (15:25 +0200)]
YACA: Simple key import/export wrappers for auto types
Change-Id: I4364d24c5b10bc195803918aeec198e117cb2788
Krzysztof Jackiewicz [Tue, 21 Jun 2016 11:33:17 +0000 (13:33 +0200)]
YACA: Check openssl errors even if test passes
Change-Id: Ib1efae6d2edc3a37ed2813ae8774cd66b0522a2f
Lukasz Pawelczyk [Thu, 16 Jun 2016 12:30:08 +0000 (14:30 +0200)]
YACA: Base signature tests, without the actual sign/verify operations
Change-Id: Idfc60b0eb2496f829c2582bb5c8e3a4329498f0f
Lukasz Pawelczyk [Thu, 16 Jun 2016 12:29:53 +0000 (14:29 +0200)]
YACA: Test common functions for signature tests
Change-Id: I9bbae297e19eeb5852c8a7502a95082b244f2505
Krzysztof Jackiewicz [Wed, 15 Jun 2016 15:38:32 +0000 (17:38 +0200)]
YACA: Message digest negative tests
Change-Id: I15229a5b190f0729a44012b1a7eb3bbcd4af928c
Krzysztof Jackiewicz [Wed, 15 Jun 2016 15:34:03 +0000 (17:34 +0200)]
YACA: Add helpers for digest, hmac, random buffers
Change-Id: I61c4d545adbcf39c2ecdca588cc1feb29f6c0e99
Krzysztof Jackiewicz [Wed, 15 Jun 2016 15:43:40 +0000 (17:43 +0200)]
Merge remote-tracking branch 'tizen.org/tizen' into yaca
Change-Id: Id96c2fe8192977dc7b02bcfe3b830172bfa7fa41
Krzysztof Jackiewicz [Wed, 8 Jun 2016 12:25:45 +0000 (14:25 +0200)]
YACA: Stress tests for multiple threads
Tests concurrency issues and library/thread initialization/cleanup.
Run: yaca-test --group=T8000_YACA_STRESS
Change-Id: I30696dcb99ba5bf164e4d84c2bfbc7f80514ef13
Krzysztof Jackiewicz [Wed, 25 May 2016 10:50:30 +0000 (12:50 +0200)]
YACA: yaca_initialize/cleanup tests
Change-Id: I535c25150d236318515e699e5f3e2321692a3e4c
Krzysztof Jackiewicz [Tue, 24 May 2016 15:16:30 +0000 (17:16 +0200)]
YACA: Key generation and getter tests
Change-Id: I78d7aa7bbaef81fa49a9900d7b18026673079909
Krzysztof Jackiewicz [Mon, 13 Jun 2016 12:36:51 +0000 (14:36 +0200)]
Exclude main and std:: entries from gdb backtrace for clarity
Change-Id: I235d129f5aa7bc840fca262ffc1df42026f5968d
Krzysztof Jackiewicz [Mon, 13 Jun 2016 12:50:33 +0000 (14:50 +0200)]
YACA: Add wrappers for yaca API
- Key generation
- Public key extraction
- Context creation
- Buffer allocation
Change-Id: Ifdde9ff0820ceda7bee4fce85c576322c312fb12
Krzysztof Jackiewicz [Mon, 13 Jun 2016 12:49:38 +0000 (14:49 +0200)]
YACA: Add helper types/functions for pointer management
Change-Id: Iecdd6e8bfc36477a7c20c081a7788073fff66c60
Krzysztof Jackiewicz [Tue, 24 May 2016 15:03:12 +0000 (17:03 +0200)]
YACA: Add common helper functions and structs
Change-Id: I9133eca6ad3529db9e8c7e74fffd3f767b2da690
Lukasz Pawelczyk [Wed, 1 Jun 2016 16:12:46 +0000 (18:12 +0200)]
YACA: Add .gitignore with few common files (cmake, global, emacs)
Change-Id: Iefb12aee5be7afc1d6cd43d00ad1b3d9dfb218bf
Krzysztof Jackiewicz [Tue, 31 May 2016 10:44:06 +0000 (12:44 +0200)]
YACA: Update header names after ACR changes
Change-Id: I07ec269352a8505461a1465bcb25a8006d3ed2c4
Dariusz Michaluk [Tue, 26 Apr 2016 15:05:15 +0000 (17:05 +0200)]
Initial commmit for yaca tests.
Change-Id: If6d2de0b8a59589ed8c607b21a01bd6fd698a692
Dariusz Michaluk [Wed, 27 Apr 2016 10:58:51 +0000 (12:58 +0200)]
Build all tests by default, add possibility to separate build.
Change-Id: Ifde7293123c087172900f7c8699be5a8e6df06d6
Dariusz Michaluk [Tue, 26 Apr 2016 14:57:11 +0000 (16:57 +0200)]
Make dlog backend optional.
Change-Id: I59f52d7de4583bc945d33a0e109a3f4477d0a8b9
Dariusz Michaluk [Tue, 26 Apr 2016 15:34:42 +0000 (17:34 +0200)]
Remove unused API_VERSION from CMake.
Change-Id: I8c05d948cd83d05ee2e83740b91e0a440b97dfdd
Dariusz Michaluk [Tue, 26 Apr 2016 13:34:37 +0000 (15:34 +0200)]
Drop libiri dependency, library is not used anymore.
Change-Id: I8b50e8461fb5dd9a50e00ddd3fb4c2e540a8b8b2
Rafal Krypa [Tue, 19 Apr 2016 14:59:05 +0000 (16:59 +0200)]
Increase time limit for RUNNER_CHILD_TEST to 90 seconds
Current time limit of 10s for each RUNNER_CHILD_TEST is insufficient.
Several existing tests may take significantly longer time, but they
eventually succeed.
Change-Id: I3867ed3aee0449d95c0fa89b79aa3104f31f81a7
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Tue, 19 Apr 2016 12:26:44 +0000 (14:26 +0200)]
TemporaryTestUser: encapsulate communication with gumd in separate process
Gumd interface libgum has nasty side effects on the calling process.
On the first call to gumd service it allocates persistent resources
in the calling thread that are not freed and are used for subsequent
calls to gumd. These resources include a new thread, socket connection
and two eventfds.
This doesn't play well with process that changes it's Smack label and
DAC credentials back and forth. It also breaks encapsulation between
test cases, leading to nasty "gumd timeout" issues.
This patch attempts to fix this issue by dedicated a separate process
for calling libgum functions. The TemporaryTestUser class will no longer
call libgum directly, but delegate the calls to the dedicated process.
Change-Id: Id111d5ef79d65135e3b378582a220f168f8a2284
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Tue, 19 Apr 2016 12:03:02 +0000 (14:03 +0200)]
Drop usage of RUNNER_MULTIPROCESS_TEST*
Replace all uses of RUNNER_MULTIPROCESS_TEST* with RUNNER_CHILD_TEST* because of
several issues of multiprocess test functionality:
- it runs the test function in the main process, suffering from all the issues
that plagued RUNNER_TEST
- it doesn't handle waiting and error checking for child processes of higher
order
- it hangs when the main process has a pre-existing child process prior to
invocation of RUNNER_MULTIPROCESS_TEST*
Simpler RUNNER_CHILD_TEST* macros are sufficient replacement for the broken
ones. We never used additional features provided by RUNNER_MULTIPROCESS_TEST*.
Change-Id: I8583a5b8829343f14c03e8336015f5322122369d
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>