Skip to content

Commit fcaa3b3

Browse files
authored
Merge pull request #156 from djw8605/unit-test-off-default
Turn off building unit tests by default.
2 parents 02a47e5 + 151c6a8 commit fcaa3b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
asan: [ YES, NO ]
2323

2424
runs-on: ${{ matrix.os }}
25-
name: Build with external_gtest=${{ matrix.external-gtest }} on ${{ matrix.os }}
25+
name: Build with external_gtest=${{ matrix.external-gtest }} on ${{ matrix.os }} and asan=${{ matrix.asan }}
2626

2727
steps:
2828
- uses: actions/checkout@v1
@@ -45,7 +45,7 @@ jobs:
4545
# Note the current convention is to use the -S and -B options here to specify source
4646
# and build directories, but this is only available with CMake 3.13 and higher.
4747
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
48-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSCITOKENS_BUILD_UNITTESTS=yes -DSCITOKENS_EXTERNAL_GTEST=${{ matrix.external-gtest }} -DSCITOKENS_WITH_ASAN=${{ matrix.asan }}
48+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSCITOKENS_BUILD_UNITTESTS=ON -DSCITOKENS_EXTERNAL_GTEST=${{ matrix.external-gtest }} -DSCITOKENS_WITH_ASAN=${{ matrix.asan }}
4949

5050
- name: Build
5151
working-directory: ${{runner.workspace}}/build

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ project( scitokens-cpp
66
VERSION 1.0.2
77
LANGUAGES CXX)
88

9-
option( SCITOKENS_BUILD_UNITTESTS "Build the scitokens-cpp unit tests" ON )
10-
option( SCITOKENS_EXTERNAL_GTEST " Use an external/pre-installed copy of GTest" OFF )
11-
option( SCITOKENS_WITH_ASAN "Build with the address santizier" OFF )
9+
option( SCITOKENS_BUILD_UNITTESTS "Build the scitokens-cpp unit tests" OFF )
10+
option( SCITOKENS_EXTERNAL_GTEST "Use an external/pre-installed copy of GTest" OFF )
11+
option( SCITOKENS_WITH_ASAN "Build with the address sanitizer" OFF )
1212

1313
set( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}" )
1414

0 commit comments

Comments
 (0)