Hello!

I have never used ctest, so it's hard for me to figure out what you should
be doing. What I do is that I create a build directory, and I run cmake so
that build files go to that build directory. Then, from the build directory
I can see the file: "debug/arrow-dataset-dataset-writer-test". If you run
the build with release type as debug, you'll see the "debug" directory and
likewise if you run with release type as release, you'll see the "release"
directory. Can you see if you can run that script directly? Maybe that'll
help you see if the script itself is working or if there's something in
your configuration that's wrong.

I can show more direct examples once I update my environment.



Aldrin Montana
Computer Science PhD Student
UC Santa Cruz


On Fri, Apr 7, 2023 at 7:34 AM Haocheng Liu <lbtin...@gmail.com> wrote:

> Hi,
>
> I'm new to arrow development and would like to get some help with newbie
> testing questions.
>
> I have ARROW_TESTING set to TRUE and ARROW_TEST_DATA set properly on my
> MacOS. Though when running tests via " <build_directory>: ctest -R
> dataset-writer-test -V", *0 test *gets run but plenty are defined in this
> dataset_writer_test.cc. Any suggestions?
>
> ```
>
> 51: Working Directory:
> /Users/haochengliu/Documents/projects/Arrow/build/src/arrow/dataset
>
> 51: Test timeout computed to be: 10000000
>
> 51: Running arrow-dataset-dataset-writer-test, redirecting output into
>
> /Users/haochengliu/Documents/projects/Arrow/build/build/test-logs/arrow-dataset-dataset-writer-test.txt
> (attempt 1/1)
>
> 51: Running main() from
>
> /Users/haochengliu/Documents/projects/Arrow/build/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest_main.cc
>
> 51: [==========] Running 0 tests from 0 test suites.
>
> 51: [==========] 0 tests from 0 test suites ran. (0 ms total)
>
> 51: [  PASSED  ] 0 tests.
>
> 51: ~/Documents/projects/Arrow/build/src/arrow/dataset
>
> 1/1 Test #51: arrow-dataset-dataset-writer-test ...   Passed    0.27 sec
> ```
>
> Thanks,
> Haocheng
>

Reply via email to