forked from OSchip/llvm-project
26 lines
1.0 KiB
Mathematica
26 lines
1.0 KiB
Mathematica
|
// REQUIRES: shell
|
||
|
// RUN: rm -rf %t.dir
|
||
|
// RUN: rm -rf %t.cdb
|
||
|
// RUN: mkdir -p %t.dir
|
||
|
// RUN: cp %s %t.dir/subframework_header_dir_symlink.m
|
||
|
// RUN: cp %s %t.dir/subframework_header_dir_symlink2.m
|
||
|
// RUN: mkdir %t.dir/Inputs
|
||
|
// RUN: cp -R %S/Inputs/frameworks %t.dir/Inputs/frameworks
|
||
|
// RUN: ln -s %t.dir/Inputs/frameworks %t.dir/Inputs/frameworks_symlink
|
||
|
// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/subframework_header_dir_symlink_cdb.json > %t.cdb
|
||
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -reuse-filemanager=0 | \
|
||
|
// RUN: FileCheck %s
|
||
|
// FIXME: Make this work when the filemanager is reused:
|
||
|
// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -reuse-filemanager=1 | \
|
||
|
// RUN: not FileCheck %s
|
||
|
|
||
|
#ifndef EMPTY
|
||
|
#include "Framework/Framework.h"
|
||
|
#endif
|
||
|
|
||
|
// CHECK: clang-scan-deps dependency
|
||
|
// CHECK-NEXT: subframework_header_dir_symlink.m
|
||
|
// CHECK: clang-scan-deps dependency
|
||
|
// CHECK-NEXT: subframework_header_dir_symlink.m
|
||
|
// CHECK-NEXT: Inputs{{/|\\}}frameworks_symlink{{/|\\}}Framework.framework{{/|\\}}Headers{{/|\\}}Framework.h
|