ZigRazor / ZigRazor/CXXGraph

some test fails if test_exe ran from current directory other than build/test

Open
#351 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue hacktoberfest Priority:Medium test
Dominant language
C++
Stars
729
Forks
147
Avg merge
19h
Merged PRs (30d)
1

Description

Describe the bug
if we run test_exe from some other folder than build/test then some test fails

To Reproduce
Steps to reproduce the behavior:

  1. build the project with the flag DTEST=ON in cmake
  2. check current directory is not build/test, with help of pwd in Linux
  3. run build/test/test_exe not from the current directory build/test folder.

Expected behavior
It should not fail the tests

Screenshots

[  FAILED  ] 5 tests, listed below:
[  FAILED  ] DOTTest.ReadFromDotUndirected
[  FAILED  ] DOTTest.ReadFromDotUndirectedWeighted
[  FAILED  ] DOTTest.ReadFromDotDirected
[  FAILED  ] MTXTest.ReadFromMtxDirectedWeighted
[  FAILED  ] MTXTest.ReadFromMtxUndirectedWeighted

Desktop (please complete the following information):

  • OS: Fedora Linux 38 (Workstation Edition) 64bit
  • Version: 38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by building with CMake and DTEST=ON, then compare running build/test/test_exe from build/test with running it from another directory. Investigate the five failing tests listed in the report: the DOTTest.ReadFromDot* cases and MTXTest.ReadFromMtx* cases. Done means test_exe passes when launched outside build/test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.