forked from yugabyte/yugabyte-db
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#16092] YSQL: Integrate HyperLogLog extension tests with Yug…
…abyte Summary: = Changes = * Included HLL in `third-party-extensions/Makefile` * Updated `build_postgres.py` to remove `-std=c11` flag. This flag caused some issues compiling the extension, because this extension contains some C++ code. We don't need to set the flag explicitly because Postgres uses the c99 standard and modern compilers use a default value for -std higher than c99. * Create a new regression test `TestPgRegressThirdPartyExtensionsHll` that runs the HLL tests in their directory. Test Plan: ``` ybd --java-test org.yb.pgsql.TestPgRegressThirdPartyExtensionsHll ``` Reviewers: yql, ssong Reviewed By: ssong Subscribers: jason, mbautin, ssong, amartsinchyk Differential Revision: https://phabricator.dev.yugabyte.com/D23122
- Loading branch information
Showing
8 changed files
with
141 additions
and
57 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
36 changes: 36 additions & 0 deletions
36
java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgRegressThirdPartyExtensionsHll.java
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,36 @@ | ||
// Copyright (c) YugaByte, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
package org.yb.pgsql; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.yb.client.TestUtils; | ||
import org.yb.util.YBTestRunnerNonTsanOnly; | ||
|
||
@RunWith(value=YBTestRunnerNonTsanOnly.class) | ||
public class TestPgRegressThirdPartyExtensionsHll extends BasePgSQLTest { | ||
@Override | ||
public int getTestMethodTimeoutSec() { | ||
return 1800; | ||
} | ||
|
||
@Test | ||
public void schedule() throws Exception { | ||
File regress_schedule = new File( | ||
TestUtils.getBuildRootDir(), | ||
"postgres_build/third-party-extensions/postgresql-hll"); | ||
runPgRegressTest(regress_schedule, "yb_schedule"); | ||
} | ||
} |
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
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
Oops, something went wrong.