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 ctest for google unittests #2059

Merged
merged 2 commits into from Aug 11, 2021
Merged

Add ctest for google unittests #2059

merged 2 commits into from Aug 11, 2021

Conversation

mariadb-LeonidFedorov
Copy link
Collaborator

@mariadb-LeonidFedorov mariadb-LeonidFedorov commented Jul 26, 2021

  • RowDecimalTest, ToStringCheck was failing, fixing to current toString output
  • deleted utils/rowgroup/rowgroup-tests.cpp as duplicate and never used
  • Added ctest with google test and compile_flag WITH_UNITTESTS
  • Added compilation and execution for unittests on drone. Unittests shall compile and execute every PR

Example of running tests

ctest -R columnstore                                          
Test project /home/leonid_fedorov_mariadb_com/proj/mdb-server
      Start 49: columnstore:RowDecimalTest.NonNullValueCheck                                     
 1/31 Test #49: columnstore:RowDecimalTest.NonNullValueCheck ...............   Passed    0.02 sec
      Start 50: columnstore:RowDecimalTest.InitToNullAndIsNullValueCheck                         
 2/31 Test #50: columnstore:RowDecimalTest.InitToNullAndIsNullValueCheck ...   Passed    0.02 sec
      Start 51: columnstore:RowDecimalTest.GetBinaryFieldCheck                                   
 3/31 Test #51: columnstore:RowDecimalTest.GetBinaryFieldCheck .............   Passed    0.02 sec
      Start 52: columnstore:RowDecimalTest.ToStringCheck                                         
 4/31 Test #52: columnstore:RowDecimalTest.ToStringCheck ...................   Passed    0.02 sec
      Start 53: columnstore:RowDecimalTest.ToCSVCheck                                            
 5/31 Test #53: columnstore:RowDecimalTest.ToCSVCheck ......................   Passed    0.02 sec
.....
      Start 78: columnstore:CompressionTest.LZ4CanCompress                                       
30/31 Test #78: columnstore:CompressionTest.LZ4CanCompress .................   Passed    0.03 sec
      Start 79: columnstore:CompressionTest.LZvsSnappyUnique                                     
31/31 Test #79: columnstore:CompressionTest.LZvsSnappyUnique ...............   Passed    0.11 sec
                                                                                                          
100% tests passed, 0 tests failed out of 31  

tests can be run in parralel

ctest -j 40 -R columnstore 

@mariadb-LeonidFedorov mariadb-LeonidFedorov force-pushed the unittests-ctest branch 15 times, most recently from e8defcf to 733a299 Compare August 2, 2021 23:31
@mariadb-LeonidFedorov mariadb-LeonidFedorov force-pushed the unittests-ctest branch 6 times, most recently from d38ad36 to 226895b Compare August 3, 2021 02:22
run unittests
@drrtuy drrtuy merged commit 150770b into develop Aug 11, 2021
@mariadb-LeonidFedorov mariadb-LeonidFedorov deleted the unittests-ctest branch August 11, 2021 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants