CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
66 lines
2.5 KiB
Plaintext
66 lines
2.5 KiB
Plaintext
RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest
|
|
|
|
RUN: rm -rf %t/T0 %t/T1 %t/T2
|
|
RUN: mkdir -p %t/T0 %t/T1 %t/T2
|
|
RUN: echo F..... > %t/T0/1
|
|
RUN: echo .U.... > %t/T0/2
|
|
RUN: echo ..Z... > %t/T0/3
|
|
|
|
# T1 has 3 elements, T2 is empty.
|
|
RUN: cp %t/T0/* %t/T1/
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=CHECK1
|
|
CHECK1: MERGE-OUTER: 3 files, 3 in the initial corpus
|
|
CHECK1: MERGE-OUTER: 0 new files with 0 new features added
|
|
|
|
RUN: echo ...Z.. > %t/T2/1
|
|
RUN: echo ....E. > %t/T2/2
|
|
RUN: echo .....R > %t/T2/3
|
|
RUN: echo F..... > %t/T2/a
|
|
RUN: echo .U.... > %t/T2/b
|
|
RUN: echo ..Z... > %t/T2/c
|
|
|
|
# T1 has 3 elements, T2 has 6 elements, only 3 are new.
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=CHECK2
|
|
CHECK2: MERGE-OUTER: 9 files, 3 in the initial corpus
|
|
CHECK2: MERGE-OUTER: 3 new files with 3 new features added
|
|
|
|
# Now, T1 has 6 units and T2 has no new interesting units.
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=CHECK3
|
|
CHECK3: MERGE-OUTER: 12 files, 6 in the initial corpus
|
|
CHECK3: MERGE-OUTER: 0 new files with 0 new features added
|
|
|
|
# Check that we respect max_len during the merge and don't crash.
|
|
RUN: rm %t/T1/*
|
|
RUN: cp %t/T0/* %t/T1/
|
|
RUN: echo looooooooong > %t/T2/looooooooong
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 -max_len=6 2>&1 | FileCheck %s --check-prefix=MAX_LEN
|
|
MAX_LEN: MERGE-OUTER: 3 new files
|
|
|
|
# Check that we respect -merge_control_file=FILE
|
|
RUN: rm %t/T1/*
|
|
RUN: cp %t/T0/* %t/T1/
|
|
RUN: rm -f %t/MCF
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 -merge_control_file=%t/MCF %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=MCF
|
|
RUN: grep STARTED %t/MCF
|
|
RUN: grep FT %t/MCF
|
|
MCF: MERGE-INNER: using the control file {{.*}}MCF
|
|
MCF: MERGE-OUTER: 3 new files
|
|
|
|
|
|
# Check that merge tolerates failures.
|
|
RUN: rm %t/T1/*
|
|
RUN: cp %t/T0/* %t/T1/
|
|
RUN: echo 'FUZZER' > %t/T2/FUZZER
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 2>&1 | FileCheck %s --check-prefix=MERGE_WITH_CRASH
|
|
MERGE_WITH_CRASH: MERGE-OUTER: successful in 2 attempt(s)
|
|
MERGE_WITH_CRASH: MERGE-OUTER: 3 new files
|
|
|
|
# Check that we actually limit the size with max_len
|
|
RUN: rm %t/T1/* %t/T2/*
|
|
RUN: echo 'FUZZER' > %t/T2/FUZZER
|
|
RUN: %run %t-FullCoverageSetTest -merge=1 %t/T1 %t/T2 -max_len=5 2>&1 | FileCheck %s --check-prefix=MERGE_LEN5
|
|
RUN: not grep FUZZER %t/T1/*
|
|
RUN: grep FUZZE %t/T1/*
|
|
MERGE_LEN5: MERGE-OUTER: successful in 1 attempt(s)
|
|
|