Skip to content

Commit

Permalink
set dll path before running tests, copy xlnt dll
Browse files Browse the repository at this point in the history
  • Loading branch information
tfussell committed Mar 11, 2017
1 parent 61bfdc2 commit c2365b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ build:
verbosity: minimal

test_script:
- cd build/tests
- cd build\tests\Debug
- set PATH=C:\projects\xlnt\vcpkg\installed\x86-windows\debug\bin;%PATH%
- xlnt.test.exe
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ node_modules/
#*#
*~
.DS_Store
__pycache__/
Win32/
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,12 @@ add_custom_command(OUTPUT ${RUNNER}
DEPENDS ${TESTS}
COMMENT "Generating test runner ${RUNNER}")

if(NOT STATIC)
add_custom_command(TARGET xlnt.test POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:xlnt>
$<TARGET_FILE_DIR:xlnt.test>)
endif()

add_custom_target(generate-test-runner DEPENDS ${RUNNER})
add_dependencies(xlnt.test generate-test-runner)

0 comments on commit c2365b3

Please sign in to comment.