Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ usr/
*.sw?
/.deps
/.dirstamp
build/
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ compiler:
- gcc
- clang

before_install: sudo apt-get install -y libtest-differences-perl
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq -y cmake libtest-differences-perl

install: make CC=$CC install
env:
- BUILD_TYPE="Debug"
- BUILD_TYPE="Release"

script: make CC=$CC test

after_script: make uninstall
script:
- mkdir _build
- cd _build
- cmake -DCMAKE_INSTALL_PREFIX="../_install" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" $OPTIONS ..
- cmake --build .
- cmake --build . --target install
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required (VERSION 2.6)
project (tap C)

option (LIBTAP_TESTS "Build libtap tests" OFF)

include_directories (
${CMAKE_CURRENT_SOURCE_DIR})

add_library (tap
tap.c
tap.h)
install (TARGETS tap
DESTINATION lib)
install (FILES tap.h
DESTINATION "include")

if (LIBTAP_TESTS)
enable_testing ()
add_subdirectory (t)
add_test (prove
${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR} prove)
endif ()
72 changes: 0 additions & 72 deletions Makefile

This file was deleted.

37 changes: 0 additions & 37 deletions Makefile.win

This file was deleted.

49 changes: 49 additions & 0 deletions t/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
add_executable (cmp_mem
cmp_mem.c)
target_link_libraries (cmp_mem
tap)

add_executable (cmpok
cmpok.c)
target_link_libraries (cmpok
tap)

add_executable (diesok
diesok.c)
target_link_libraries (diesok
tap)

add_executable (is
is.c)
target_link_libraries (is
tap)

add_executable (like
like.c)
target_link_libraries (like
tap)

add_executable (notediag
notediag.c)
target_link_libraries (notediag
tap)

add_executable (simple
simple.c)
target_link_libraries (simple
tap)

add_executable (skip
skip.c)
target_link_libraries (skip
tap)

add_executable (synopsis
synopsis.c)
target_link_libraries (synopsis
tap)

add_executable (todo
todo.c)
target_link_libraries (todo
tap)