Skip to content

APITests tries to load files from absolute paths #23

@tjltjl

Description

@tjltjl

Thank you for Picogk!

After successfully building on macos:

mkdir build; (cd build; CXXFLAGS="-Wno-missing-template-arg-list-after-template-kw" cmake .. && make -j 16)

I ran APITests. The output is a bit concerning:

PicoGK Core Library 1.7.1
2025-04-21 16:17:49 picogk
Failed to load STL from/Users/richard/PicoGK_TestFiles
Failed to load viewer textures from /Users/richard/PicoGK_TestFiles
Failed to save Vdb to /Users/richard/PicoGK_TestFiles
Failed to read Vdb from /Users/richard/PicoGK_TestFiles

-- it's trying to read files from an absolute path.

This is explained by APITest/main.cpp:

#define TESTFILE_PATH "/Users/richard/PicoGK_TestFiles"

but no source for the files is given.

It would make reuse of this module simpler to have the testfiles available e.g. as a git submodule and having the loading just work.

Also, I notice that APITests tries to write to the testfiles - that doesn't sound like a robust way of doing things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions