summaryrefslogtreecommitdiff
path: root/Tests/LibCrypto
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2021-09-01 23:44:24 -0600
committerAndreas Kling <kling@serenityos.org>2021-09-02 09:08:23 +0200
commit58797a1289b2719b731dbb6a81e064fd4786db03 (patch)
tree5e760452feb85d9d3486c744dd1097e69aa81e6c /Tests/LibCrypto
parentb5a145b46677dd0853ffa65842a2a6cfe06ca061 (diff)
downloadserenity-58797a1289b2719b731dbb6a81e064fd4786db03.zip
Tests: Remove all file(GLOB) from CMakeLists in Tests
Using a file(GLOB) to find all the test files in a directory is an easy hack to get things started, but has some drawbacks. Namely, if you add a test, it won't be found again without re-running CMake. `ninja` seems to do this automatically, but it would be nice to one day stop seeing it rechecking our globbed directories.
Diffstat (limited to 'Tests/LibCrypto')
-rw-r--r--Tests/LibCrypto/CMakeLists.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/Tests/LibCrypto/CMakeLists.txt b/Tests/LibCrypto/CMakeLists.txt
index e376215ab1..cc14627b0a 100644
--- a/Tests/LibCrypto/CMakeLists.txt
+++ b/Tests/LibCrypto/CMakeLists.txt
@@ -1,4 +1,12 @@
-file(GLOB TEST_SOURCES CONFIGURE_DEPENDS "*.cpp")
-foreach(source ${TEST_SOURCES})
- serenity_test(${source} LibCrypto LIBS LibCrypto)
+set(TEST_SOURCES
+ TestAES.cpp
+ TestBigInteger.cpp
+ TestChecksum.cpp
+ TestHash.cpp
+ TestHMAC.cpp
+ TestRSA.cpp
+)
+
+foreach(source IN LISTS TEST_SOURCES)
+ serenity_test("${source}" LibCrypto LIBS LibCrypto)
endforeach()