Commit Graph

99 Commits

Author SHA1 Message Date
Teddy Reed
41ab6f3161 Organizing osquery python testing
Move /osquery/python_tests/* to /tools/tests
Move test_extensions process controls to test_base module
Use test_base.Testing to implement each module's main()
  - This applies a default argparse with --build
  - test_base.ARGS is the argparse-parsed namespace
  - Use test_base.ARGS.build for the platform-specific dir
Move WatchdogTests to /tools/tests/test_watchdog.py
2015-03-02 16:23:22 -08:00
Teddy Reed
ace433e49d Allow external calls from within registry 2015-02-23 21:35:54 -08:00
Teddy Reed
a29addba61 Extensions integrations testing 2015-02-22 22:56:18 -07:00
Teddy Reed
2529d652be Merge pull request #782 from theopolis/mkdir_generated
Move sync to CMake and remove generated mkdir
2015-02-19 17:56:45 -08:00
Teddy Reed
59a5e017b2 Move sync to CMake and remove generated mkdir 2015-02-19 17:00:43 -08:00
Teddy Reed
5334b9650a Merge pull request #775 from theopolis/sdk_build
Building example extension with SDK
2015-02-19 14:26:48 -08:00
mike@arpaia.co
f3a047fadc add version of osquery to sync tarball
```
[root@localhost vagrant]# make sync
mkdir -p build/sync
rm -rf build/sync/osquery*
cp -R osquery build/sync
cp -R include/osquery build/sync
cp -R build/centos6/sdk/generated/ build/sync/osquery
cp osquery.thrift build/sync/osquery/extensions
find build/sync -type f -name "CMakeLists.txt" -exec rm -f {} \;
mkdir -p build/sync/code-analysis
cd build/sync/code-analysis && SDK=True cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../../../
CMake Warning at CMakeLists.txt:95 (message):
  Requested dependencies may have changed, run: make deps

-- Building for CentOS
-- Found components for DL
-- Found readline library
-- Looking for include files libunwind.h, unwind.h
-- Looking for include files libunwind.h, unwind.h - not found
-- Found RocksDB
-- Thrift version 0.9.1
-- Found library dependency /usr/lib/x86_64-linux-gnu/libboost_thread.a
-- Found library dependency /usr/lib/x86_64-linux-gnu/librt.a
-- Found library dependency /usr/lib/x86_64-linux-gnu/libboost_system.a
-- Found library dependency /usr/lib/x86_64-linux-gnu/libboost_filesystem.a
-- Configuring done
-- Generating done
-- Build files have been written to: /vagrant/build/sync/code-analysis
SDK=True
python tools/codegen/gentargets.py -i build/sync/code-analysis/compile_commands.json > build/sync/osquery/TARGETS
cd build/sync && tar -zcf osquery-sync-1.4.1-29-g472c605.tar.gz osquery
The output file is located at build/sync/osquery-sync-1.4.1-29-g472c605.tar.gz
```
2015-02-19 10:43:08 -08:00
Teddy Reed
451ef686ed Building example extension with SDK 2015-02-18 20:11:00 -08:00
mike@arpaia.co
843fe3a302 syncing sdk with codemod and targets 2015-02-18 09:02:04 -08:00
Javier Marcos
bcad687ea2 Adding support for CentOS 7 2015-02-11 17:19:45 -08:00
Teddy Reed
9eeda1f02c Safer compile flags 2015-02-11 10:45:04 -08:00
Mike Arpaia
e7f0687d40 Update Makefile 2015-02-09 17:31:54 -08:00
Teddy Reed
7597e823c5 Fixing build RC, TestRunnable tests 2015-02-06 09:40:49 -08:00
Teddy Reed
4f10a35f80 Adding thrift extension API 2015-02-06 09:40:49 -08:00
Teddy Reed
ed9bae29b7 Organizing headers/build for SDK 2015-02-03 14:59:32 -08:00
Teddy Reed
d8dddb2712 Add make sanitize 2015-01-31 03:26:28 -08:00
Teddy Reed
c4fb5d45ed Added make analyze (clang-analyze) and fixed output 2015-01-31 03:09:30 -08:00
Javier Marcos
c0398e2cef Different packages for different ubuntus 2015-01-30 14:55:28 -08:00
Teddy Reed
10fafa6299 Support make package 2015-01-10 23:02:32 -08:00
Li-Wen Hsu
b7ffc422c1 Whitespace cleanup 2014-11-17 04:29:50 +08:00
Li-Wen Hsu
daf90d7862 Gnu make under FreeBSD is gmake 2014-11-16 01:41:50 +08:00
Li-Wen Hsu
155b256ac3 Let FreeBSD has its own build dir 2014-11-16 01:41:50 +08:00
Teddy Reed
b419c79791 [Fix #386] This is a hack to fix Ubuntu unwinding 2014-11-12 17:12:37 -07:00
Teddy Reed
b77406b122 [Fix #367] Check RPMTAG class before cast 2014-11-09 02:07:49 -08:00
Teddy Reed
62d6472cfe Rethinking some build improvements 2014-11-08 19:28:35 -08:00
Teddy Reed
c4d659e07e Cleanup linux build dir with distclean 2014-11-03 03:33:22 -08:00
Teddy Reed
eb240ac527 RPM table and more robust Linux building 2014-10-31 21:59:10 -07:00
Teddy Reed
6d50d762ce Changing flag infra, reducing config testing, adding debug macro 2014-10-27 10:30:02 -07:00
Mike Arpaia
a65f8dd046 cleaning up makefile [skip ci] 2014-10-27 10:11:15 -04:00
Teddy Reed
5b2510784e Build into platform-specific build dirs 2014-10-23 14:39:15 -07:00
mike@arpaia.co
3753189e4a improving the makefile output 2014-09-24 01:28:34 -07:00
mike@arpaia.co
beeb6d827f moving make format to cmake 2014-09-23 23:38:23 -07:00
mike@arpaia.co
ba4041f1fd clang format 2014-09-23 22:56:50 -07:00
mike@arpaia.co
7d7e518011 clang-format 2014-09-23 22:22:51 -07:00
mike@arpaia.co
cfe1eb1332 infer bash 2014-09-23 22:19:53 -07:00
mike@arpaia.co
91efb3963f moving packages subdir to deploy 2014-09-23 21:37:55 -07:00
mike@arpaia.co
150ca3378d catchall for cmake targets 2014-09-23 21:27:36 -07:00
mike@arpaia.co
670957ab41 git submodules into provision.sh 2014-09-23 21:22:42 -07:00
mike@arpaia.co
042af0801f build before running tests 2014-09-23 20:36:23 -07:00
mike@arpaia.co
a7eb6694dd Makefile cleanups 2014-09-23 20:34:10 -07:00
mike@arpaia.co
e69007d81a Revert "in source builds"
This reverts commit 28dd7a68f9.
2014-09-23 20:23:03 -07:00
mike@arpaia.co
28dd7a68f9 in source builds 2014-09-23 20:22:07 -07:00
mike@arpaia.co
7ca879215f moving things from Makefile to CMake 2014-09-23 20:12:53 -07:00
mike@arpaia.co
6beb5d1247 Moving table generation to CMake
CMake now handles building all of the generated code.
2014-09-23 17:55:54 -07:00
mike@arpaia.co
e973c856c6 Deb package creation for Ubuntu
I used CPack to generate deb package files from the CMake "install"
target. What this means is, whatever would get installed my "make
install" will get installed by the deb.

"make package" on ubuntu will generate a file named: `osquery-$VERSION-$DISTRO.$ARCH.deb`

Consider the following example:

```
root@vagrant-ubuntu-trusty-64:/vagrant/build# dpkg --info osquery-0.0.1-trusty.amd64.deb
 new debian package, version 2.0.
 size 11311330 bytes: control archive=350 bytes.
     207 bytes,     9 lines      control
     102 bytes,     2 lines      md5sums
 Package: osquery
 Version: 0.0.1
 Section: devel
 Priority: optional
 Architecture: amd64
 Installed-Size: 43369
 Maintainer: marpaia@fb.com
 Description: osquery is an operating system instrumentation toolchain.
```
2014-09-23 17:03:30 -07:00
Teddy Reed
d52248801a Use the standard BUILD_SHARED_LIBS variable 2014-09-22 22:29:44 -06:00
mike@arpaia.co
fc324b929f Revert "build shared by default"
This reverts commit 90703b95f0.
2014-09-22 17:27:57 -07:00
mike@arpaia.co
90703b95f0 build shared by default 2014-09-20 18:53:49 -07:00
mike@arpaia.co
33f2b08e61 adding .sources to distclean 2014-09-20 17:13:17 -07:00
mike@arpaia.co
11e40a6673 make install 2014-09-20 16:48:17 -07:00