Skip to content

Commit cea170e

Browse files
committed
Fix cxx-lint tests
1 parent a2eea79 commit cea170e

File tree

10 files changed

+24
-52
lines changed

10 files changed

+24
-52
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ commands:
2828
- run:
2929
name: Run cxxdt-cmake-lint tests
3030
command: test/cmake-lint/run-tests.sh
31-
# test-clang-format:
32-
# description: Run clang-format tests
33-
# steps:
34-
# - run:
35-
# name: Run clang-format tests
36-
# command: test/clang-format/run-tests.sh
31+
test-cxx-lint:
32+
description: Run cxxdt-cxx-lint tests
33+
steps:
34+
- run:
35+
name: Run cxxdt-cxx-lint tests
36+
command: test/cxx-lint/run-tests.sh
3737

3838

3939
jobs:
@@ -51,7 +51,7 @@ jobs:
5151
- checkout-repository
5252
- export-cxx-dev-tools
5353
- test-cmake-lint
54-
# - test-clang-format
54+
- test-cxx-lint
5555

5656

5757
workflows:

cxx/format/cdt-clang-format

Lines changed: 0 additions & 15 deletions
This file was deleted.

cxx/format/cdt-clang-format-check

Lines changed: 0 additions & 7 deletions
This file was deleted.

cxx/format/run-clang-format.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/clang-format/run-tests.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/cxx-lint/run-tests.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
cd ${CXX_DEV_TOOLS_PATH}/test/cxx-lint
4+
5+
# Test 1
6+
cxxdt-cxx-lint samples/valid-format.*
7+
if [ $? -ne 0 ]; then
8+
echo "cxxdt-cxx-lint failed to return 0 on valid cxx samples"
9+
exit 1
10+
fi
11+
12+
# Test 2
13+
cxxdt-cxx-lint samples/invalid-format.* &> /dev/null
14+
if [ $? -eq 0 ]; then
15+
echo "cxxdt-cxx-lint failed to return not 0 on invalid cxx samples"
16+
exit 1
17+
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)