1
- // REQUIRES: shell
2
- // Also uses awk:
3
- // XFAIL OS=windows
4
-
5
1
// When adding a private protocol method, the interface hash should stay the same
6
2
// The per-type fingerprint should change
7
3
8
4
// RUN: %empty-directory(%t)
9
5
// RUN: %{python} %utils/split_file.py -o %t %s
10
6
// RUN: cp %t/{a,x}.swift
11
7
// RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
12
- // RUN: %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.sh %swift-dependency-tool %t/x.swiftdeps %t/a-processed.swiftdeps
8
+ // RUN: %{python} % S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/a-processed.swiftdeps
13
9
// RUN: cp %t/{b,x}.swift
14
10
// RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
15
- // RUN: %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.sh %swift-dependency-tool %t/x.swiftdeps %t/b-processed.swiftdeps
11
+ // RUN: %{python} % S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.py %swift-dependency-tool %t/x.swiftdeps > %t/b-processed.swiftdeps
16
12
17
- // RUN: not diff %t/{a,b} -processed.swiftdeps >%t/diffs
13
+ // RUN: not diff -u %t/a-processed.swiftdeps %t/b -processed.swiftdeps > %t/diffs
18
14
19
15
20
16
// BEGIN a.swift
@@ -40,17 +36,17 @@ private enum A {
40
36
41
37
// CHECK-SAME-INTERFACE-HASH-NOT: sourceFileProvides
42
38
43
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < topLevel implementation '' A true
44
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < topLevel interface '' A true
45
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > topLevel implementation '' A true
46
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > topLevel interface '' A true
39
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - topLevel implementation '' A true
40
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - topLevel interface '' A true
41
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + topLevel implementation '' A true
42
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + topLevel interface '' A true
47
43
48
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < nominal implementation 4main1A{{[^ ]+}} '' true
49
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < nominal interface 4main1A{{[^ ]+}} '' true
50
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > nominal implementation 4main1A{{[^ ]+}} '' true
51
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > nominal interface 4main1A{{[^ ]+}} '' true
44
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - nominal implementation 4main1A{{[^ ]+}} '' true
45
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - nominal interface 4main1A{{[^ ]+}} '' true
46
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + nominal implementation 4main1A{{[^ ]+}} '' true
47
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + nominal interface 4main1A{{[^ ]+}} '' true
52
48
53
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < potentialMember implementation 4main1A{{[^ ]+}} '' true
54
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: < potentialMember interface 4main1A{{[^ ]+}} '' true
55
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > potentialMember implementation 4main1A{{[^ ]+}} '' true
56
- // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: > potentialMember interface 4main1A{{[^ ]+}} '' true
49
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - potentialMember implementation 4main1A{{[^ ]+}} '' true
50
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: - potentialMember interface 4main1A{{[^ ]+}} '' true
51
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + potentialMember implementation 4main1A{{[^ ]+}} '' true
52
+ // CHECK-DIFFERENT-TYPE-FINGERPRINT-DAG: + potentialMember interface 4main1A{{[^ ]+}} '' true
0 commit comments