Clean project structure.
This commit is contained in:
parent
78a4fa99ff
commit
947bf937fd
496 changed files with 206 additions and 137 deletions
8
plugins/music/test/CMakeLists.txt
Normal file
8
plugins/music/test/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
list(APPEND UNIT_TEST_FILES
|
||||
TestMidiReader.cpp
|
||||
)
|
||||
|
||||
add_executable(music_unit_tests ${CMAKE_SOURCE_DIR}/test/test_runner.cpp ${UNIT_TEST_FILES})
|
||||
target_link_libraries(music_unit_tests PUBLIC test_utils music)
|
||||
set_property(TARGET music_unit_tests PROPERTY FOLDER plugins)
|
12
plugins/music/test/TestMidiReader.cpp
Normal file
12
plugins/music/test/TestMidiReader.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "MidiReader.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
#include "TestUtils.h"
|
||||
|
||||
TEST_CASE(TestReadMidi, "audio")
|
||||
{
|
||||
MidiReader reader;
|
||||
reader.read(TestUtils::getTestDataDir() / "test.mid");
|
||||
|
||||
auto document = reader.getDocument();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue