Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Functionality from core_jobs.c #85

Merged
merged 104 commits into from
Oct 24, 2023
Merged

Add Functionality from core_jobs.c #85

merged 104 commits into from
Oct 24, 2023

Conversation

bradleysmith23
Copy link
Contributor

@bradleysmith23 bradleysmith23 commented Oct 3, 2023

Issue #, if available:

Description of changes:
Add APIs from core_jobs.c in https://github.com/FreeRTOS/Labs-Project-ota-example-for-aws-iot-core to jobs.c
Add cbmc proofs for functions added from core_jobs.c, reformat cbmc directory
Add unit tests for functions added from core_jobs.c

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add in functionality from core_jobs.c, Update CMakeLists.txt in test
directory to fetch coreJSON, and update CMakeLists.txt in unit-test
directory to include coreJSON source and header files.
Add tests for NULL and 0 length thingnames for functions that take
thingName and thingNameLength as a parameter.
Add check in isThingNameTopicMatch to check for NULL and 0 length
thingNames.
Add unit tests for getStartNextPendingJobExecutionMsg() and
getUpdateJobExecutionTopic().
Add Unit Tests for getUpdateJobExecutionTopic() and
getUpdateJobExecutionMsg().
Add proofs for functions moved over from core_jobs.c. Add output
directory within cbmc directory and store output from the most recent
run in a file within that directory.
Update to reflect addition of new proofs, and remove
artifacts from gitignore thare are no longer generated by running
cbmc proofs.
Function names from core_jobs.c now in camelCase.
Add --nondet-static flag back to run_proofs.sh
Update static variables in jobs.c so cbmc does not havoc them
Update order of parameters input to Jobs_IsJobUpdateStatus in
jobs_utest.c as the order of parameters in the definition of the function
have changed.
Remove sources/jobs.c from .gitignore since no copy of jobs.c is created
here anymore when running cbmc proofs.
@bradleysmith23
Copy link
Contributor Author

/bot run formatting

kstribrnAmzn
kstribrnAmzn previously approved these changes Oct 18, 2023
README.md Show resolved Hide resolved
source/include/jobs.h Outdated Show resolved Hide resolved
source/jobs.c Show resolved Hide resolved
source/jobs.c Show resolved Hide resolved
source/jobs.c Outdated Show resolved Hide resolved
source/jobs.c Show resolved Hide resolved
source/jobs.c Outdated Show resolved Hide resolved
source/jobs.c Outdated Show resolved Hide resolved
Move #define's over to jobs.h from jobs.c
Add #define's for clientToken, status, and expectedVersion in jobs.h
@bradleysmith23
Copy link
Contributor Author

/bot run formatting

@bradleysmith23 bradleysmith23 merged commit 21edb97 into aws:main Oct 24, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants