summaryrefslogtreecommitdiff
path: root/Tests/CMakeLists.txt
AgeCommit message (Collapse)Author
2023-04-09Tests: Add tests for sed utilityRodrigo Tobar
While the tests for sed itself are simple to begin with, some infrastructure was needed to make them simple. Firstly, there was no home for tests for the applications under Utilities, so I had to create a new subdirectory under Tests to host them. Secondly, and more importantly, there was previously no easy way to launch an executable and easily feed it with data for its stdin, then read its stdout/err and exit code. Looking around the repo I found that the JS tests do a very similar thing though, so I decided to adapt that solution for these tests, but with the higher purpose of someday moving this new Process class to LibCore/Process, where the existing spawn helpers are still very low level, and there is no representation of a Process object that one can easily interact with. Note that this Process implementation is very simple, offers limited functionality, and it doesn't use the EventLoop, so it can break on long inputs/outputs depending on the executable behavior.
2022-12-28Tests: Remove i686 supportLiav A
2022-10-09LibVideo: Add test to ensure that a VP9 WebM file will decodeZaggy1024
This will test decoding of one second of video, to ensure that it can fully decode the entire file.
2022-09-16Tests: Move the former LibM test into the LibC namespaceTim Schumacher
2022-09-05LibLocale: Move locale test files to the LibLocale folderTimothy Flynn
2022-09-02Meta+Tests: Allow running FLAC spec testskleines Filmröllchen
The FLAC "spec tests", or rather the test suite by xiph that exercises weird FLAC features and edge cases, can be found at https://github.com/ietf-wg-cellar/flac-test-files and is a good challenge for our FLAC decoder to become more spec compliant. Running these tests is similar to LibWasm spec tests, you need to pass INCLUDE_FLAC_SPEC_TESTS to CMake. As of integrating these tests, 23 out of 63 fail. :yakplus:
2022-07-19Tests: Move the LibPthread tests to the correct namespaceTim Schumacher
2022-05-30LibXML+Tests: Consume `>` in the character data ending `]]>` and test itLuke Wilde
For example, with this input: ```xml <C>]]> ``` After seeing `<C>`, the parser will start parsing the content of the element. The content parser will then parse any character data it sees. The character parser would see the first two `]]` and consume them. Then, it would see the `>` and set the state machine to say we have seen this, but it did _not_ consume it and would instead tell GenericLexer that it should stop consuming characters. Therefore, we only consumed 2 characters. Then, it would see that we are in the state where we've seen the full `]]>` and try to take off three characters from the end of the consumed input when we only have 2 characters, causing an assertion failure as we are asking to take off more characters than there really is.
2022-03-29Tests: Add a basic UTF-8 to UTF-8 LibTextCodec testKarol Kosek
2022-02-23LibTest+Spreadsheet: Add some basic spreadsheet runtime behaviour testsAli Mohammad Pur
As there's a somewhat active development going on, let's keep the expected behaviour under tests to make sure nothing blows up :^)
2022-01-23LibEDID: Add a library to parse EDID blobsTom
This library can be used (for the most part) by kernel drivers as well as user mode. For this reason FixedPoint is used rather than floating point, but kept to a minimum.
2022-01-11LibTimeZone: Add a unit test for generated time zone dataTimothy Flynn
2022-01-08Tests: Add base structure for LibPDF unit testsSimon Woertz
Add a unit test for each sample pdf file that currently exists in the anon user's `~/Document/pdf` directory. - linear.pdf - non-linearized.pdf - complex.pdf Each test ensures that the pdf document is parsed and that the page count is the expected one.
2021-12-19LibTest: Add `EXPECT_NO_CRASH`Michel Hermier
2021-11-29Tests: Add a simple LibGL render-testHendiadyoin1
At the moment we just check if we *can* render a simple triangle, we do not yet actually test if the image is indeed the triangle we wanted. This test also outputs the rendered image when GL_DEBUG is enabled to a file called "picture.bmp" for manual verification. Co-authored-by: sunverwerth <s.unverwerth@serenityos.org>
2021-10-06Tests: Add LibThreading to CMakeLists.txtJunior Rantila
2021-08-31Tests: Test LibMarkdown against commonmark test suitePeter Elliott
TestCommonmark runs the CommonMark test suite (https://spec.commonmark.org/0.30/spec.json) against LibMarkdown. Currently 44/652 tests pass.
2021-08-14Tests: Re-enable UserspaceEmulator tests on the Clang buildDaniel Bertalan
Now that problems that made UE crash have been fixed, this test should now pass.
2021-08-08Tests: Disable UserspaceEmulator tests for Clang buildsDaniel Bertalan
There seems to be more incorrect assumptions about Clang-built executables' memory layout than expected. These make the CI fail even though the system is functional in all other aspects. While this is being fixed, let's just disable tests for UserspaceEmulator.
2021-07-26LibUnicode: Introduce a Unicode library for interacting with UCD filesTimothy Flynn
The Unicode standard publishes the Unicode Character Database (UCD) with information about every code point, such as each code point's upper case mapping. LibUnicode exists to download and parse UCD files at build time and to provide accessors to that data. As a start, LibUnicode includes upper- and lower-case code point converters.
2021-07-24Tests: Add tests for the quoted printable decoderLuke
2021-07-18Tests: Disable test if platform has no UserspaceEmulatorPeter Bindels
Disable test for component with same check that component itself has.
2021-07-07Tests: Build all tests on x86_64Gunnar Beutner
This builds some previously-disabled tests for x86_64.
2021-06-24Tests: Disable kernel and LibC tests for x86_64Gunnar Beutner
Some of the tests assume 32-bit addresses, so let's disable them for now.
2021-06-19LibCrypto+LibTLS: Split and move test suite into Tests directoryPeter Bocan
This change splits test-crypto.cpp from Userland into separate test suites located in Tests/ directory.
2021-05-21LibWasm+Meta: Add test-wasm and optionally test the conformance testsAli Mohammad Pur
This only tests "can it be parsed", but the goal of this commit is to provide a test framework that can be built upon :) The conformance tests are downloaded, compiled* and installed only if the INCLUDE_WASM_SPEC_TESTS cmake option is enabled. (*) Since we do not yet have a wast parser, the compilation is delegated to an external tool from binaryen, `wasm-as`, which is required for the test suite download/install to succeed. This *does* run the tests in CI, but it currently does not include the spec conformance tests.
2021-05-19LibCpp: Add regression tests for the parserItamar
For each .cpp file in the test suite data, there is a .ast file that represents the "known good" baseline of the parser result. Each .cpp file goes through the parser, and the result of invoking `ASTNode::dump()` on the root node is compared to the baseline to find regressions. We also check that there were no parser errors when parsing the .cpp files.
2021-05-15Tests: Add LibELF testsBrendan Coles
2021-05-12Tests: Add InodeWatcher and FileWatcher testssin-ack
This patch adds some rudimentary tests for InodeWatcher. It tests the basic functionality, but maybe there are corner cases I haven't caught. Additionally, this is our first LibCore test. :^)
2021-05-08Tests: Move Userland/Utilities/test-js to Tests/LibJSBrian Gianforcaro
2021-05-08Tests: Move Userland/Utilities/test-web to Tests/LibWebBrian Gianforcaro
2021-05-06Tests: Move LibRegex tests to Tests/LibRegexBrian Gianforcaro
2021-05-06Tests: Move LibCompress tests to Tests/LibCompressBrian Gianforcaro
2021-05-06Tests: Move LibSQL tests to Tests/LibSQLBrian Gianforcaro
2021-05-06Tests: Move AK tests to Tests/AKBrian Gianforcaro
2021-05-06Tests: Establish root Tests directory, move Userland/Tests thereBrian Gianforcaro
With the goal of centralizing all tests in the system, this is a first step to establish a Tests sub-tree. It will contain all of the unit tests and test harnesses for the various components in the system.