mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 17:06:38 +00:00
[Dexter] Replace clang with clang++ in various cross project tests (#65987)
This patch replaces invocations of clang with clang++ for a set of c++ files in the dexter cross-project tests. As a small additional change, this patch removes -lstdc++ from a test that did not appear to require it.
This commit is contained in:
parent
008040482b
commit
b8fc288c46
@ -1,7 +1,7 @@
|
||||
// REQUIRES: lldb
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %clang -std=gnu++11 -O0 -g -lstdc++ %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
// Radar 8945514
|
||||
|
@ -8,7 +8,7 @@
|
||||
// lldb-8, even outside of dexter, will sometimes trigger an asan fault in
|
||||
// the debugged process and generally freak out.
|
||||
|
||||
// RUN: %clang -std=gnu++11 -O1 -glldb -fsanitize=address -arch x86_64 %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O1 -glldb -fsanitize=address -arch x86_64 %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
#include <deque>
|
||||
|
@ -1,7 +1,7 @@
|
||||
// REQUIRES: lldb
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %clang -std=gnu++11 -O0 -glldb %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O0 -glldb %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// REQUIRES: lldb
|
||||
// UNSUPPORTED: system-windows
|
||||
// RUN: %clang -std=gnu++11 -O0 -g %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -v -- %s
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// REQUIRES: lldb
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: %clang -g -O0 %s -o %t
|
||||
// RUN: %clang++ -g -O0 %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -v -- %s
|
||||
|
||||
|
@ -7,11 +7,11 @@
|
||||
// Zorg configures the ASAN stage2 bots to not build the asan
|
||||
// compiler-rt. Only run this test on non-asanified configurations.
|
||||
//
|
||||
// RUN: %clang -std=gnu++11 -O0 -glldb -fno-exceptions %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O0 -glldb -fno-exceptions %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
//
|
||||
// RUN: %clang -std=gnu++11 -O1 -glldb -fno-exceptions %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O1 -glldb -fno-exceptions %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
// RUN: %clang -std=gnu++11 -O2 -ffast-math -g %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O2 -ffast-math -g %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
// RUN: %clang -std=gnu++11 -O0 -ffast-math -g %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O0 -ffast-math -g %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-windows
|
||||
// UNSUPPORTED: system-darwin
|
||||
|
||||
// RUN: %clang -std=gnu++11 -O2 -g %s -o %t
|
||||
// RUN: %clang++ -std=gnu++11 -O2 -g %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t --debugger 'lldb' -- %s
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: dex_declare_file.cpp
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_program_state.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_step_kinds.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_step_order.cpp:
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
// TODO: Reduce this test's coverage and be more specific about
|
||||
// expected behaviour.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_watch_type.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_watch_value.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_out_range.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_zero_nonmatch.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// The dbgeng driver doesn't support \DexDeclareAddress yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: missing_dex_address.cpp
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable_line_range.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable_on_line.cpp:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// The dbgeng driver doesn't support \DexCommandLine yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_c_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: command_line.c:
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that a \DexDeclareAddress value can have its value defined after
|
||||
// the first reference to that value.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: address_after_ref.cpp
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// expression after the target line has been stepped on a given number of
|
||||
// times.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: address_hit_count.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that a \DexDeclareAddress value can be used to compare the
|
||||
// addresses of two local variables that refer to the same address.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expression_address.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that a \DexDeclareAddress value can be used to compare two equal
|
||||
// pointer variables.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: identical_address.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that multiple \DexDeclareAddress references that point to different
|
||||
// addresses can be used within a single \DexExpectWatchValue.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: multiple_address.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that a \DexDeclareAddress value can be used to compare two pointer
|
||||
// variables that have a fixed offset between them.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: offset_address.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that a \DexDeclareAddress value can be used to check the change in
|
||||
// value of a variable over time, relative to its initial value.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: self_comparison.cpp
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: dex_and_source
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// condition (x == 5) is satisfied.
|
||||
// Tests using the default controller (no \DexLimitSteps).
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: default_conditional.cpp
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
// given number of times.
|
||||
// Tests using the default controller (no \DexLimitSteps).
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: default_conditional_hit_count.cpp
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// specific number of times.
|
||||
// Tests using the default controller (no \DexLimitSteps).
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: default_hit_count.cpp
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// is stepped on.
|
||||
// Tests using the default controller (no \DexLimitSteps).
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: default_simple.cpp
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
// The dbgeng driver doesn't support \DexLimitSteps yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_conditional.cpp
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// The dbgeng driver doesn't support \DexLimitSteps yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_conditional_hit_count.cpp
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
// The dbgeng driver doesn't support \DexLimitSteps yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_hit_count.cpp
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
// The dbgeng driver doesn't support \DexLimitSteps yet.
|
||||
// UNSUPPORTED: system-windows, system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_simple.cpp
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_program_state.cpp:
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
// TODO: The dbgeng debugger does not support column step reporting at present.
|
||||
// XFAIL: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: direction.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: func.cpp:
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// This fails right now on my linux and windows machine, needs examining as to
|
||||
// why.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: func_external.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: recursive.cpp:
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: small_loop.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_step_order.cpp:
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
// in the same manner as LLDB.
|
||||
// XFAIL: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_watch_type.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: expect_watch_value.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_multiple.cpp:
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
// work for both dbgeng and lldb, which output floats differently.
|
||||
// UNSUPPORTED: system-darwin, system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_no_arg.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_small.cpp:
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: float_range_zero_match.cpp:
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that \DexLimitSteps keyword argument hit_count correctly limits
|
||||
// the number of times the command can trigger.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: hit_count.cpp
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check number of step lines are correctly reported in json output.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t --verbose -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_check_json_step_count.cpp
|
||||
// CHECK: ## BEGIN ##
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Check the DexLimit steps only gathers step info for 2 iterations of a
|
||||
// for loop.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_expect_loop.cpp:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Ensure that limited stepping breaks for all expected values.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_expect_value.cpp
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
// doesn't exist. This can happen due to optimisations or label is on an
|
||||
// empty line.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_line_mismatch.cpp
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Ensure that multiple overlapping \DexLimitSteps ranges do not interfere.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_overlapping_ranges.cpp
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Test that LimitStep commands can exist on the same from line.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: limit_steps_same_line_conditional.cpp
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Test that \DexLimitSteps can be used without a condition (i.e. the
|
||||
// breakpoint range is set any time from_line is stepped on).
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unconditional.cpp
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable_not_cmd_lineno.cpp:
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// UNSUPPORTED: system-darwin
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: unreachable_on_line.cpp:
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
// The dbgeng driver doesn't support \DexLimitSteps yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s
|
||||
|
||||
// CHECK: Resolved Addresses:
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check that referencing an undefined label gives a useful error message.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
|
||||
//
|
||||
// CHECK: parser error:{{.*}}err_bad_label_ref.cpp(15): Unresolved label: 'label_does_not_exist'
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check that declaring duplicate addresses gives a useful error message.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check that defining duplicate labels gives a useful error message.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
|
||||
//
|
||||
// CHECK: parser error:{{.*}}err_duplicate_label.cpp(12): Found duplicate line label: 'oops'
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger 'lldb' \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger "lldb" \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger "lldb" \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger "lldb" \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger "lldb" \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Note: Despite using 'lldb' as the debugger, lldb is not actually required
|
||||
// as the test should finish before lldb would be invoked.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_base test --binary %t --debugger "lldb" \
|
||||
// RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check that using an undeclared address gives a useful error message.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Check that the optional keyword argument 'on_line' makes a \DexLabel label
|
||||
// that line instead of the line the command is found on.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
|
||||
// CHECK: label_another_line.cpp: (1.0000)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check that we can use label-relative line numbers.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s
|
||||
//
|
||||
// CHECK: label_offset.cpp: (1.0000)
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This test started failing recently for unknown reasons.
|
||||
// XFAIL:*
|
||||
// RUN: %dexter_regression_test_build \
|
||||
// RUN: %dexter_regression_test_cxx_build \
|
||||
// RUN: -fdebug-prefix-map=%S=/changed %s -o %t
|
||||
// RUN: %dexter --fail-lt 1.0 -w \
|
||||
// RUN: --binary %t \
|
||||
|
@ -1,7 +1,7 @@
|
||||
// The dbgeng driver doesn't support --target-run-args yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_c_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t --target-run-args "a b 'c d'" -- %s | FileCheck %s
|
||||
// CHECK: target_run_args.c:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// The dbgeng driver doesn't support --target-run-args yet.
|
||||
// UNSUPPORTED: system-windows
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_c_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t --target-run-args "a b 'c d'" -- %s | FileCheck %s
|
||||
// CHECK: target_run_args_with_command.c:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Purpose:
|
||||
// Check the `view` subtool works with typical inputs.
|
||||
//
|
||||
// RUN: %dexter_regression_test_build %s -o %t
|
||||
// RUN: %dexter_regression_test_cxx_build %s -o %t
|
||||
// RUN: %dexter_regression_test_run --binary %t --results %t.results -- %s
|
||||
//
|
||||
// RUN: %dexter_base view %t.results/view.cpp.dextIR | FileCheck %s
|
||||
|
@ -131,18 +131,31 @@ def configure_dexter_substitutions():
|
||||
if platform.system() == "Windows":
|
||||
# The Windows builder script uses lld.
|
||||
dependencies = ["clang", "lld-link"]
|
||||
dexter_regression_test_builder = "clang-cl"
|
||||
dexter_regression_test_c_builder = "clang-cl"
|
||||
dexter_regression_test_cxx_builder = "clang-cl"
|
||||
dexter_regression_test_debugger = "dbgeng"
|
||||
dexter_regression_test_flags = "/Zi /Od"
|
||||
dexter_regression_test_c_flags = "/Zi /Od"
|
||||
dexter_regression_test_cxx_flags = "/Zi /Od"
|
||||
dexter_regression_test_additional_flags = ""
|
||||
else:
|
||||
# Use lldb as the debugger on non-Windows platforms.
|
||||
dependencies = ["clang", "lldb"]
|
||||
dexter_regression_test_builder = "clang++"
|
||||
dexter_regression_test_c_builder = "clang"
|
||||
dexter_regression_test_cxx_builder = "clang++"
|
||||
dexter_regression_test_debugger = "lldb"
|
||||
dexter_regression_test_flags = "-O0 -glldb -std=gnu++11"
|
||||
dexter_regression_test_c_flags = "-O0 -glldb -std=gnu11"
|
||||
dexter_regression_test_cxx_flags = "-O0 -glldb -std=gnu++11"
|
||||
dexter_regression_test_additional_flags = '--lldb-executable "{}"'.format(
|
||||
lldb_path
|
||||
)
|
||||
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_builder", dexter_regression_test_builder)
|
||||
ToolSubst("%dexter_regression_test_c_builder", dexter_regression_test_c_builder)
|
||||
)
|
||||
tools.append(
|
||||
ToolSubst(
|
||||
"%dexter_regression_test_cxx_builder", dexter_regression_test_cxx_builder
|
||||
)
|
||||
)
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_debugger", dexter_regression_test_debugger)
|
||||
@ -151,7 +164,10 @@ def configure_dexter_substitutions():
|
||||
# regression tests we use clang to drive the linker, and so all flags will be
|
||||
# passed in a single command.
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_flags", dexter_regression_test_flags)
|
||||
ToolSubst("%dexter_regression_test_c_flags", dexter_regression_test_c_flags)
|
||||
)
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_cxx_flags", dexter_regression_test_cxx_flags)
|
||||
)
|
||||
|
||||
# Typical command would take the form:
|
||||
@ -165,18 +181,30 @@ def configure_dexter_substitutions():
|
||||
"--fail-lt 1.0 -w",
|
||||
"--debugger",
|
||||
dexter_regression_test_debugger,
|
||||
dexter_regression_test_additional_flags,
|
||||
]
|
||||
)
|
||||
tools.append(ToolSubst("%dexter_regression_test_run", dexter_regression_test_run))
|
||||
|
||||
# Include build flags for %dexter_regression_test.
|
||||
dexter_regression_test_build = " ".join(
|
||||
dexter_regression_test_c_build = " ".join(
|
||||
[
|
||||
dexter_regression_test_builder,
|
||||
dexter_regression_test_flags,
|
||||
dexter_regression_test_c_builder,
|
||||
dexter_regression_test_c_flags,
|
||||
]
|
||||
)
|
||||
tools.append(ToolSubst("%dexter_regression_test_build", dexter_regression_test_build))
|
||||
dexter_regression_test_cxx_build = " ".join(
|
||||
[
|
||||
dexter_regression_test_cxx_builder,
|
||||
dexter_regression_test_cxx_flags,
|
||||
]
|
||||
)
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_c_build", dexter_regression_test_c_build)
|
||||
)
|
||||
tools.append(
|
||||
ToolSubst("%dexter_regression_test_cxx_build", dexter_regression_test_cxx_build)
|
||||
)
|
||||
return dependencies
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user