; REQUIRES: shell
; RUN: rm -rf %t.dir
; RUN: mkdir -p %t.dir
; RUN: llc -filetype=obj %s -o %t.dir/foo.o
; RUN: wasm-ld --reproduce=%t.dir/repro.tar -o out.wasm %t.dir/foo.o

; RUN: cd %t.dir
; RUN: tar tf repro.tar | FileCheck --check-prefix=TAR %s

; TAR: repro/response.txt
; TAR: repro/version.txt
; TAR: repro/{{.*}}/foo.o

; RUN: tar xf repro.tar
; RUN: FileCheck --check-prefix=RSP %s < repro/response.txt

; RSP: -o out.wasm
; RSP: {{.*}}/foo.o

; RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt
; VERSION: LLD

target triple = "wasm32-unknown-unknown"

define void @_start() {
  ret void
}

; REQUIRES: shell
; RUN: rm -rf %t.dir
; RUN: mkdir -p %t.dir
; RUN: llc -filetype=obj %s -o %t.dir/foo.o
; RUN: wasm-ld --reproduce=%t.dir/repro.tar -o %t.dir/out.wasm %t.dir/foo.o

; RUN: cd %t.dir
; RUN: tar tf repro.tar | FileCheck --check-prefix=TAR %s

; TAR: repro/response.txt
; TAR: repro/version.txt
; TAR: repro/{{.*}}/foo.o

; RUN: tar xf repro.tar
; RUN: FileCheck --check-prefix=RSP %s < repro/response.txt

; RSP: -o {{.*}}out.wasm
; RSP: {{.*}}/foo.o

; RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt
; VERSION: LLD

target triple = "wasm32-unknown-unknown"

define void @_start() {
  ret void
}

Fix test to put its outputs into the temp directory.
Fix test to put its outputs into the temp directory.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@361297 91177308-0d34-0410-b5e6-96231b3b80d8
