Browse Source

* add t/ subdirectory

master
Alex 'AdUser' Z 9 years ago
parent
commit
9a28f926ce
  1. 2
      CMakeLists.txt
  2. 7
      t/CMakeLists.txt
  3. 8
      t/t_logfile.c

2
CMakeLists.txt

@ -7,3 +7,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_INSTALL_PREFIX "/usr/local")
ADD_SUBDIRECTORY (src)
ADD_SUBDIRECTORY (t)
SET_PROPERTY(DIRECTORY "t" PROPERTY COMPILE_FLAGS "-g;-ggdb;-Wall;-Wextra;-pedantic;-O0")

7
t/CMakeLists.txt

@ -0,0 +1,7 @@
enable_testing()
set(SRC_DIR "../src")
add_executable("t_logfile" "t_logfile.c" "${SRC_DIR}/logfile.c")
add_test("tests/f2b_logfile_*" "t_logfile")

8
t/t_logfile.c

@ -0,0 +1,8 @@
#include <stdlib.h>
#include "../src/common.h"
#include "../src/logfile.h"
int main() {
exit(0);
}
Loading…
Cancel
Save