Skip to content

Commit

Permalink
test: do not generate temp files in source dir
Browse files Browse the repository at this point in the history
  • Loading branch information
caballa committed Feb 19, 2024
1 parent 942b86c commit b41adfd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/demo/demo2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: %clam -O0 --crab-print-invariants=false --crab-opt=add-invariants --crab-opt-invariants-loc=all --crab-track=sing-mem "%s".c -o %s.bc
; RUN: %llvm_dis < %s.bc | OutputCheck %s --comment=";"
; RUN: %clam -O0 --crab-print-invariants=false --crab-opt=add-invariants --crab-opt-invariants-loc=all --crab-track=sing-mem "%s".c -o %t.bc
; RUN: %llvm_dis < %t.bc | OutputCheck %s --comment=";"

; ModuleID = '/Users/jorge/Repos/clam14/tests/demo/demo2.bc'
source_filename = "/Users/jorge/Repos/clam14/tests/demo/demo2.c"
Expand Down
4 changes: 2 additions & 2 deletions tests/opt/test-opt-1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: %clam -O0 --crab-dom=int --crab-track=mem --crab-opt=replace-with-constants --devirt-functions=sea-dsa --crab-print-invariants=false --crab-disable-warnings "%s".c -o %s.bc
; RUN: %llvm_dis < %s.bc | OutputCheck %s --comment=";"
; RUN: %clam -O0 --crab-dom=int --crab-track=mem --crab-opt=replace-with-constants --devirt-functions=sea-dsa --crab-print-invariants=false --crab-disable-warnings "%s".c -o %t.bc
; RUN: %llvm_dis < %t.bc | OutputCheck %s --comment=";"

; ModuleID = 'test.bc'
source_filename = "../tests/opt/test-opt-1.c"
Expand Down
4 changes: 2 additions & 2 deletions tests/opt/test-opt-2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: %clam -O0 --crab-inter --crab-dom=int --crab-track=sing-mem --crab-opt=replace-with-constants --devirt-functions=sea-dsa --crab-print-invariants=false --crab-disable-warnings "%s".c -o %s.bc
; RUN: %llvm_dis < %s.bc | OutputCheck %s --comment=";"
; RUN: %clam -O0 --crab-inter --crab-dom=int --crab-track=sing-mem --crab-opt=replace-with-constants --devirt-functions=sea-dsa --crab-print-invariants=false --crab-disable-warnings "%s".c -o %t.bc
; RUN: %llvm_dis < %t.bc | OutputCheck %s --comment=";"


; ModuleID = 'test.bc'
Expand Down
1 change: 1 addition & 0 deletions tests/simple/test-unsigned-cmp-1.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "clam/clam.h"

// RUN: %clam -O0 --inline --crab-lower-unsigned-icmp --crab-check=assert "%s" 2>&1 | OutputCheck %s
// RUN: %clam -O0 --inline --lower-unsigned-icmp --crab-check=assert "%s" 2>&1 | OutputCheck %s
// CHECK: ^2 Number of total safe checks$
// CHECK: ^0 Number of total warning checks$

Expand Down
6 changes: 3 additions & 3 deletions tests/simple/test-unsigned-cmp-2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: clang -O1 -c -emit-llvm %s -o %s.bc
// RUN: %clam --no-preprocess --crab-dom=int --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=int --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: clang -O1 -c -emit-llvm %s -o %t.bc
// RUN: %clam --no-preprocess --crab-dom=int --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=int --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// CHECK: ^0 Number of total safe checks$
// CHECK: ^0 Number of total error checks$
// CHECK: ^1 Number of total warning checks$
Expand Down
6 changes: 3 additions & 3 deletions tests/simple/test-unsigned-cmp-3.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: clang -O1 -c -emit-llvm %s -o %s.bc
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: clang -O1 -c -emit-llvm %s -o %t.bc
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// CHECK: ^1 Number of total safe checks$
// CHECK: ^0 Number of total error checks$
// CHECK: ^0 Number of total warning checks$
Expand Down
6 changes: 3 additions & 3 deletions tests/simple/test-unsigned-cmp-4.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: clang -O1 -c -emit-llvm %s -o %s.bc
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %s.bc 2>&1 | OutputCheck %s
// RUN: clang -O1 -c -emit-llvm %s -o %t.bc
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --crab-lower-unsigned-icmp=true --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// RUN: %clam --no-preprocess --crab-dom=zones --crab-track=mem --crab-heap-analysis=cs-sea-dsa --lower-unsigned-icmp --crab-check=assert %t.bc 2>&1 | OutputCheck %s
// CHECK: ^0 Number of total safe checks$
// CHECK: ^0 Number of total error checks$
// CHECK: ^1 Number of total warning checks$
Expand Down

0 comments on commit b41adfd

Please sign in to comment.