Skip to content

Commit 41a2f28

Browse files
committed
Added documentation for running tests
1 parent 72bae3e commit 41a2f28

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ Tests are automatically built, to turn them off add the option ```-DBUILD_TESTS=
1515

1616
Permission has kindly been given by the EBU for this project to host the test files referenced in EBU Tech 3341 and EBU Tech 3342. Please find the original files here: https://tech.ebu.ch/publications/ebu_loudness_test_set
1717

18-
The test project must then be run from the same location as the test content folder.
18+
To build and run the tests use the following commands:
19+
```
20+
mkdir build
21+
cd build
22+
cmake ..
23+
make
24+
ctest
25+
```

test/EBU3341_Test_Set.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
std::optional<std::filesystem::path> getTestContentPath()
1414
{
15-
const std::filesystem::path path = std::filesystem::current_path() / "test_content";
15+
const std::filesystem::path path = std::filesystem::current_path() / "../_deps/ebuloudnesstestset-src";
16+
std::cout << path << std::endl;
17+
1618
return std::filesystem::exists(path) ? path : std::optional<std::filesystem::path>(std::nullopt);
1719
}
1820

0 commit comments

Comments
 (0)