summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libsync: Add fence info testsAlexandros Frantzis2017-09-261-0/+35
| | | | | | | | | | This patch adds regression tests to check that the fence info returned by libsync contains valid data. Test: sync-unit-tests Change-Id: I0c57c49b7be563efc9a43f12381059f20e0a4e52 Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
* sync: rename sync/sync.h to android/sync.hJesse Hall2017-02-231-1/+1
| | | | | | | | | Leave a temporary symlink from the old name to avoid having to change all dependencies simultaneously. Bug: 1901466 Test: m Change-Id: Id210f0091457e52e1a6e048d241a723bdbe8779b
* sync: implement sync_file_infoJesse Hall2017-02-231-8/+47
| | | | | | | | | Also modifies sync-unit-test to use sync_file_info instead of the deprecated sync_fence_info, but check that they match in several tests. Bug: 35138793 Test: sync-unit-tests on bullhead Change-Id: Ic672d1c89798435a8b71469500e82c770a66bf4d
* libsync: Replace inserting tuple into unordered_map in favour of pair.mtezych2017-01-301-3/+3
| | | | | | | | Inserting tuple into unordered_map relies on non standard libc++ extension: http://stackoverflow.com/a/21313229 This change removes this dependency. Test: sync-unit-tests (on hikey with SW_SYNC_USER built into kernel)
* libsync: tests: redefine PollOnDestroyedTimeline()Gustavo Padovan2017-01-171-2/+1
| | | | | | | | | | On mainline if the sw_sync timeline is destroyed the fences doesn't not signal or error. So change the test to check if the fence is still there by polling the fence with timeout zero and asserting if it is not signalled. Test: Sync unit tests still passes. Change-Id: Icb8e629018eef35074ae91d0f29ed1f12e90492b
* libsync: tests: remove WaitOnDestroyedTimeline testGustavo Padovan2017-01-171-27/+0
| | | | | | | | The mainline Sync File implementation doesn't have wait ioctl anymore. Only poll is supported now, and we already have a test for that. Test: Sync unit tests still passes. Change-Id: Iadde7b2173024af9b8d20316e640297cf214c645
* Convert to Android.bpDan Willemsen2016-08-261-29/+0
| | | | | | | | | | | | | | | | | | | | | See build/soong/README.md for more information. I tested the following tests on a Nexus9 and linux host, and they continued to pass: /data/nativetest{,64}/bootstat_tests/bootstat_tests out/host/linux-x86/bin/nativetest{,64}/bootstat_tests/bootstat_tests /data/nativetest64/memunreachable_test/memunreachable_test out/host/linux-x86/bin/nativetest{,64}/memunreachable_test/memunreachable_test These continue to fail just like before this change: /data/nativetest{,64}/sync_test/sync_test (was /system/bin/sync_test) /data/nativetest{,64}/sync-unit-test/sync-unit-test /data/nativetest/memunreachable_test/memunreachable_test Test: See above Change-Id: I691e564e0cf008dd363e3746223b153d712e024d
* Fix isValid() condition for libsync testsTom Cherry2015-11-051-2/+2
| | | | | | | | Upstream modifications in K3.12 to the sw_sync driver set O_CLOEXEC on the fd's returned by the SW_SYNC_IOC_CREATE_FENCE ioctl, therefore we check the return of fcntl() for a non-negative value instead of strictly 0. Change-Id: If4c82750fcc0aa3a57f243fa2a94691e3150e4a4
* Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-1/+0
| | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* Remove uses of libcxx.mk.Dan Albert2015-03-271-1/+0
| | | | | | This is a no-op. Change-Id: Iecbcd5f6d818abbf98767a2e996c10f454b652e4
* Add gtest conformance tests for libsync.Riley Andrews2014-10-102-0/+646
Not complete yet, but substantially more comprehensive than the interactive test that was there before. (cherry-picked from internal master, same change-id). Change-Id: I9019b0a8babbc91f78aa850e0e288bbf05f93500