Skip to content

Commit

Permalink
Merge pull request LLNL#145 from LLNL/task/host-configs
Browse files Browse the repository at this point in the history
Moves host-configs to root directory and reorganizes test directories
  • Loading branch information
kennyweiss authored Apr 13, 2018
2 parents dd12d36 + a017231 commit b1bbce0
Show file tree
Hide file tree
Showing 37 changed files with 17 additions and 72 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ script:
- cmake --version
- cd $TRAVIS_BUILD_DIR/..
# copy our internal testing project
- cp -r blt/cmake/blt-test .
- cp -r blt/tests/internal blt-test
# create a git repo for blt-test to test the git macros
- cd blt-test
- git init
Expand Down Expand Up @@ -173,6 +173,8 @@ script:
- CMAKE_OPTS="${CMAKE_OPTS} -DMPI_C_COMPILER=mpicc"
- CMAKE_OPTS="${CMAKE_OPTS} -DMPI_CXX_COMPILER=mpicc"
- CMAKE_OPTS="${CMAKE_OPTS} -DMPI_Fortran_COMPILER=mpif90"
# test git macros
- CMAKE_OPTS="${CMAKE_OPTS} -DTEST_GIT_MACROS=ON"
# configure with cmake
- cmake ${CMAKE_OPTS} ../blt-test
# build, link, and triumph
Expand Down
2 changes: 1 addition & 1 deletion SetupBLT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ if (NOT BLT_LOADED)
# BLT smoke tests
################################
if(ENABLE_TESTS)
add_subdirectory(${BLT_ROOT_DIR}/tests ${BLT_BUILD_DIR}/tests)
add_subdirectory(${BLT_ROOT_DIR}/tests/smoke ${BLT_BUILD_DIR}/tests/smoke)
endif()

endif() # only load BLT once!
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ before_build:
# copy blt into blt-test and setup to build there
- ps: cd ..
- mkdir build
- cp -r blt\cmake\blt-test .
- cp -r blt\tests\internal blt-test
# create a git repo for blt-test to test the git macros
- cd blt-test
- git init
Expand Down Expand Up @@ -81,6 +81,7 @@ build_script:
-D MPI_C_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib" ^
-D MPI_CXX_INCLUDE_PATH:PATH="%MPI_HOME%/Include" ^
-D MPI_CXX_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib" ^
-D TEST_GIT_MACROS=ON ^
..\blt-test
- cd ..
#build
Expand Down
25 changes: 0 additions & 25 deletions docs/tutorial/host-configs/[email protected]

This file was deleted.

42 changes: 0 additions & 42 deletions docs/tutorial/host-configs/[email protected]

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 11 additions & 2 deletions cmake/blt-test/CMakeLists.txt → tests/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ project(blt-example LANGUAGES C CXX)
###############################################################################
# Set BLT_SOURCE_DIR to default location, if not set by user
if(NOT BLT_SOURCE_DIR)
set(BLT_SOURCE_DIR "blt")
set(BLT_SOURCE_DIR "${PROJECT_SOURCE_DIR}/../..")
endif()

include(${BLT_SOURCE_DIR}/SetupBLT.cmake)
Expand All @@ -63,6 +63,15 @@ if(WIN32 AND ENABLE_SHARED_LIBS)
add_definitions("-DWIN32_SHARED_LIBS")
endif()


################################
# Project options
################################
option(TEST_GIT_MACROS
"Toggle smoke tests for git macros. Off by default since it requires a modified git repo."
OFF)


################################
# Add a library
################################
Expand Down Expand Up @@ -109,7 +118,7 @@ if(ENABLE_GTEST)
####################
# Git Macros test
####################
if ( GIT_FOUND )
if ( GIT_FOUND AND TEST_GIT_MACROS)

blt_is_git_repo( OUTPUT_STATE is_git_repo
SOURCE_DIR ${PROJECT_SOURCE_DIR} )
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b1bbce0

Please sign in to comment.