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

Release v0.0.7 #154

Merged
merged 21 commits into from
Jun 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c09a9ef
Fix for not wrapping different wrappee.
hariharan-devarajan Apr 19, 2024
1d510f2
Adding test case for dispatcher.
hariharan-devarajan Apr 22, 2024
4c469e4
Cleanup for PR
hariharan-devarajan Apr 22, 2024
0d838a9
get the correct wrappee from function handle.
hariharan-devarajan Apr 29, 2024
5766fdf
added code for version macro for code to check.
hariharan-devarajan Apr 29, 2024
ffd9d6d
Added new line
hariharan-devarajan Apr 29, 2024
2da5082
improved the macro for better comparisions
hariharan-devarajan Apr 30, 2024
b1bcd16
added a convienience macro to get version
hariharan-devarajan Apr 30, 2024
5a25fff
fixes for macros.
hariharan-devarajan May 20, 2024
1e592ba
removed comments
hariharan-devarajan May 20, 2024
cef7dd5
added test cases.
hariharan-devarajan May 20, 2024
50dabb2
added a null check as we should not find null entries.
hariharan-devarajan May 29, 2024
d5d2217
Merge pull request #151 from LLNL/bugfix/check
hariharan-devarajan May 30, 2024
98a1106
Merge branch 'develop' into bufix/146-alternate
hariharan-devarajan May 30, 2024
e02e987
Update gotcha_config.h.in
hariharan-devarajan May 30, 2024
90908f6
Merge branch 'develop' into feature/version_macro
hariharan-devarajan May 30, 2024
936a311
Merge pull request #148 from LLNL/bufix/146-alternate
hariharan-devarajan Jun 3, 2024
840e932
Merge branch 'develop' into feature/version_macro
hariharan-devarajan Jun 3, 2024
8d2e1ca
Merge pull request #150 from LLNL/feature/version_macro
hariharan-devarajan Jun 3, 2024
7578aa4
Changes for release 1.0.7
hariharan-devarajan Jun 17, 2024
7436bb8
Merge pull request #153 from LLNL/release/1.0.7
hariharan-devarajan Jun 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added test cases.
hariharan-devarajan committed May 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit cef7dd5a1b12c83f86327a14c3876fd0b2edd93d
2 changes: 1 addition & 1 deletion cmake/gotcha_config.h.in
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
#define GOTCHA_CONFIG_H

#define GOTCHA_GET_VERSION(MAJOR, MINOR, PATCH) MAJOR * 100000 + MINOR * 100 + PATCH
#define GOTCHA_VERSION GOTCHA_GET_VERSION @GOTCHA_VERSION@
#define GOTCHA_VERSION (GOTCHA_GET_VERSION @GOTCHA_VERSION@)
#define GOTCHA_VERSION_MAJOR (GOTCHA_VERSION / 100000)
#define GOTCHA_VERSION_MINOR ((GOTCHA_VERSION / 100) % 1000)
#define GOTCHA_VERSION_PATCH (GOTCHA_VERSION % 100)
21 changes: 21 additions & 0 deletions test/unit/gotcha_unit_tests.c
Original file line number Diff line number Diff line change
@@ -558,6 +558,22 @@ Suite *gotcha_hash_suite() {
return s;
}

START_TEST(gotcha_version_check) {
ck_assert_msg(GOTCHA_GET_VERSION(1, 0, 3) > GOTCHA_GET_VERSION(1, 0, 2),
"Check GOTCHA_GET_VERSION failed");
ck_assert_msg(GOTCHA_VERSION >= GOTCHA_GET_VERSION(1, 0, 6),
"Check GOTCHA_VERSION failed");
}
END_TEST

Suite *gotcha_version_suite() {
Suite *s = suite_create("Gotcha Version");
TCase *version_case = configured_case_create("Basic tests");
tcase_add_test(version_case, gotcha_version_check);
suite_add_tcase(s, version_case);
return s;
}

////////////Launch///Tests////////////

int main() {
@@ -578,9 +594,14 @@ int main() {
SRunner *hash_runner = srunner_create(hash_suite);
srunner_run_all(hash_runner, CK_NORMAL);
num_fails += srunner_ntests_failed(hash_runner);
Suite *version_suite = gotcha_version_suite();
SRunner *version_runner = srunner_create(version_suite);
srunner_run_all(version_runner, CK_NORMAL);
num_fails += srunner_ntests_failed(version_runner);
srunner_free(core_runner);
srunner_free(libc_runner);
srunner_free(auxv_runner);
srunner_free(hash_runner);
srunner_free(version_runner);
return num_fails;
}