Skip to content

Commit

Permalink
test: Add debug info to ghidra tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Sep 6, 2024
1 parent 31fc3fd commit 485b24d
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion test/ghidra/argc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function argc --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?argc}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/array.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function array --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?array}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/concat.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function string_concat --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?string_concat}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/fib.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function fibonacci --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?fibonacci}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/fread.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function fread_test --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?fread_test}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/fwrite.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function write_file --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?write_file}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/insert.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function insert_substring --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?insert_substring}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/list.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function print_list --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?print_list}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/matrix.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function multiply_matrices --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?multiply_matrices}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/prime.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function is_prime --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?is_prime}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/queue.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function dequeue --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?dequeue}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/reverse.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function reverse_string --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?reverse_string}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/sort.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function sort_test --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?sort_test}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/struct.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function struct_test --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?struct_test}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/structb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function structb --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?structb}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/sub.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function sub --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?sub}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/test.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function test --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?test}}"
Expand Down
2 changes: 1 addition & 1 deletion test/ghidra/union.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: system-windows
// RUN: %cc %s -o %t.o
// RUN: %cc %s -g -o %t.o
// RUN: %decompile-headless --input %t.o --function union_test --output %t
// RUN: %file-check -vv %s --input-file %t
// CHECK: "name":"{{_?union_test}}"
Expand Down

0 comments on commit 485b24d

Please sign in to comment.