mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Summary: Enable tests on Windows and make check-fuzzer pass on it. Make check-fuzzer pass on Windows by fixing libFuzzer, fixing tests, and by disabling tests on Windows. Most of these are disabled temporarily as support for the tests and the features they test will be added incrementally. Other tests will not be enabled since they require things that are not on Windows (eg: afl_driver tests). Every test that was explicitly disabled on Windows has a comment explaining why (unless obvious like merge-posix.test). The lit.cfg file was modified to support running tests on windows. fuzzer-dirs.test was fixed by making the Windows implementation print the same error message as the posix version. merge-control-file.test was fixed by making the test binary end with the ".exe" extension (on all platforms). Patch By: metzman Reviewers: morehouse Reviewed By: morehouse Subscribers: srhines, mgorny Differential Revision: https://reviews.llvm.org/D51549 llvm-svn: 341385
26 lines
903 B
Plaintext
26 lines
903 B
Plaintext
XFAIL: ios
|
|
UNSUPPORTED: windows
|
|
RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest
|
|
|
|
RUN: rm -rf %tmp/T1 %tmp/T2
|
|
RUN: mkdir -p %tmp/T1 %tmp/T2
|
|
|
|
RUN: echo F..... > %tmp/T1/1
|
|
RUN: echo .U.... > %tmp/T1/2
|
|
RUN: echo ..Z... > %tmp/T1/3
|
|
|
|
RUN: echo .....F > %tmp/T2/1
|
|
RUN: echo ....U. > %tmp/T2/2
|
|
RUN: echo ...Z.. > %tmp/T2/3
|
|
RUN: echo ...Z.. > %tmp/T2/4
|
|
RUN: echo ....E. > %tmp/T2/5
|
|
RUN: echo .....R > %tmp/T2/6
|
|
|
|
# Check that we can report an error if file size exceeded
|
|
RUN: (ulimit -f 1; not %run %t-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=SIGXFSZ)
|
|
SIGXFSZ: ERROR: libFuzzer: file size exceeded
|
|
|
|
# Check that we honor TMPDIR
|
|
RUN: TMPDIR=DIR_DOES_NOT_EXIST not %run %t-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 2>&1 | FileCheck %s --check-prefix=TMPDIR
|
|
TMPDIR: MERGE-OUTER: failed to write to the control file: DIR_DOES_NOT_EXIST/libFuzzerTemp
|