diff --git a/Ubuntu-16.04.dockerfile b/Ubuntu-16.04.dockerfile index 95f3056..f0a5ade 100644 --- a/Ubuntu-16.04.dockerfile +++ b/Ubuntu-16.04.dockerfile @@ -1,7 +1,11 @@ FROM ubuntu:16.04 -RUN apt-get update && apt-get install -y apt-transport-https curl gnupg lsb-release pkg-config libsqlite3-dev libicu-dev gcc g++ meson +RUN apt-get update && apt-get install -y apt-transport-https curl gnupg lsb-release pkg-config sqlite3 libsqlite3-dev libicu-dev gcc g++ meson COPY ci/arrow-ubuntu16.04.list /etc/apt/sources.list.d/apache-arrow.list RUN curl https://dist.apache.org/repos/dist/dev/arrow/KEYS | apt-key add - && apt-get update && apt-get install -y libparquet-dev WORKDIR /src COPY . /src -RUN mkdir builddir && meson builddir && cd builddir && ninja +RUN mkdir builddir && meson builddir +WORKDIR builddir +RUN meson configure -Db_pgo=generate && ninja +RUN ninja test +RUN meson configure -Db_pgo=use && ninja diff --git a/Ubuntu-18.04.dockerfile b/Ubuntu-18.04.dockerfile index b5fbc2a..bbfc2de 100644 --- a/Ubuntu-18.04.dockerfile +++ b/Ubuntu-18.04.dockerfile @@ -1,7 +1,11 @@ FROM ubuntu:18.04 -RUN apt-get update && apt-get install -y apt-transport-https curl gnupg lsb-release pkg-config libsqlite3-dev libicu-dev gcc g++ meson +RUN apt-get update && apt-get install -y apt-transport-https curl gnupg lsb-release pkg-config sqlite3 libsqlite3-dev libicu-dev gcc g++ meson COPY ci/arrow-ubuntu18.04.list /etc/apt/sources.list.d/apache-arrow.list RUN curl -L -o /usr/share/keyrings/apache-arrow-keyring.gpg https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-keyring.gpg && apt-get update && apt-get install -y libparquet-dev WORKDIR /src COPY . /src -RUN mkdir builddir && meson builddir && cd builddir && ninja +RUN mkdir builddir && meson builddir +WORKDIR builddir +RUN meson configure -Db_pgo=generate && ninja +RUN ninja test +RUN meson configure -Db_pgo=use && ninja diff --git a/parquet-generator/codecs/brotli.parquet b/tests/datasets/codecs/brotli.parquet similarity index 100% rename from parquet-generator/codecs/brotli.parquet rename to tests/datasets/codecs/brotli.parquet diff --git a/parquet-generator/codecs/gzip.parquet b/tests/datasets/codecs/gzip.parquet similarity index 100% rename from parquet-generator/codecs/gzip.parquet rename to tests/datasets/codecs/gzip.parquet diff --git a/parquet-generator/codecs/snappy.parquet b/tests/datasets/codecs/snappy.parquet similarity index 100% rename from parquet-generator/codecs/snappy.parquet rename to tests/datasets/codecs/snappy.parquet diff --git a/tests/segfault-safety/load-valid-file/results.codecs.txt b/tests/segfault-safety/load-valid-file/results.codecs.txt new file mode 100644 index 0000000..673d2b3 --- /dev/null +++ b/tests/segfault-safety/load-valid-file/results.codecs.txt @@ -0,0 +1 @@ +2016|5933845|3|105 Mile Post 2|||09999|IRI|5933845|01. Agriculture, agriculture operations and related sciences|1761||x|x|x diff --git a/tests/segfault-safety/load-valid-file/results.txt b/tests/segfault-safety/load-valid-file/results.no-nulls.txt similarity index 100% rename from tests/segfault-safety/load-valid-file/results.txt rename to tests/segfault-safety/load-valid-file/results.no-nulls.txt diff --git a/tests/segfault-safety/load-valid-file/results.nulls.txt b/tests/segfault-safety/load-valid-file/results.nulls.txt new file mode 100644 index 0000000..4248e51 --- /dev/null +++ b/tests/segfault-safety/load-valid-file/results.nulls.txt @@ -0,0 +1 @@ +1|50|5000|50000000|50000000000|490665600000|99.0|0|000|||1.0