summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-05-07 03:24:48 -0700
committerLinus Groh <mail@linusgroh.de>2021-05-08 00:04:10 +0100
commit9720ad3901d6a963f567994f06dc4c8481070424 (patch)
tree2172a19e85ee7eb2956d6a0f2928cfb26355e545
parentb390554ad8d140a4d41c6f2cf6b1809f29a3ef51 (diff)
downloadserenity-9720ad3901d6a963f567994f06dc4c8481070424.zip
Tests: Move Userland/Utilities/test-js to Tests/LibJS
-rw-r--r--Meta/Lagom/CMakeLists.txt2
-rw-r--r--Tests/CMakeLists.txt1
-rw-r--r--Tests/LibJS/CMakeLists.txt3
-rw-r--r--Tests/LibJS/test-js.cpp (renamed from Userland/Utilities/test-js.cpp)0
-rw-r--r--Userland/Utilities/CMakeLists.txt1
5 files changed, 5 insertions, 2 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index b2c33b68fe..80e7648dd2 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -127,7 +127,7 @@ if (BUILD_LAGOM)
set_target_properties(ntpquery_lagom PROPERTIES OUTPUT_NAME ntpquery)
target_link_libraries(ntpquery_lagom Lagom)
- add_executable(test-js_lagom ../../Userland/Utilities/test-js.cpp)
+ add_executable(test-js_lagom ../../Tests/LibJS/test-js.cpp)
set_target_properties(test-js_lagom PROPERTIES OUTPUT_NAME test-js)
target_link_libraries(test-js_lagom Lagom)
target_link_libraries(test-js_lagom stdc++)
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 729536a728..3cb4feebc3 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -3,6 +3,7 @@ add_subdirectory(Kernel)
add_subdirectory(LibC)
add_subdirectory(LibCompress)
add_subdirectory(LibGfx)
+add_subdirectory(LibJS)
add_subdirectory(LibM)
add_subdirectory(LibPthread)
add_subdirectory(LibRegex)
diff --git a/Tests/LibJS/CMakeLists.txt b/Tests/LibJS/CMakeLists.txt
new file mode 100644
index 0000000000..11280a0946
--- /dev/null
+++ b/Tests/LibJS/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_executable(test-js test-js.cpp)
+target_link_libraries(test-js LibJS LibLine LibCore)
+install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin)
diff --git a/Userland/Utilities/test-js.cpp b/Tests/LibJS/test-js.cpp
index 94a265520a..94a265520a 100644
--- a/Userland/Utilities/test-js.cpp
+++ b/Tests/LibJS/test-js.cpp
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt
index 67a7056742..c8caada973 100644
--- a/Userland/Utilities/CMakeLists.txt
+++ b/Userland/Utilities/CMakeLists.txt
@@ -45,7 +45,6 @@ target_link_libraries(tar LibArchive LibCompress)
target_link_libraries(telws LibProtocol LibLine)
target_link_libraries(test-crypto LibCrypto LibTLS LibLine)
target_link_libraries(test-fuzz LibCore LibGemini LibGfx LibHTTP LibIPC LibJS LibMarkdown LibShell)
-target_link_libraries(test-js LibJS LibLine LibCore)
target_link_libraries(test-pthread LibThread)
target_link_libraries(tt LibPthread)
target_link_libraries(grep LibRegex)