blob: 5616f6260b9f2740043117082de1402cdf118ec5 [file] [log] [blame]
Teresa Johnsonbbd10b42016-05-17 14:45:30 +00001; Check that changing the output path via prefix-replace works
Teresa Johnson1e7d4ab2016-05-17 15:26:13 +00002; Use of '/' in paths created here make this unsuitable for Windows.
Kuba Mracek17ee4272017-08-15 20:29:24 +00003; RUN: mkdir -p %t/oldpath
4; RUN: opt -module-summary %s -o %t/oldpath/prefix_replace.o
Teresa Johnsonbbd10b42016-05-17 14:45:30 +00005; Ensure that there is no existing file at the new path, so we properly
6; test the creation of the new file there.
Kuba Mracek17ee4272017-08-15 20:29:24 +00007; RUN: rm -f %t/newpath/prefix_replace.o.thinlto.bc
Teresa Johnsonbbd10b42016-05-17 14:45:30 +00008
Kuba Mracek17ee4272017-08-15 20:29:24 +00009; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t/oldpath/prefix_replace.o
10; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -thinlto-index %t.index.bc %t/oldpath/prefix_replace.o
Teresa Johnsonbbd10b42016-05-17 14:45:30 +000011
Kuba Mracek17ee4272017-08-15 20:29:24 +000012; RUN: ls %t/newpath/prefix_replace.o.thinlto.bc
Teresa Johnsonbbd10b42016-05-17 14:45:30 +000013
14define void @f() {
15entry:
16 ret void
17}