Skip to content

Commit

Permalink
Properly test that autolink files on linux are cleaned up.
Browse files Browse the repository at this point in the history
Swift SVN r27644
  • Loading branch information
stormbrew committed Apr 23, 2015
1 parent af38ea1 commit 13b276c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions test/Driver/temp-files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// RUN: ls %t/main
// RUN: ls %t/tmp | FileCheck -check-prefix=EMPTY %s

// XFAIL: linux

// EMPTY-NOT: .{{(o|swiftmodule|swiftdoc)}}

// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
Expand All @@ -25,24 +23,37 @@
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main4 -emit-module-path %t/main4.swiftmodule -g
// RUN: ls %t/main4
// RUN: ls %t/main4.swiftmodule
// RUN: ls %t/main4.dSYM
// RUN: ls %t | FileCheck -check-prefix=MAIN4-%target-object-format %s
// RUN: ls %t/tmp | FileCheck -check-prefix=EMPTY %s

// MAIN4-macho: main4.dSYM
// MAIN4-elf-NOT: .dSYM

// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
// RUN: echo "{\"%s\": {\"object\": \"%t/main5.o\"}}" > %t.json
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main5 -output-file-map %t.json -g
// RUN: ls %t/main5
// RUN: ls %t/main5.o
// RUN: ls %t/main5.dSYM
// RUN: ls %t | FileCheck -check-prefix=MAIN5-%target-object-format %s
// RUN: ls %t/tmp | FileCheck -check-prefix=EMPTY %s

// MAIN5-macho: main5.dSYM
// MAIN5-elf-NOT: .dSYM

// RUN: rm -rf %t && mkdir -p %t/tmp/ && touch %t/tmp/dummy
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -emit-executable %s -o %t/main6 -g -save-temps
// RUN: ls %t/main6
// RUN: ls %t/main6.dSYM
// RUN: ls %t | FileCheck -check-prefix=MAIN6-%target-object-format %s
// RUN: ls %t/tmp | FileCheck -check-prefix=SAVE-TEMPS %s
// RUN: ls %t/tmp | FileCheck -check-prefix=SAVE-TEMPS-%target-object-format %s

// MAIN6-macho: main6.dSYM
// MAIN6-elf-NOT: .dSYM

// SAVE-TEMPS-DAG: temp-files-{{.+}}.o
// SAVE-TEMPS-DAG: temp-files-{{.+}}.swiftmodule
// SAVE-TEMPS-DAG: main6-{{.+}}.swiftmodule
// SAVE-TEMPS-NOT: .{{(o|swiftmodule|swiftdoc)}}

// SAVE-TEMPS-macho-NOT: .autolink
// SAVE-TEMPS-elf: temp-files-{{.+}}.autolink

0 comments on commit 13b276c

Please sign in to comment.