]> Kevux Git Server - fll/commit
Update: Implement f_capability unit tests and improve existing unit tests.
authorKevin Day <thekevinday@gmail.com>
Mon, 10 Jan 2022 03:35:03 +0000 (21:35 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 10 Jan 2022 03:35:03 +0000 (21:35 -0600)
commit05ebed87d658a544b7d0506e5d0df72f3ea140f0
treece659460d78753620176b25327c958b6aafd3600
parentc6d097ba60f7ae7bfbd6b704db07d60e269386f8
Update: Implement f_capability unit tests and improve existing unit tests.

Add tests for f_capability functions.
This includes my first go at mocking functions using function wrapping.
It seems that the linker is limited on how it handles function wrapping.
I cannot simply wrap functions pulled in via a library.
To work around this I implemented another Fake build settings file for handling this.
This is not an ideal situation and adds a bit of extra work.

The environment variable settings for LD_LIBRARY_PATH needs to also support the work parameter.

These changes expose a logic flaw in the if/else logic of the Fake program.
That bug is not fixed in this commit, it is simply noted in this commit log.
90 files changed:
level_0/f_capability/data/build/dependencies-tests [new file with mode: 0644]
level_0/f_capability/data/build/settings-mocks [new file with mode: 0644]
level_0/f_capability/data/build/settings-tests [new file with mode: 0644]
level_0/f_capability/data/build/testfile [new file with mode: 0644]
level_0/f_capability/tests/c/mock-capability.c [new file with mode: 0644]
level_0/f_capability/tests/c/mock-capability.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_reset.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_reset.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-ambient_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-clear.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-clear.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-clear_flag.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-clear_flag.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-compare.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-compare.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy_external.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy_external.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy_internal.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-copy_internal.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-delete.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-delete.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_descriptor_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_descriptor_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_descriptor_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_descriptor_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-file_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-flag_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-flag_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-flag_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-flag_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-from_name.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-from_name.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-from_text.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-from_text.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-groups_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-groups_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-initialize.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-initialize.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_get_name.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_get_name.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-mode_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-owner_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-owner_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-owner_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-owner_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_bound_drop.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_bound_drop.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_bound_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_bound_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_get_by_id.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_get_by_id.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-process_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-security_bits_get.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-security_bits_get.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-security_bits_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-security_bits_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-size.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-size.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported_ambient.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported_ambient.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported_code.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-supported_code.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-to_name.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-to_name.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-to_text.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-to_text.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-user_set.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability-user_set.h [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability.c [new file with mode: 0644]
level_0/f_capability/tests/c/test-capability.h [new file with mode: 0644]
level_0/f_memory/data/build/dependencies-tests
level_0/f_memory/data/build/testfile
level_0/f_type_array/data/build/dependencies-tests
level_0/f_type_array/data/build/testfile