tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.

llvm-svn: 81663
This commit is contained in:
Daniel Dunbar 2009-09-13 01:40:48 +00:00
parent 6805006d24
commit f8f547ab6d
9 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
// Test that we can compile .c files as C++ and vice versa
// RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
// RUN: ./%t | grep hello
// RUN: %abs_tmp | grep hello
#include <iostream>

View File

@ -1,6 +1,6 @@
// Test that we can compile C++ code.
// RUN: llvmc %s -o %t
// RUN: ./%t | grep hello
// RUN: %abs_tmp | grep hello
#include <iostream>
int main() {

View File

@ -1,6 +1,6 @@
// Check that we can compile files of different types together.
// RUN: llvmc %s %p/../test_data/together.c -o %t
// RUN: ./%t | grep hello
// RUN: %abs_tmp | grep hello
extern "C" void test();

View File

@ -1,7 +1,7 @@
/*
* Check that we can compile helloworld
* RUN: llvmc %s -o %t
* RUN: ./%t | grep hello
* RUN: %abs_tmp | grep hello
*/
#include <stdio.h>

View File

@ -1,7 +1,7 @@
/*
* Check that the -opt switch works.
* RUN: llvmc %s -opt -o %t
* RUN: ./%t | grep hello
* RUN: %abs_tmp | grep hello
*/
#include <stdio.h>

View File

@ -1,7 +1,7 @@
/*
* Check that the 'sink' options work.
* RUN: llvmc -v -Wall %s -o %t |& grep "Wall"
* RUN: ./%t | grep hello
* RUN: %abs_tmp | grep hello
*/
#include <stdio.h>

View File

@ -1,7 +1,7 @@
/*
* Check that -Wall works as intended
* RUN: llvmc -Wall %s -o %t
* RUN: ./%t | grep hello
* RUN: %abs_tmp | grep hello
*/
#include <stdio.h>

View File

@ -1,6 +1,6 @@
// Test that we can compile Objective-C++ code.
// RUN: llvmc %s -o %t
// RUN: ./%t | grep hello
// RUN: %abs_tmp | grep hello
#include <iostream>
int main() {

View File

@ -1,7 +1,7 @@
/*
* Check that we can compile helloworld
* RUN: llvmc %s -o %t
* RUN: ./%t | grep hello
* RUN: %abs_tmp | grep hello
*/
#include <stdio.h>