some test fails if test_exe ran from current directory other than build/test
Open
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:
- build the project with the flag
DTEST=ONin cmake - check current directory is not
build/test, with help ofpwdin Linux - run
build/test/test_exenot from the current directorybuild/testfolder.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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