forked from greenplum-db/diskquota-archive
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fixes to run regression tests in Docker container (#14)
Removed useless commands from `concourse/scripts/entry.sh`, because our docker images already have source of GPDB at `/home/gpadmin/gpdb_src` and do not need to create or configure this directory. Added file `arenadata/README.md` with information about how to run tests at docker container. Removed `--load-extension=diskquota_test` from `CMakeLists.txt` at regression tests. Creating extension `diskquota_test` requires configured extension `diskquota`. But `diskquota` is configured when `tests/regress/sql/config.sql` is executed, and load-extension is done before this test is started. At all tests (where `diskquota_test` is used) command `CREATE EXTENSION diskquota_test;` is executed.
- Loading branch information
Showing
3 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Run regression tests in Docker container | ||
|
||
You can build your Docker image from GPDB source or use prebuilt images from hub.adsw.io. | ||
How to build Docker image: (["readme.md"](https://github.com/arenadata/gpdb/blob/f7ff7c8ecae4ce7ab3b73fd46171cdaa457b3591/arenadata/readme.md)). | ||
|
||
1. Download the cmake-3.20 install script from ([source](https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-x86_64.sh)). | ||
|
||
2. Build diskquota in the Docker container. | ||
Change <PATH_TO_DISKQUOTA_SRC> and <PATH_TO_CMAKE_INSTALL_SCRIPT> to the appropriate paths on your local machine. | ||
|
||
``` | ||
docker run --rm -it -e DISKQUOTA_OS=rhel7 \ | ||
-v /tmp/diskquota_artifacts:/home/gpadmin/diskquota_artifacts \ | ||
-v <PATH_TO_DISKQUOTA_SRC>:/home/gpadmin/diskquota_src \ | ||
-v <PATH_TO_CMAKE_INSTALL_SCRIPT>:/home/gpadmin/bin_cmake/cmake-3.20.0-linux-x86_64.sh \ | ||
hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/entry.sh build | ||
``` | ||
|
||
3. Run tests. | ||
Change <PATH_TO_DISKQUOTA_SRC> and <PATH_TO_CMAKE_INSTALL_SCRIPT> to the appropriate paths on your local machine. | ||
|
||
``` | ||
docker run --rm -it --sysctl 'kernel.sem=500 1024000 200 4096' \ | ||
-v /tmp/diskquota_artifacts:/home/gpadmin/bin_diskquota \ | ||
-v <PATH_TO_DISKQUOTA_SRC>:/home/gpadmin/diskquota_src \ | ||
-v <PATH_TO_CMAKE_INSTALL_SCRIPT>:/home/gpadmin/bin_cmake/cmake-3.20.0-linux-x86_64.sh \ | ||
hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/entry.sh test | ||
``` |
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
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