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
47 lines
2.6 KiB
Objective-C
47 lines
2.6 KiB
Objective-C
// NetBSD: noatime mounts currently inhibit 'touch -a' updates
|
|
// UNSUPPORTED: system-netbsd
|
|
|
|
// Test the automatic pruning of module cache entries.
|
|
#ifdef IMPORT_DEPENDS_ON_MODULE
|
|
@import DependsOnModule;
|
|
#else
|
|
@import Module;
|
|
#endif
|
|
|
|
// Clear out the module cache
|
|
// RUN: rm -rf %t
|
|
// Run Clang twice so we end up creating the timestamp file (the second time).
|
|
// RUN: %clang_cc1 -DIMPORT_DEPENDS_ON_MODULE -Wno-private-module -fmodules-ignore-macro=DIMPORT_DEPENDS_ON_MODULE -fmodules -fimplicit-module-maps -F %S/Inputs -fmodules-cache-path=%t %s -verify
|
|
// RUN: %clang_cc1 -DIMPORT_DEPENDS_ON_MODULE -Wno-private-module -fmodules-ignore-macro=DIMPORT_DEPENDS_ON_MODULE -fmodules -fimplicit-module-maps -F %S/Inputs -fmodules-cache-path=%t %s -verify
|
|
// RUN: ls %t | grep modules.timestamp
|
|
// RUN: ls -R %t | grep ^Module.*pcm
|
|
// RUN: ls -R %t | grep DependsOnModule.*pcm
|
|
|
|
// Set the timestamp back more than two days. We should try to prune,
|
|
// but nothing gets pruned because the module files are new enough.
|
|
// RUN: touch -m -a -t 201101010000 %t/modules.timestamp
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -Wno-private-module -F %S/Inputs -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
|
|
// RUN: ls %t | grep modules.timestamp
|
|
// RUN: ls -R %t | grep ^Module.*pcm
|
|
// RUN: ls -R %t | grep DependsOnModule.*pcm
|
|
|
|
// Set the DependsOnModule access time back more than four days.
|
|
// This shouldn't prune anything, because the timestamp has been updated, so
|
|
// the pruning mechanism won't fire.
|
|
// RUN: find %t -name DependsOnModule*.pcm | sed -e 's/\\/\//g' | xargs touch -a -t 201101010000
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -F %S/Inputs -Wno-private-module -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
|
|
// RUN: ls %t | grep modules.timestamp
|
|
// RUN: ls -R %t | grep ^Module.*pcm
|
|
// RUN: ls -R %t | grep DependsOnModule.*pcm
|
|
|
|
// Set both timestamp and DependsOnModule.pcm back beyond the cutoff.
|
|
// This should trigger pruning, which will remove DependsOnModule but not Module.
|
|
// RUN: touch -m -a -t 201101010000 %t/modules.timestamp
|
|
// RUN: find %t -name DependsOnModule*.pcm | sed -e 's/\\/\//g' | xargs touch -a -t 201101010000
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -F %S/Inputs -Wno-private-module -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
|
|
// RUN: ls %t | grep modules.timestamp
|
|
// RUN: ls -R %t | grep ^Module.*pcm
|
|
// RUN: ls -R %t | not grep DependsOnModule.*pcm
|
|
|
|
// expected-no-diagnostics
|