Skip to content

Commit b6d2212

Browse files
Tom WeaverTom Weaver
authored andcommitted
[Dexter] Add support for Windows to regression test suite.
This patch addresses the issue of the regression suite not running on windows hardware. It changes the following things: * add new dexter regression suite command to lit.cfg.py that makes use of the clang-cl_vs2015 and dbgend builder and debuggers. * sprinkle the new regressionsuite command through the feature and tool tests that require them. * mark certain problem tests on windows * [revert fix] fixed darwin regression test failures by adding unsupported line for system-darwin to command tests. There's a couple of tests that fail (or pass) in unexpected ways on Windows. Problem tests are both the penalty and perfect expect_watch_type.cpp tests. Type information reporting parity is not possible a this time in dexter due to the nature of how different debuggers report type information back to their users. reviewers: Orlando Differential Revision: https://reviews.llvm.org/D76609
1 parent d30e9ad commit b6d2212

18 files changed

+81
-71
lines changed

debuginfo-tests/dexter/feature_tests/commands/penalty/expect_program_state.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
// Check that \DexExpectProgramState correctly applies a penalty when
33
// an expected program state is never found.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -glldb" -- %s \
9-
// RUN: | FileCheck %s
7+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
108
// CHECK: expect_program_state.cpp:
119

1210
int GCD(int lhs, int rhs)

debuginfo-tests/dexter/feature_tests/commands/penalty/expect_step_kinds.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
// Check that \DexExpectStepKind correctly applies a penalty when
33
// unexpected step kinds are encountered.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
9-
// RUN: | FileCheck %s
7+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
108
// CHECK: expect_step_kinds.cpp:
119

1210
int abs(int i){

debuginfo-tests/dexter/feature_tests/commands/penalty/expect_step_order.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
// Check that \DexExpectStepOrder correctly applies a penalty for steps
33
// found out of expected order.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
9-
// RUN: | FileCheck %s
7+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
108
// CHECK: expect_step_order.cpp:
119

1210
int main()

debuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_type.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
// Check that \DexExpectWatchType applies penalties when expected
33
// types are not found and unexpected types are.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
9-
// RUN: | FileCheck %s
7+
//
8+
// NOTE: This test passes but not in the expected way on Windows.
9+
// TODO: Reduce this test's coverage and be more specific about
10+
// expected behaviour.
11+
//
12+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
1013
// CHECK: expect_watch_type.cpp:
1114

1215
template<class T>

debuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_value.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Check that \DexExpectWatchValue correctly applies a penalty when
33
// expected values are not found.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
9-
// RUN: | FileCheck %s
7+
//
8+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
109
// CHECK: expect_watch_value.cpp:
1110

1211
int main()

debuginfo-tests/dexter/feature_tests/commands/penalty/unreachable.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Check that \DexUnreachable correctly applies a penalty if the command
33
// line is stepped on.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: not %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
9-
// RUN: | FileCheck %s
7+
//
8+
// RUN: not %dexter_regression_test -- %s | FileCheck %s
109
// CHECK: unreachable.cpp:
1110

1211
int

debuginfo-tests/dexter/feature_tests/commands/perfect/expect_program_state.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// Check that \DexExpectWatchValue applies no penalties when expected
33
// program states are found.
44
//
5-
// REQUIRES: system-linux, lldb
5+
// UNSUPPORTED: system-darwin
66
//
7-
// RUN: %dexter_base test --fail-lt 1.0 -w \
8-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -glldb" -- %s \
9-
// RUN: | FileCheck %s
7+
//
8+
// RUN: %dexter_regression_test -- %s | FileCheck %s
109
// CHECK: expect_program_state.cpp:
1110

1211
int GCD(int lhs, int rhs)

debuginfo-tests/dexter/feature_tests/commands/perfect/expect_step_kind/direction.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
// 'VERTICAL_FORWARD' for every step onto a greater source line number in
66
// the same function.
77
//
8-
// REQUIRES: system-linux, lldb
8+
// UNSUPPORTED: system-darwin
99
//
10-
// RUN: %dexter_base test --fail-lt 1.0 -w \
11-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
12-
// RUN: | FileCheck %s
10+
// TODO: The dbgeng debugger does not support column step reporting at present.
11+
// XFAIL: system-windows
12+
//
13+
// RUN: %dexter_regression_test -- %s | FileCheck %s
1314
// CHECK: direction.cpp:
1415

1516
int func(int i) {

debuginfo-tests/dexter/feature_tests/commands/perfect/expect_step_kind/func.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
// trivial test. Expect one 'FUNC' per call to a function which is defined
44
// in one of the source files in the test directory.
55
//
6-
// REQUIRES: system-linux, lldb
6+
// UNSUPPORTED: system-darwin
77
//
8-
// RUN: %dexter_base test --fail-lt 1.0 -w \
9-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
10-
// RUN: | FileCheck %s
8+
// RUN: %dexter_regression_test -- %s | FileCheck %s
119
// CHECK: func.cpp:
1210

1311
int func(int i) {

debuginfo-tests/dexter/feature_tests/commands/perfect/expect_step_kind/func_external.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// Check that \DexExpectStepKind correctly counts 'FUNC_EXTERNAL' steps
33
// for a trivial test. Expect one 'FUNC_EXTERNAL' per external call.
44
//
5-
// REQUIRES: system-linux, lldb
6-
// XFAIL: system-linux
7-
// This fails right now on my linux machine, needs examining as to why.
5+
// UNSUPPORTED: system-darwin
86
//
9-
// RUN: %dexter --fail-lt 1.0 -w \
10-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
11-
// RUN: | FileCheck %s
7+
// XFAIL:*
8+
// This fails right now on my linux and windows machine, needs examining as to
9+
// why.
10+
//
11+
// RUN: %dexter_regression_test -- %s | FileCheck %s
1212
// CHECK: func_external.cpp:
1313

1414
#include <cstdlib>

0 commit comments

Comments
 (0)