You need to install Docker Engine on your host system.
Please refer to the link, Install Docker Engine to install.
As a known issue, the docker network is not well configured when you install Docker on Windows. Installing Ubuntu on WSL2 on Windows 10 is recommended. Please refer to the details
$ git clone https://github.com/CUBRID/cubrid-contrib.git
$ cd cubrid-contrib/docker_for_ctp
$ sh make_for_container.sh
# If the CTP container already exists.
$ docker start docker_for_ctp_01(or docker_for_ctp_02)
$ ssh [email protected](or 172.200.1.3)
$ ctp.sh [test scenario] -c [ctp config file]
# e.g.) ctp.sh sql -c ${CTP_HOME}/conf/sql.conf -- for sql test
The detail is followed URL https://github.com/CUBRID/cubrid-testtools
CTP(= CUBRID Test Progam)
The goal of this tool is to execute test cases already written in cubrid-testcases or test cases written by the user and report the results.
For more details, please refer to the link
ctp.sh [Test scenario] -c [${CTP_HOME}/conf/*.conf] (ex : ctp.sh sql -c ~/${CTP_HOME}/conf/sql.conf )
If you want to change the 'test scenario path', open the '${CTP_HOME}/conf/*.conf'.
and change the 'scenario' variable.
The detail is followed URL
https://github.com/CUBRID/cubrid-testtools
Execute the 'sh make_for_container.sh'.
Two containers are created with the names 'docker_for_ctp_01' and 'docker_for_ctp_02' respectively.
And you can connect the container by SSH.
The default user name & password id : ctp, ha_repl_01 pw : 1234
Container name | ip | User | Possible to scenario | Tools |
---|---|---|---|---|
docker_for_ctp_01 | 172.200.1.2 | ctp | HA test Controller & SQL, SQL_BY_CCI, MEDIUM, Isolation | CTP, cubrid-testcases |
ha_repl_01 | HA_REPL(Master), HA_SHELL(Master), SHELL test, CCI test, JDBC unit test | CTP | ||
docker_for_ctp_02 | 172.200.1.3 | ctp | HA test Controller & SQL, SQL_BY_CCI, MEDIUM, Isolation | CTP, cubrid-testcases |
ha_repl_01 | HA_REPL(Slave), HA_SHELL(Slave), SHELL test, CCI test, JDBC unit test | CTP |
https://www.cubrid.org/manual/en/11.2/install.html#installing-and-running-cubrid-on-linux
- If can not work 'ctp.sh'
- please execute 'sh test_repo/ctp_config/ctp_env_export.sh'
- Where do I put the test build?
- ./test_repo
- The 'test_repo' dir is shared dir with the parent machine.
- How to debug a core file that was created during the test?
- You can use the GDB command in the container.
- Can not CCI driver test
- please try to this
cp $CUBRID/cci/include/* $CUBRID/include/ cp $CUBRID/cci/lib/libcascci.so* lib/
- please try to this
- If rebooted the machine OR stop the container.
- please try to this
docker start docker_for_ctp_01 ssh [email protected]
- please try to this
- Where are the test cases & CTP dir?
- They are in '/home/(ctp or ha_repl_01)/test_repo/*'.
- This dir is shared with all ctp containers & parent machine.