mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:15:08 +00:00

The previous iteration of this API was somewhat odd and rough in random places, which degraded usability and made less than perfect sense. This commit reworks the API to be a little closer to more conventional promise APIs (a la javascript promises). Also adds a test to ensure the class even works.
19 lines
632 B
CMake
19 lines
632 B
CMake
set(TEST_SOURCES
|
|
TestLibCoreArgsParser.cpp
|
|
TestLibCoreDeferredInvoke.cpp
|
|
TestLibCoreFilePermissionsMask.cpp
|
|
TestLibCoreFileWatcher.cpp
|
|
TestLibCorePromise.cpp
|
|
TestLibCoreSharedSingleProducerCircularQueue.cpp
|
|
TestLibCoreStream.cpp
|
|
)
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
serenity_test("${source}" LibCore)
|
|
endforeach()
|
|
|
|
# NOTE: Required because of the LocalServer tests
|
|
target_link_libraries(TestLibCoreStream PRIVATE LibThreading)
|
|
target_link_libraries(TestLibCoreSharedSingleProducerCircularQueue PRIVATE LibThreading)
|
|
|
|
install(FILES long_lines.txt 10kb.txt small.txt DESTINATION usr/Tests/LibCore)
|