Description: run simple test after compilation
 The test suite can be extended once we add some small and simple bam files.
Author: Dominique Belhachemi <domibel@debian.org>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,8 @@
 # set project name
 project( BamTools )
 
+enable_testing()
+
 # Cmake requirements
 cmake_minimum_required( VERSION 2.6.4 )
 
@@ -65,3 +67,11 @@ include_directories("${CMAKE_BINARY_DIR}
 
 # list subdirectories to build in
 add_subdirectory( src )
+
+add_test(NAME    bamtools_help
+         COMMAND bin/bamtools --help
+)
+
+add_test(NAME    bamtools_stats
+         COMMAND bin/bamtools stats -in ${CMAKE_BINARY_DIR}/../debian/sam_spec_example.bam
+)
