blob: f23bac6cdf849b2453fe50058bd0c2712c80bfa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
RUN: rm -rf %t
RUN: mkdir %t
RUN: llvm-cas --cas %t/cas --make-blob \
RUN: --data - </dev/null
RUN: llvm-cas --cas %t/cas --make-blob \
RUN: --data %s
RUN: llvm-cas --cas %t/cas --dump | FileCheck %s
// check the dump format.
CHECK: index:
CHECK-NEXT: hash-num-bits=
CHECK-NEXT: root addr=
// it should has at least one index
CHECK-NEXT: - index=
// two records
CHECK: record
CHECK-NEXT: - addr=
CHECK-NEXT: - addr=
// both should be small enough to be in data pool
CHECK: pool:
CHECK-NEXT: - addr=
CHECK-NEXT: - addr=
|