-
Notifications
You must be signed in to change notification settings - Fork 92
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
Creating babelfisgpg_unit Extension #1586
Merged
shardgupta
merged 5 commits into
babelfish-for-postgresql:BABEL_3_X_DEV
from
shashank-yenni:demo
Jul 10, 2023
Merged
Creating babelfisgpg_unit Extension #1586
shardgupta
merged 5 commits into
babelfish-for-postgresql:BABEL_3_X_DEV
from
shashank-yenni:demo
Jul 10, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/ | ||
current = time(NULL); | ||
timenow = gmtime(¤t); | ||
strftime(filename, sizeof(filename), "../../babelfish_extensions/contrib/babelfishpg_unit/log_files/UNIT_%Y%m%d_%H%M%S.log", timenow); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should place log file somewhere which is not part of source code
surendravishnoi
approved these changes
Jul 7, 2023
ahmed-shameem
approved these changes
Jul 7, 2023
rl626
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Jul 11, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
thephantomthief
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Jul 17, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
ahmed-shameem
added a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Jul 19, 2023
ahmed-shameem
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Aug 17, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
ahmed-shameem
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Aug 17, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
ahmed-shameem
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Aug 17, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
ahmed-shameem
pushed a commit
to amazon-aurora/babelfish_extensions
that referenced
this pull request
Aug 22, 2023
Description At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish. In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file: Makefile: This file specifies the build instructions for the babelfishpg_unit extension. babelfishpg_unit.control: This files contain metadata and control information about the extension. babelfishpg_unit.h: This header file contains any necessary macros, definitions, or utility functions required for the unit tests. babelfishpg_unit—1.0.0.sql: This SQL script defines the necessary functions and setup for running the tests. It acts as the entry point for invoking the unit tests. Once it is invoked, it will trigger the execution of all the tests or specific tests. babelfishpg_unit.c: This file serves as the main entry point for the unit tests. It includes the necessary headers and implements the logic to execute all the defined tests. test_money.c, ...: These are the individual test files which contains the test cases and assertions specific to a particular area of functionality or component being tested. log_files: It is a folder which contains log files created after each test run Issues Resolved I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed. Signed-off-by: Yenni Shashank [email protected]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
At present, babelfish encompasses various testing frameworks such as JDBC, Python, .NET, and fuzz tests. Each of these frameworks serves specific purposes and relies on client drivers. However, we lack a framework dedicated to unit testing. This is the motivation behind this to create a unit testing framework for babelfish.
In this commit, we add unit testing framework which enable us to test any piece of our codebase. The babelfishpg_unit directory is added as a new extension within the contrib folder present in babelfish_extensions. It contains the necessary files for the unit testing framework. Here's a brief explanation of each file:
Issues Resolved
I have developed the framework in such a way that we can run multiple tests by passing multiple parameters. With this framework, all test functions associated with multiple specified parameters can be successfully executed.
Signed-off-by: Yenni Shashank [email protected]
Test Scenarios Covered
Use case based - Yes
Boundary conditions - Yes
Arbitrary inputs - Yes
Negative test cases - Yes
Minor version upgrade tests -
Major version upgrade tests -
Performance tests -
Tooling impact -
Client tests -
Tests Running
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.