summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-02-22 07:49:04 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-02-23 03:17:12 +0330
commitbed129a69fd1e29808361fba0fa08ed42c8be4d5 (patch)
tree6c796b649fab4b2721999d6401d24205f0990dfe /Meta
parent0fe97cdfe491d4a4e0f8490fb409e1f075b14b3b (diff)
downloadserenity-bed129a69fd1e29808361fba0fa08ed42c8be4d5.zip
LibTest+Spreadsheet: Add some basic spreadsheet runtime behaviour tests
As there's a somewhat active development going on, let's keep the expected behaviour under tests to make sure nothing blows up :^)
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/CMakeLists.txt13
-rwxr-xr-xMeta/build-root-filesystem.sh1
2 files changed, 14 insertions, 0 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index b2c4b10c94..2058f84ace 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -625,6 +625,19 @@ if (BUILD_LAGOM)
lagom_test(../../Tests/LibJS/test-invalid-unicode-js.cpp LIBS LagomJS)
lagom_test(../../Tests/LibJS/test-bytecode-js.cpp LIBS LagomJS)
+ # Spreadsheet
+ add_executable(test-spreadsheet_lagom
+ ../../Tests/Spreadsheet/test-spreadsheet.cpp
+ ../../Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp)
+ set_target_properties(test-spreadsheet_lagom PROPERTIES OUTPUT_NAME test-spreadsheet)
+ target_link_libraries(test-spreadsheet_lagom LagomCore LagomTest LagomJS)
+ add_test(
+ NAME Spreadsheet
+ COMMAND test-spreadsheet_lagom --show-progress=false
+ )
+ set_tests_properties(Spreadsheet PROPERTIES ENVIRONMENT SERENITY_SOURCE_DIR=${SERENITY_PROJECT_ROOT})
+
+
# Markdown
include(commonmark_spec)
file(GLOB LIBMARKDOWN_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibMarkdown/*.cpp")
diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh
index fe26f63944..c8fe60db3b 100755
--- a/Meta/build-root-filesystem.sh
+++ b/Meta/build-root-filesystem.sh
@@ -165,6 +165,7 @@ cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests/parser mnt/home/ano
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests/preprocessor mnt/home/anon/cpp-tests/preprocessor
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWasm/Tests mnt/home/anon/wasm-tests
cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests/test-common.js mnt/home/anon/wasm-tests
+cp -r "$SERENITY_SOURCE_DIR"/Userland/Applications/Spreadsheet/Tests mnt/home/anon/spreadsheet-tests
if [ -n "$SERENITY_COPY_SOURCE" ] ; then
printf "\ncopying Serenity's source... "