Skip to content

Instantly share code, notes, and snippets.

@zwass
Created March 17, 2016 21:28
Show Gist options
  • Save zwass/7b49919e55ed7f3834fa to your computer and use it in GitHub Desktop.
Save zwass/7b49919e55ed7f3834fa to your computer and use it in GitHub Desktop.
$ make clean && make distclean && make deps && make -j2 && make test
cd build/precise && cmake ../../ && \
CTEST_OUTPUT_ON_FAILURE=1 make clean --no-print-directory
-- Requested dependencies may have changed, run: make deps
-- Building for platform Ubuntu (ubuntu, precise)
-- Building osquery version 1.0.3-2313-g81109ef sdk 1.0.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/osquery/build/precise
rm -rf .sources build/precise build/debug_precise build/docs
rm -rf build/linux
./tools/provision.sh build build/precise
[+] detected ubuntu (precise)
Adding repository: ppa:ubuntu-toolchain-r/test
gpg: keyring `/tmp/tmptsStsO/secring.gpg' created
gpg: keyring `/tmp/tmptsStsO/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmptsStsO/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [55.5 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [141 kB]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Get:4 http://security.ubuntu.com precise-security/universe Sources [45.7 kB]
Hit http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Translation-en
Get:5 http://security.ubuntu.com precise-security/main amd64 Packages [600 kB]
Hit http://archive.ubuntu.com precise Release.gpg
Get:6 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.ubuntu.com precise Release
Get:7 http://archive.ubuntu.com precise-updates Release [55.4 kB]
Hit http://archive.ubuntu.com precise-backports Release
Get:8 http://security.ubuntu.com precise-security/universe amd64 Packages [129 kB]
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Get:9 http://security.ubuntu.com precise-security/main i386 Packages [656 kB]
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Get:10 http://security.ubuntu.com precise-security/universe i386 Packages [137 kB]
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Get:11 http://archive.ubuntu.com precise-updates/main Sources [495 kB]
Get:12 http://archive.ubuntu.com precise-updates/restricted Sources [8,708 B]
Get:13 http://archive.ubuntu.com precise-updates/universe Sources [124 kB]
Get:14 http://archive.ubuntu.com precise-updates/multiverse Sources [10.2 kB]
Get:15 http://archive.ubuntu.com precise-updates/main amd64 Packages [984 kB]
Get:16 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [16.2 kB]
Get:17 http://archive.ubuntu.com precise-updates/universe amd64 Packages [272 kB]
Get:18 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [16.9 kB]
Get:19 http://archive.ubuntu.com precise-updates/main i386 Packages [1,045 kB]
Get:20 http://archive.ubuntu.com precise-updates/restricted i386 Packages [16.1 kB]
Get:21 http://archive.ubuntu.com precise-updates/universe i386 Packages [282 kB]
Get:22 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [17.1 kB]
Get:23 http://archive.ubuntu.com precise-updates/main TranslationIndex [208 B]
Get:24 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]
Get:25 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]
Get:26 http://archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Get:27 http://archive.ubuntu.com precise-updates/main Translation-en [414 kB]
Get:28 http://archive.ubuntu.com precise-updates/multiverse Translation-en [9,806 B]
Get:29 http://archive.ubuntu.com precise-updates/restricted Translation-en [3,869 B]
Get:30 http://archive.ubuntu.com precise-updates/universe Translation-en [164 kB]
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Fetched 5,701 kB in 24s (231 kB/s)
Reading package lists... Done
[+] git is already installed. skipping.
[+] wget is already installed. skipping.
[+] unzip is already installed. skipping.
[+] build-essential is already installed. skipping.
[+] flex is already installed. skipping.
[+] devscripts is already installed. skipping.
[+] debhelper is already installed. skipping.
[+] python-pip is already installed. skipping.
[+] python-dev is already installed. skipping.
[+] ruby-dev is already installed. skipping.
[+] gcc is already installed. skipping.
[+] doxygen is already installed. skipping.
[+] autopoint is already installed. skipping.
[+] libssl-dev is already installed. skipping.
[+] liblzma-dev is already installed. skipping.
[+] uuid-dev is already installed. skipping.
[+] libpopt-dev is already installed. skipping.
[+] libdpkg-dev is already installed. skipping.
[+] libudev-dev is already installed. skipping.
[+] libblkid-dev is already installed. skipping.
[+] libbz2-dev is already installed. skipping.
[+] libreadline-dev is already installed. skipping.
[+] libcurl4-openssl-dev is already installed. skipping.
[+] gcc-4.8 is already installed. skipping.
[+] g++-4.8 is already installed. skipping.
[+] clang-3.4 is already installed. skipping.
[+] clang-format-3.4 is already installed. skipping.
[+] rubygems is already installed. skipping.
[+] autotools-dev is already installed. skipping.
[+] Removing: autoconf is not installed. skipping.
[+] Removing: automake is not installed. skipping.
[+] Removing: libtool is not installed. skipping.
[+] pkg-config is already installed. skipping.
[+] autoconf is already installed. skipping provision.
[+] automake is already installed. skipping provision.
[+] libtool is already installed. skipping provision.
[+] cmake is already installed. skipping provision.
[+] boost is already installed. skipping provision.
[+] gflags is already installed. skipping provision.
[+] glog is already installed. skipping provision.
[+] benchmark is already installed. skipping provision.
[+] fpm is already installed. skipping.
[+] bison is already installed. skipping.
[+] snappy is already installed. skipping provision.
[+] thrift is already installed. skipping provision.
[+] rocksdb is already installed. skipping provision.
[+] yara is already installed. skipping provision.
[+] asio is already installed. skipping provision.
[+] cppnetlib is already installed. skipping provision.
[+] sleuthkit is already installed. skipping provision.
[+] installing libgcrypt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgcrypt11-dev' instead of 'libgcrypt-dev'
libgcrypt11-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
[+] libdevmapper-dev is already installed. skipping.
[+] libaudit-dev is already installed. skipping.
[+] libmagic-dev is already installed. skipping.
[+] libaptpkg is already installed. skipping provision.
[+] iptables_dev is already installed. skipping provision.
[+] libcryptsetup is already installed. skipping provision.
The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/vagrant/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/vagrant/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): Jinja2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): thrift in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): psutil in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): pexpect in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 8))
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/local/lib/python2.7/dist-packages (from Jinja2->-r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /usr/local/lib/python2.7/dist-packages (from pexpect->-r requirements.txt (line 8))
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
HEAD is now at fa21e04 SQLite 3.12.0 pre-release: 721ae51e
Submodule 'third-party' () registered for path 'third-party'
cd build/precise && cmake ../../ && \
CTEST_OUTPUT_ON_FAILURE=1 make --no-print-directory --jobserver-fds=3,4 -j
-- The C compiler identification is Clang 3.4.0
-- The CXX compiler identification is Clang 3.4.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building for platform Ubuntu (ubuntu, precise)
-- Building osquery version 1.0.3-2313-g81109ef sdk 1.0.3
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
-- Found library /usr/lib/x86_64-linux-gnu/libdl.so
-- Found library /usr/lib/x86_64-linux-gnu/libreadline.so
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1")
-- Looking for SSLv3_client_method in /usr/lib/x86_64-linux-gnu/libssl.so
-- Looking for SSLv3_client_method in /usr/lib/x86_64-linux-gnu/libssl.so - found
-- Looking for TLSv1_2_client_method in /usr/lib/x86_64-linux-gnu/libssl.so
-- Looking for TLSv1_2_client_method in /usr/lib/x86_64-linux-gnu/libssl.so - found
-- Looking for TLSv1_1_client_method in /usr/lib/x86_64-linux-gnu/libssl.so
-- Looking for TLSv1_1_client_method in /usr/lib/x86_64-linux-gnu/libssl.so - found
-- Looking for TLSv1_client_method in /usr/lib/x86_64-linux-gnu/libssl.so
-- Looking for TLSv1_client_method in /usr/lib/x86_64-linux-gnu/libssl.so - found
-- Found library /usr/local/lib/libgflags.a
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found library /usr/local/lib/libthrift.a
-- Found library /usr/local/lib/librocksdb_lite.a
-- Found library /usr/local/lib/libsnappy.a
-- Found library /usr/lib/x86_64-linux-gnu/librt.so
-- Found library /usr/local/lib/libglog.a
-- Found library /usr/local/lib/libboost_system.a
-- Found library /usr/local/lib/libboost_filesystem.a
-- Found library /usr/local/lib/libboost_regex.a
-- Found library /usr/local/lib/libyara.a
-- Found library /usr/local/lib/libcppnetlib-uri.a
-- Found library /usr/local/lib/libcppnetlib-client-connections.a
-- Found library /usr/lib/x86_64-linux-gnu/libudev.a
-- Found library /usr/lib/libaudit.a
-- Found Libdpkg: 1.16.1.2
-- Found library /usr/local/lib/libapt-pkg.a
-- Found library /usr/lib/libdpkg.a
-- Found library /usr/lib/x86_64-linux-gnu/liblzma.so
-- Found library /usr/local/lib/libcryptsetup.a
-- Found library /usr/lib/libdevmapper.so
-- Found library /lib/x86_64-linux-gnu/libgcrypt.so
-- Found library /usr/lib/x86_64-linux-gnu/libresolv.so
-- Found library /usr/lib/x86_64-linux-gnu/libblkid.a
-- Found library /usr/lib/x86_64-linux-gnu/libuuid.so
-- Found library /usr/local/lib/libip4tc.a
-- Found library /usr/lib/libmagic.so
-- Found library /usr/local/lib/libtsk.a
-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/osquery/build/precise
Scanning dependencies of target osquery_sqlite
Scanning dependencies of target gtest
[ 1%] Building CXX object third-party/gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 1%] Building C object third-party/sqlite3/CMakeFiles/osquery_sqlite.dir/sqlite3.c.o
Linking CXX static library libgtest.a
[ 1%] Built target gtest
[ 2%] Generating ../../generated/gen-cpp/Extension.cpp, ../../generated/gen-cpp/Extension.h, ../../generated/gen-cpp/ExtensionManager.cpp, ../../generated/gen-cpp/ExtensionManager.h, ../../generated/gen-cpp/osquery_types.cpp, ../../generated/gen-cpp/osquery_types.h
Scanning dependencies of target osquery_extensions
[ 2%] Building CXX object osquery/extensions/CMakeFiles/osquery_extensions.dir/__/__/generated/gen-cpp/Extension.cpp.o
[ 2%] Building CXX object osquery/extensions/CMakeFiles/osquery_extensions.dir/__/__/generated/gen-cpp/ExtensionManager.cpp.o
[ 3%] Building CXX object osquery/extensions/CMakeFiles/osquery_extensions.dir/__/__/generated/gen-cpp/osquery_types.cpp.o
[ 3%] Building CXX object osquery/extensions/CMakeFiles/osquery_extensions.dir/extensions.cpp.o
[ 3%] Built target osquery_sqlite
Scanning dependencies of target gtest_main
[ 3%] Building CXX object third-party/gtest-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
Linking CXX static library libgtest_main.a
[ 3%] Built target gtest_main
[ 4%] Building CXX object osquery/extensions/CMakeFiles/osquery_extensions.dir/interface.cpp.o
[ 4%] Built target osquery_extensions
[ 5%] Scanning dependencies of target osquery_config_plugins
Generating ../generated/tables_additional/apt_sources.cpp
[ 5%] Generating ../generated/tables_additional/yara_events.cpp
[ 5%] Generating ../generated/tables_additional/etc_hosts.cpp
[ 6%] Generating ../generated/tables_additional/process_open_files.cpp
[ 6%] Generating ../generated/tables_additional/etc_services.cpp
[ 6%] Generating ../generated/tables_additional/usb_devices.cpp
[ 7%] Generating ../generated/tables_additional/dns_resolvers.cpp
[ 7%] Generating ../generated/tables_additional/system_info.cpp
[ 8%] Generating ../generated/tables_additional/processes.cpp
[ 8%] Building CXX object osquery/config/CMakeFiles/osquery_config_plugins.dir/plugins/tls.cpp.o
[ 8%] Generating ../generated/tables_additional/groups.cpp
[ 8%] Generating ../generated/tables_additional/disk_encryption.cpp
[ 9%] Generating ../generated/tables_additional/device_file.cpp
[ 9%] Generating ../generated/tables_additional/interface_details.cpp
[ 9%] Generating ../generated/tables_additional/file_events.cpp
[ 10%] Generating ../generated/tables_additional/logged_in_users.cpp
[ 10%] Generating ../generated/tables_additional/crontab.cpp
[ 11%] Generating ../generated/tables_additional/yara.cpp
[ 11%] Generating ../generated/tables_additional/platform_info.cpp
[ 11%] Generating ../generated/tables_additional/user_groups.cpp
[ 12%] Generating ../generated/tables_additional/device_hash.cpp
[ 12%] Generating ../generated/tables_additional/known_hosts.cpp
[ 12%] Generating ../generated/tables_additional/uptime.cpp
[ 13%] Generating ../generated/tables_additional/process_envs.cpp
[ 13%] Generating ../generated/tables_additional/os_version.cpp
[ 14%] Generating ../generated/tables_additional/suid_bin.cpp
[ 14%] Generating ../generated/tables_additional/last.cpp
[ 14%] Generating ../generated/tables_additional/arp_cache.cpp
[ 15%] Generating ../generated/tables_additional/process_open_sockets.cpp
[ 15%] Generating ../generated/tables_additional/example.cpp
Blacklisting generated /home/vagrant/osquery/build/precise/generated/tables_additional/example.cpp
[ 15%] Generating ../generated/tables_additional/opera_extensions.cpp
[ 16%] Generating ../generated/tables_additional/shell_history.cpp
[ 16%] Generating ../generated/tables_additional/block_devices.cpp
[ 17%] Generating ../generated/tables_additional/firefox_addons.cpp
[ 17%] Generating ../generated/tables_additional/authorized_keys.cpp
[ 17%] Generating ../generated/tables_additional/process_events.cpp
[ 18%] Generating ../generated/tables_additional/system_controls.cpp
[ 18%] Generating ../generated/tables_additional/smbios_tables.cpp
[ 18%] Generating ../generated/tables_additional/users.cpp
[ 19%] Generating ../generated/tables_additional/magic.cpp
[ 19%] Generating ../generated/tables_additional/routes.cpp
[ 20%] Generating ../generated/tables_additional/listening_ports.cpp
[ 20%] Generating ../generated/tables_additional/interface_addresses.cpp
[ 20%] Generating ../generated/tables_additional/acpi_tables.cpp
[ 21%] Generating ../generated/tables_additional/cpuid.cpp
[ 21%] Generating ../generated/tables_additional/hardware_events.cpp
[ 21%] Generating ../generated/tables_additional/etc_protocols.cpp
[ 22%] Generating ../generated/tables_additional/chrome_extensions.cpp
[ 22%] Generating ../generated/tables_additional/pci_devices.cpp
[ 23%] Generating ../generated/tables_additional/kernel_info.cpp
[ 23%] Generating ../generated/tables_additional/process_memory_map.cpp
[ 23%] Generating ../generated/tables_additional/mounts.cpp
[ 24%] Generating ../generated/tables_additional/device_partitions.cpp
[ 24%] Generating ../generated/tables_additional/msr.cpp
[ 24%] Generating ../generated/tables_additional/iptables.cpp
[ 25%] Generating ../generated/tables_additional/cpu_time.cpp
[ 25%] Generating ../generated/tables_additional/kernel_modules.cpp
[ 26%] Generating ../generated/tables_additional/socket_events.cpp
[ 26%] Generating ../generated/tables_additional/memory_map.cpp
[ 26%] Generating ../generated/tables_additional/kernel_integrity.cpp
[ 27%] Generating ../generated/tables_additional/shared_memory.cpp
[ 27%] Generating ../generated/tables_additional/user_events.cpp
[ 27%] Generating ../generated/tables_additional/deb_packages.cpp
[ 28%] Generating ../generated/additional_amalgamation.cpp
Scanning dependencies of target osquery_additional_amalgamation
[ 28%] Building CXX object osquery/CMakeFiles/osquery_additional_amalgamation.dir/__/generated/additional_amalgamation.cpp.o
[ 28%] Built target osquery_additional_amalgamation
Scanning dependencies of target osquery_database_plugins
[ 29%] Building CXX object osquery/database/CMakeFiles/osquery_database_plugins.dir/plugins/sqlite.cpp.o
[ 29%] Building CXX object osquery/config/CMakeFiles/osquery_config_plugins.dir/plugins/filesystem.cpp.o
[ 29%] Building CXX object osquery/database/CMakeFiles/osquery_database_plugins.dir/plugins/rocksdb.cpp.o
[ 30%] Building CXX object osquery/config/CMakeFiles/osquery_config_plugins.dir/update.cpp.o
[ 30%] Built target osquery_config_plugins
Scanning dependencies of target osquery_devtools
[ 31%] Building CXX object osquery/devtools/CMakeFiles/osquery_devtools.dir/printer.cpp.o
[ 31%] Built target osquery_database_plugins
Scanning dependencies of target osquery_dispatcher_runners
[ 31%] Building CXX object osquery/dispatcher/CMakeFiles/osquery_dispatcher_runners.dir/scheduler.cpp.o
[ 31%] Built target osquery_devtools
Scanning dependencies of target osquery_distributed_plugins
[ 31%] Building CXX object osquery/distributed/CMakeFiles/osquery_distributed_plugins.dir/plugins/tls.cpp.o
[ 32%] Building CXX object osquery/dispatcher/CMakeFiles/osquery_dispatcher_runners.dir/distributed.cpp.o
[ 32%] Built target osquery_dispatcher_runners
Scanning dependencies of target osquery_events_linux
[ 32%] Building CXX object osquery/events/CMakeFiles/osquery_events_linux.dir/linux/udev.cpp.o
[ 33%] Building CXX object osquery/events/CMakeFiles/osquery_events_linux.dir/linux/kernel_util.cpp.o
[ 33%] Building CXX object osquery/events/CMakeFiles/osquery_events_linux.dir/linux/audit.cpp.o
[ 33%] Built target osquery_distributed_plugins
Scanning dependencies of target osquery_events_kernel
[ 33%] Building CXX object osquery/events/CMakeFiles/osquery_events_kernel.dir/kernel.cpp.o
[ 33%] Building CXX object osquery/events/CMakeFiles/osquery_events_linux.dir/linux/inotify.cpp.o
[ 34%] Building CXX object osquery/events/CMakeFiles/osquery_events_kernel.dir/kernel/circular_queue_user.cpp.o
[ 34%] Built target osquery_events_kernel
Scanning dependencies of target osquery_logger_plugins
[ 34%] Building CXX object osquery/logger/CMakeFiles/osquery_logger_plugins.dir/plugins/syslog.cpp.o
[ 34%] Built target osquery_events_linux
Scanning dependencies of target osquery_remote
[ 34%] Building CXX object osquery/remote/CMakeFiles/osquery_remote.dir/enroll/enroll.cpp.o
[ 34%] Building CXX object osquery/logger/CMakeFiles/osquery_logger_plugins.dir/plugins/tls.cpp.o
[ 35%] Building CXX object osquery/remote/CMakeFiles/osquery_remote.dir/serializers/json.cpp.o
[ 35%] Building CXX object osquery/remote/CMakeFiles/osquery_remote.dir/transports/tls.cpp.o
[ 36%] Building CXX object osquery/logger/CMakeFiles/osquery_logger_plugins.dir/plugins/filesystem.cpp.o
[ 36%] Built target osquery_logger_plugins
Scanning dependencies of target osquery_enrollment_plugins
[ 37%] Building CXX object osquery/remote/CMakeFiles/osquery_enrollment_plugins.dir/enroll/plugins/tls.cpp.o
[ 38%] Building CXX object osquery/remote/CMakeFiles/osquery_remote.dir/remote.cpp.o
[ 38%] Built target osquery_remote
Scanning dependencies of target osquery_sql_internal
[ 38%] Building CXX object osquery/sql/CMakeFiles/osquery_sql_internal.dir/sqlite_util.cpp.o
[ 38%] Built target osquery_enrollment_plugins
Scanning dependencies of target osquery_tables
[ 39%] Building CXX object osquery/sql/CMakeFiles/osquery_sql_internal.dir/virtual_table.cpp.o
[ 39%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/applications/browser_chrome.cpp.o
[ 40%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/applications/browser_firefox.cpp.o
[ 40%] Built target osquery_sql_internal
Scanning dependencies of target osquery_tables_ubuntu
[ 40%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_ubuntu.dir/system/ubuntu/deb_packages.cpp.o
[ 40%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/applications/browser_opera.cpp.o
/home/vagrant/osquery/osquery/tables/system/ubuntu/deb_packages.cpp:160:38: warning: missing field 'integer' initializer [-Wmissing-field-initializers]
{FIELD("Package"), f_name, w_name},
^
/home/vagrant/osquery/osquery/tables/system/ubuntu/deb_packages.cpp:162:59: warning: missing field 'integer' initializer [-Wmissing-field-initializers]
{FIELD("Architecture"), f_architecture, w_architecture},
^
/home/vagrant/osquery/osquery/tables/system/ubuntu/deb_packages.cpp:165:47: warning: missing field 'integer' initializer [-Wmissing-field-initializers]
{FIELD("Revision"), f_revision, w_revision},
^
/home/vagrant/osquery/osquery/tables/system/ubuntu/deb_packages.cpp:166:10: warning: missing field 'rcall' initializer [-Wmissing-field-initializers]
{NULL}};
^
4 warnings generated.
[ 41%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_ubuntu.dir/system/ubuntu/apt_sources.cpp.o
[ 42%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/applications/browser_utils.cpp.o
[ 42%] Built target osquery_tables_ubuntu
Scanning dependencies of target osquery_tables_linux
[ 42%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/networking/linux/arp_cache.cpp.o
[ 42%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/crontab.cpp.o
[ 42%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/networking/linux/routes.cpp.o
[ 42%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/authorized_keys.cpp.o
[ 43%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/networking/linux/process_open_sockets.cpp.o
[ 44%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/logged_in_users.cpp.o
[ 44%] [ 44%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/suid_bin.cpp.o
Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/networking/linux/iptables.cpp.o
[ 44%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/smbios_utils.cpp.o
[ 44%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/events/linux/hardware_events.cpp.o
[ 45%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/shell_history.cpp.o
[ 46%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/events/linux/file_events.cpp.o
[ 46%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/magic.cpp.o
[ 46%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/events/linux/user_events.cpp.o
[ 47%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/uptime.cpp.o
[ 47%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/events/linux/process_events.cpp.o
[ 47%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/system_utils.cpp.o
[ 47%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/known_hosts.cpp.o
[ 48%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/events/linux/socket_events.cpp.o
[ 49%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/system_controls.cpp.o
[ 49%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/shared_memory.cpp.o
[ 49%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/cpuid.cpp.o
[ 50%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/model_specific_register.cpp.o
[ 50%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/system/last.cpp.o
[ 50%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/user_groups.cpp.o
[ 51%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/etc_services.cpp.o
[ 51%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/mounts.cpp.o
[ 51%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/dns_resolvers.cpp.o
[ 52%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/cpu_time.cpp.o
[ 53%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/interfaces.cpp.o
[ 53%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/block_devices.cpp.o
[ 53%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/etc_protocols.cpp.o
[ 53%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/utils.cpp.o
[ 53%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/disk_encryption.cpp.o
[ 54%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/listening_ports.cpp.o
[ 55%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/pci_devices.cpp.o
[ 55%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/networking/etc_hosts.cpp.o
[ 55%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/events/event_utils.cpp.o
[ 55%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/sysctl_utils.cpp.o
[ 56%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/system_info.cpp.o
[ 57%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/events/process_file_events.cpp.o
[ 57%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/usb_devices.cpp.o
[ 57%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/events/yara_events.cpp.o
[ 57%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/processes.cpp.o
[ 58%] Building CXX object osquery/tables/CMakeFiles/osquery_tables.dir/forensic/sleuthkit.cpp.o
[ 59%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/smbios_tables.cpp.o
[ 59%] Built target osquery_tables
Scanning dependencies of target osquery_utils
[ 60%] Building CXX object osquery/tables/CMakeFiles/osquery_utils.dir/other/yara.cpp.o
[ 60%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/memory_map.cpp.o
[ 60%] Building CXX object osquery/tables/CMakeFiles/osquery_utils.dir/other/yara_utils.cpp.o
[ 60%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/kernel_modules.cpp.o
[ 61%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/process_open_files.cpp.o
[ 61%] Built target osquery_utils
Scanning dependencies of target osquery_tables_utility
[ 61%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_utility.dir/utility/osquery.cpp.o
[ 61%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/kernel_integrity.cpp.o
[ 61%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_utility.dir/utility/hash.cpp.o
[ 62%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/users.cpp.o
[ 63%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_utility.dir/utility/file.cpp.o
[ 63%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/os_version.cpp.o
[ 63%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_utility.dir/utility/time.cpp.o
[ 63%] Built target osquery_tables_utility
Scanning dependencies of target osquery_config
[ 63%] Building CXX object osquery/config/CMakeFiles/osquery_config.dir/config.cpp.o
[ 63%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/groups.cpp.o
[ 63%] Building CXX object osquery/config/CMakeFiles/osquery_config.dir/packs.cpp.o
[ 64%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/acpi_tables.cpp.o
[ 64%] Built target osquery_config
Scanning dependencies of target osquery_config_parsers
[ 65%] Building CXX object osquery/config/CMakeFiles/osquery_config_parsers.dir/parsers/options.cpp.o
[ 65%] Building CXX object osquery/tables/CMakeFiles/osquery_tables_linux.dir/system/linux/kernel_info.cpp.o
[ 65%] Built target osquery_tables_linux
Scanning dependencies of target osquery_core
[ 65%] Building CXX object osquery/config/CMakeFiles/osquery_config_parsers.dir/parsers/file_paths.cpp.o
[ 65%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/conversions.cpp.o
[ 65%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/init.cpp.o
[ 66%] Building CXX object osquery/config/CMakeFiles/osquery_config_parsers.dir/parsers/events.cpp.o
[ 67%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/system.cpp.o
[ 67%] Built target osquery_config_parsers
Scanning dependencies of target osquery_database
[ 68%] Building CXX object osquery/database/CMakeFiles/osquery_database.dir/database.cpp.o
[ 68%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/tables.cpp.o
[ 68%] Building CXX object osquery/database/CMakeFiles/osquery_database.dir/query.cpp.o
[ 68%] Building CXX object osquery/database/CMakeFiles/osquery_database.dir/plugins/ephemeral.cpp.o
[ 69%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/flags.cpp.o
[ 69%] Built target osquery_database
Scanning dependencies of target osquery_dispatcher
[ 69%] Building CXX object osquery/dispatcher/CMakeFiles/osquery_dispatcher.dir/dispatcher.cpp.o
[ 69%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/hash.cpp.o
[ 69%] Built target osquery_dispatcher
Scanning dependencies of target osquery_distributed
[ 69%] Building CXX object osquery/core/CMakeFiles/osquery_core.dir/watcher.cpp.o
[ 69%] Building CXX object osquery/distributed/CMakeFiles/osquery_distributed.dir/distributed.cpp.o
[ 69%] Built target osquery_core
Scanning dependencies of target osquery_events
[ 69%] Building CXX object osquery/events/CMakeFiles/osquery_events.dir/events.cpp.o
[ 69%] Built target osquery_distributed
Scanning dependencies of target osquery_filesystem_linux
[ 69%] Building CXX object osquery/filesystem/CMakeFiles/osquery_filesystem_linux.dir/linux/mem.cpp.o
[ 70%] Building CXX object osquery/filesystem/CMakeFiles/osquery_filesystem_linux.dir/linux/proc.cpp.o
[ 70%] Built target osquery_events
Scanning dependencies of target osquery_filesystem
[ 70%] Building CXX object osquery/filesystem/CMakeFiles/osquery_filesystem.dir/filesystem.cpp.o
[ 70%] Built target osquery_filesystem_linux
Scanning dependencies of target osquery_logger
[ 71%] Building CXX object osquery/logger/CMakeFiles/osquery_logger.dir/logger.cpp.o
[ 71%] Built target osquery_filesystem
Scanning dependencies of target osquery_registry
[ 71%] Built target osquery_logger
Scanning dependencies of target osquery_sql
[ 71%] Building CXX object osquery/registry/CMakeFiles/osquery_registry.dir/registry.cpp.o
[ 71%] Building CXX object osquery/sql/CMakeFiles/osquery_sql.dir/sql.cpp.o
[ 71%] Built target osquery_sql
[ 72%] Generating ../generated/tables_utils/osquery_packs.cpp
[ 72%] Generating ../generated/tables_utils/osquery_events.cpp
[ 73%] Generating ../generated/tables_utils/osquery_extensions.cpp
[ 73%] Generating ../generated/tables_utils/hash.cpp
[ 74%] Generating ../generated/tables_utils/osquery_info.cpp
[ 74%] Generating ../generated/tables_utils/osquery_registry.cpp
[ 74%] Generating ../generated/tables_utils/osquery_schedule.cpp
[ 75%] Generating ../generated/tables_utils/file.cpp
[ 75%] Generating ../generated/tables_utils/time.cpp
[ 75%] Generating ../generated/tables_utils/osquery_flags.cpp
[ 75%] Generating ../generated/utils_amalgamation.cpp
Scanning dependencies of target osquery_amalgamation
[ 75%] Building CXX object osquery/CMakeFiles/osquery_amalgamation.dir/__/generated/utils_amalgamation.cpp.o
[ 75%] Built target osquery_registry
Scanning dependencies of target libosquery_additional
Linking CXX static library libosquery_additional.a
[ 75%] Built target libosquery_additional
[ 75%] Built target osquery_amalgamation
Scanning dependencies of target libosquery
[ 75%] Building CXX object osquery/CMakeFiles/libosquery.dir/main/lib.cpp.o
Linking CXX static library libosquery.a
[ 75%] Built target libosquery
Scanning dependencies of target daemon
Scanning dependencies of target example_extension
[ 76%] Building CXX object osquery/CMakeFiles/example_extension.dir/examples/example_extension.cpp.o
[ 76%] Building CXX object osquery/CMakeFiles/daemon.dir/main/daemon.cpp.o
Linking CXX executable osqueryd
Linking CXX executable example_extension.ext
[ 76%] Built target example_extension
Scanning dependencies of target libosquery_testing
[ 77%] Building CXX object osquery/CMakeFiles/libosquery_testing.dir/core/test_util.cpp.o
[ 77%] Built target daemon
Scanning dependencies of target modexample
[ 77%] Building CXX object osquery/CMakeFiles/modexample.dir/examples/example_module.cpp.o
Linking CXX shared library libmodexample.so
[ 77%] Built target modexample
Scanning dependencies of target osquery_library
-- Built libosquery: /home/vagrant/osquery/build/precise/libosquery.a
[ 77%] Built target osquery_library
Scanning dependencies of target shell
[ 78%] Building CXX object osquery/CMakeFiles/shell.dir/devtools/shell.cpp.o
Linking CXX static library libosquery_testing.a
[ 78%] Built target libosquery_testing
Scanning dependencies of target osquery_additional_tests
[ 78%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/main/tests.cpp.o
[ 78%] Building CXX object osquery/CMakeFiles/shell.dir/main/shell.cpp.o
[ 79%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/config/tests/packs_tests.cpp.o
Linking CXX executable osqueryi
[ 79%] Built target shell
Scanning dependencies of target osquery_benchmarks
[ 80%] Building CXX object osquery/CMakeFiles/osquery_benchmarks.dir/main/benchmarks.cpp.o
[ 80%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/config/parsers/tests/file_paths_tests.cpp.o
[ 80%] Building CXX object osquery/CMakeFiles/osquery_benchmarks.dir/database/benchmarks/database_benchmarks.cpp.o
[ 81%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/config/parsers/tests/events_tests.cpp.o
[ 81%] Building CXX object osquery/CMakeFiles/osquery_benchmarks.dir/events/benchmarks/events_benchmarks.cpp.o
[ 81%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/config/parsers/tests/options_tests.cpp.o
[ 82%] Building CXX object osquery/CMakeFiles/osquery_benchmarks.dir/sql/benchmarks/sql_benchmarks.cpp.o
[ 82%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/database/tests/plugin_tests.cpp.o
Linking CXX executable osquery_benchmarks
[ 83%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/database/plugins/tests/sqlite_tests.cpp.o
[ 83%] Built target osquery_benchmarks
Scanning dependencies of target osquery_kernel_benchmarks
[ 83%] Building CXX object osquery/CMakeFiles/osquery_kernel_benchmarks.dir/main/benchmarks.cpp.o
[ 83%] Building CXX object osquery/CMakeFiles/osquery_kernel_benchmarks.dir/events/kernel/benchmarks/kernel_communication_benchmarks.cpp.o
[ 83%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/database/plugins/tests/rocksdb_tests.cpp.o
Linking CXX executable osquery_kernel_benchmarks
[ 83%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/devtools/tests/printer_tests.cpp.o
[ 83%] Built target osquery_kernel_benchmarks
Scanning dependencies of target osquery_kernel_tests
[ 84%] Building CXX object osquery/CMakeFiles/osquery_kernel_tests.dir/main/tests.cpp.o
[ 85%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/dispatcher/tests/scheduler_tests.cpp.o
[ 85%] Building CXX object osquery/CMakeFiles/osquery_kernel_tests.dir/events/kernel/tests/kernel_communication_tests.cpp.o
[ 85%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/distributed/tests/distributed_tests.cpp.o
Linking CXX executable osquery_kernel_tests
[ 85%] Built target osquery_kernel_tests
Scanning dependencies of target osquery_tables_tests
[ 85%] Building CXX object osquery/CMakeFiles/osquery_tables_tests.dir/main/tests.cpp.o
[ 86%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/events/linux/tests/inotify_tests.cpp.o
[ 87%] Building CXX object osquery/CMakeFiles/osquery_tables_tests.dir/tables/networking/linux/tests/iptables_tests.cpp.o
[ 87%] Building CXX object osquery/CMakeFiles/osquery_tables_tests.dir/tables/networking/tests/networking_tables_tests.cpp.o
[ 87%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/events/linux/tests/audit_tests.cpp.o
[ 88%] Building CXX object osquery/CMakeFiles/osquery_tables_tests.dir/tables/events/tests/file_events_tests.cpp.o
[ 88%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/logger/plugins/tests/filesystem_logger_tests.cpp.o
[ 89%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/logger/plugins/tests/tls_logger_tests.cpp.o
[ 89%] Building CXX object osquery/CMakeFiles/osquery_tables_tests.dir/tables/system/tests/system_tables_tests.cpp.o
[ 89%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/remote/tests/requests_tests.cpp.o
Linking CXX executable osquery_tables_tests
[ 89%] Built target osquery_tables_tests
Scanning dependencies of target osquery_tests
[ 90%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/main/tests.cpp.o
[ 90%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/config/tests/config_tests.cpp.o
[ 90%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/remote/transports/tests/tls_transports_tests.cpp.o
[ 90%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/tables_tests.cpp.o
[ 91%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/conversions_tests.cpp.o
[ 91%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/flags_tests.cpp.o
[ 91%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/status_tests.cpp.o
[ 92%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/remote/serializers/tests/json_serializers_tests.cpp.o
[ 93%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/hash_tests.cpp.o
[ 93%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/core/tests/permissions_tests.cpp.o
[ 93%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/remote/enroll/tests/enroll_tests.cpp.o
[ 94%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/database/tests/database_tests.cpp.o
[ 95%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/sql/tests/virtual_table_tests.cpp.o
[ 95%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/database/tests/results_tests.cpp.o
[ 95%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/sql/tests/sql_tests.cpp.o
[ 95%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/database/tests/query_tests.cpp.o
[ 95%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/sql/tests/sqlite_util_tests.cpp.o
[ 96%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/database/tests/plugin_tests.cpp.o
[ 97%] Building CXX object osquery/CMakeFiles/osquery_additional_tests.dir/tables/other/tests/yara_tests.cpp.o
[ 97%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/dispatcher/tests/dispatcher_tests.cpp.o
[ 97%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/events/tests/events_tests.cpp.o
Linking CXX executable osquery_additional_tests
[ 97%] Built target osquery_additional_tests
[ 98%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/events/tests/events_database_tests.cpp.o
[ 98%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/extensions/tests/extensions_tests.cpp.o
[100%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/filesystem/tests/filesystem_tests.cpp.o
[100%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/logger/tests/logger_tests.cpp.o
[100%] Building CXX object osquery/CMakeFiles/osquery_tests.dir/registry/tests/registry_tests.cpp.o
Linking CXX executable osquery_tests
[100%] Built target osquery_tests
cd build/precise && cmake ../../ && \
CTEST_OUTPUT_ON_FAILURE=1 make --no-print-directory test
-- Building for platform Ubuntu (ubuntu, precise)
-- Building osquery version 1.0.3-2313-g81109ef sdk 1.0.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/osquery/build/precise
Running tests...
Test project /home/vagrant/osquery/build/precise
Start 1: osquery_tests
1/9 Test #1: osquery_tests ....................***Failed 0.14 sec
[==========] Running 140 tests from 18 test cases.
[----------] Global test environment set-up.
[----------] 12 tests from ConfigTests
[ RUN ] ConfigTests.test_plugin
[ OK ] ConfigTests.test_plugin (1 ms)
[ RUN ] ConfigTests.test_invalid_content
[ OK ] ConfigTests.test_invalid_content (0 ms)
[ RUN ] ConfigTests.test_strip_comments
[ OK ] ConfigTests.test_strip_comments (1 ms)
[ RUN ] ConfigTests.test_schedule_blacklist
[ OK ] ConfigTests.test_schedule_blacklist (0 ms)
[ RUN ] ConfigTests.test_pack_noninline
[ OK ] ConfigTests.test_pack_noninline (1 ms)
[ RUN ] ConfigTests.test_pack_restrictions
/home/vagrant/osquery/osquery/config/tests/config_tests.cpp:182: Failure
Value of: pack->shouldPackExecute()
Actual: false
Expected: true
[ FAILED ] ConfigTests.test_pack_restrictions (0 ms)
[ RUN ] ConfigTests.test_pack_removal
[ OK ] ConfigTests.test_pack_removal (1 ms)
[ RUN ] ConfigTests.test_content_update
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0317 21:23:28.295641 12855 packs.cpp:284] Discovery query failed (select * from osquery_info;): Cannot call registry item: sql
W0317 21:23:28.296864 12855 options.cpp:51] Cannot set unknown or invalid flag: enable_monitor
W0317 21:23:28.298156 12855 options.cpp:51] Cannot set unknown or invalid flag: enable_monitor
[ OK ] ConfigTests.test_content_update (1 ms)
[ RUN ] ConfigTests.test_get_scheduled_queries
/home/vagrant/osquery/osquery/config/tests/config_tests.cpp:236: Failure
Value of: getUnrestrictedPack().get_child("queries").size()
Actual: 1
Expected: queries.size()
Which is: 0
[ FAILED ] ConfigTests.test_get_scheduled_queries (0 ms)
[ RUN ] ConfigTests.test_get_parser
[ OK ] ConfigTests.test_get_parser (2 ms)
[ RUN ] ConfigTests.test_plugin_reconfigure
[ OK ] ConfigTests.test_plugin_reconfigure (0 ms)
[ RUN ] ConfigTests.test_pack_file_paths
/home/vagrant/osquery/osquery/config/tests/config_tests.cpp:325: Failure
Value of: 2U
Actual: 2
Expected: count
Which is: 0
[ FAILED ] ConfigTests.test_pack_file_paths (1 ms)
[----------] 12 tests from ConfigTests (8 ms total)
[----------] 5 tests from TablesTests
[ RUN ] TablesTests.test_constraint
[ OK ] TablesTests.test_constraint (0 ms)
[ RUN ] TablesTests.test_constraint_list
[ OK ] TablesTests.test_constraint_list (0 ms)
[ RUN ] TablesTests.test_constraint_matching
[ OK ] TablesTests.test_constraint_matching (0 ms)
[ RUN ] TablesTests.test_constraint_map
[ OK ] TablesTests.test_constraint_map (0 ms)
[ RUN ] TablesTests.test_caching
[ OK ] TablesTests.test_caching (0 ms)
[----------] 5 tests from TablesTests (1 ms total)
[----------] 8 tests from ConversionsTests
[ RUN ] ConversionsTests.test_conversion
[ OK ] ConversionsTests.test_conversion (0 ms)
[ RUN ] ConversionsTests.test_base64
[ OK ] ConversionsTests.test_base64 (0 ms)
[ RUN ] ConversionsTests.test_ascii_true
[ OK ] ConversionsTests.test_ascii_true (0 ms)
[ RUN ] ConversionsTests.test_ascii_false
[ OK ] ConversionsTests.test_ascii_false (0 ms)
[ RUN ] ConversionsTests.test_unicode_unescape
[ OK ] ConversionsTests.test_unicode_unescape (0 ms)
[ RUN ] ConversionsTests.test_split
[ OK ] ConversionsTests.test_split (0 ms)
[ RUN ] ConversionsTests.test_join
[ OK ] ConversionsTests.test_join (0 ms)
[ RUN ] ConversionsTests.test_split_occurences
[ OK ] ConversionsTests.test_split_occurences (0 ms)
[----------] 8 tests from ConversionsTests (0 ms total)
[----------] 6 tests from FlagsTests
[ RUN ] FlagsTests.test_set_get
[ OK ] FlagsTests.test_set_get (0 ms)
[ RUN ] FlagsTests.test_defaults
[ OK ] FlagsTests.test_defaults (0 ms)
[ RUN ] FlagsTests.test_details
[ OK ] FlagsTests.test_details (1 ms)
[ RUN ] FlagsTests.test_flag_detail_types
[ OK ] FlagsTests.test_flag_detail_types (0 ms)
[ RUN ] FlagsTests.test_aliases
[ OK ] FlagsTests.test_aliases (0 ms)
[ RUN ] FlagsTests.test_alias_types
[ OK ] FlagsTests.test_alias_types (0 ms)
[----------] 6 tests from FlagsTests (1 ms total)
[----------] 4 tests from StatusTests
[ RUN ] StatusTests.test_constructor
[ OK ] StatusTests.test_constructor (0 ms)
[ RUN ] StatusTests.test_constructor_2
[ OK ] StatusTests.test_constructor_2 (0 ms)
[ RUN ] StatusTests.test_ok
[ OK ] StatusTests.test_ok (0 ms)
[ RUN ] StatusTests.test_to_string
[ OK ] StatusTests.test_to_string (0 ms)
[----------] 4 tests from StatusTests (0 ms total)
[----------] 3 tests from HashTests
[ RUN ] HashTests.test_algorithms
[ OK ] HashTests.test_algorithms (0 ms)
[ RUN ] HashTests.test_update
[ OK ] HashTests.test_update (0 ms)
[ RUN ] HashTests.test_file_hashing
[ OK ] HashTests.test_file_hashing (0 ms)
[----------] 3 tests from HashTests (0 ms total)
[----------] 3 tests from PermissionsTests
[ RUN ] PermissionsTests.test_explicit_drop
[ OK ] PermissionsTests.test_explicit_drop (0 ms)
[ RUN ] PermissionsTests.test_path_drop
W0317 21:23:28.303022 12855 permissions_tests.cpp:67] Not root, skipping (path) deprivilege testing
[ OK ] PermissionsTests.test_path_drop (0 ms)
[ RUN ] PermissionsTests.test_nobody_drop
W0317 21:23:28.303169 12855 permissions_tests.cpp:98] Not root, skipping (explicit) deprivilege testing
[ OK ] PermissionsTests.test_nobody_drop (0 ms)
[----------] 3 tests from PermissionsTests (1 ms total)
[----------] 4 tests from DatabaseTests
[ RUN ] DatabaseTests.test_set_value
[ OK ] DatabaseTests.test_set_value (0 ms)
[ RUN ] DatabaseTests.test_get_value
[ OK ] DatabaseTests.test_get_value (0 ms)
[ RUN ] DatabaseTests.test_scan_values
[ OK ] DatabaseTests.test_scan_values (0 ms)
[ RUN ] DatabaseTests.test_delete_values
[ OK ] DatabaseTests.test_delete_values (0 ms)
[----------] 4 tests from DatabaseTests (0 ms total)
[----------] 12 tests from ResultsTests
[ RUN ] ResultsTests.test_simple_diff
[ OK ] ResultsTests.test_simple_diff (0 ms)
[ RUN ] ResultsTests.test_serialize_row
[ OK ] ResultsTests.test_serialize_row (0 ms)
[ RUN ] ResultsTests.test_deserialize_row_json
[ OK ] ResultsTests.test_deserialize_row_json (0 ms)
[ RUN ] ResultsTests.test_serialize_query_data
[ OK ] ResultsTests.test_serialize_query_data (0 ms)
[ RUN ] ResultsTests.test_serialize_query_data_json
[ OK ] ResultsTests.test_serialize_query_data_json (0 ms)
[ RUN ] ResultsTests.test_deserialize_query_data_json
[ OK ] ResultsTests.test_deserialize_query_data_json (0 ms)
[ RUN ] ResultsTests.test_serialize_diff_results
[ OK ] ResultsTests.test_serialize_diff_results (0 ms)
[ RUN ] ResultsTests.test_serialize_diff_results_json
[ OK ] ResultsTests.test_serialize_diff_results_json (0 ms)
[ RUN ] ResultsTests.test_serialize_query_log_item
[ OK ] ResultsTests.test_serialize_query_log_item (0 ms)
[ RUN ] ResultsTests.test_serialize_query_log_item_json
[ OK ] ResultsTests.test_serialize_query_log_item_json (0 ms)
[ RUN ] ResultsTests.test_deserialize_query_log_item_json
[ OK ] ResultsTests.test_deserialize_query_log_item_json (0 ms)
[ RUN ] ResultsTests.test_adding_duplicate_rows_to_query_data
[ OK ] ResultsTests.test_adding_duplicate_rows_to_query_data (0 ms)
[----------] 12 tests from ResultsTests (1 ms total)
[----------] 6 tests from QueryTests
[ RUN ] QueryTests.test_private_members
[ OK ] QueryTests.test_private_members (0 ms)
[ RUN ] QueryTests.test_add_and_get_current_results
[ OK ] QueryTests.test_add_and_get_current_results (1 ms)
[ RUN ] QueryTests.test_get_query_results
[ OK ] QueryTests.test_get_query_results (0 ms)
[ RUN ] QueryTests.test_query_name_not_found_in_db
[ OK ] QueryTests.test_query_name_not_found_in_db (0 ms)
[ RUN ] QueryTests.test_is_query_name_in_database
[ OK ] QueryTests.test_is_query_name_in_database (0 ms)
[ RUN ] QueryTests.test_get_stored_query_names
[ OK ] QueryTests.test_get_stored_query_names (0 ms)
[----------] 6 tests from QueryTests (1 ms total)
[----------] 6 tests from EphemeralDatabasePluginTests
[ RUN ] EphemeralDatabasePluginTests.test_plugin_check
[ OK ] EphemeralDatabasePluginTests.test_plugin_check (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_put
[ OK ] EphemeralDatabasePluginTests.test_put (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_get
[ OK ] EphemeralDatabasePluginTests.test_get (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_delete
[ OK ] EphemeralDatabasePluginTests.test_delete (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_scan
[ OK ] EphemeralDatabasePluginTests.test_scan (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_scan_limit
[ OK ] EphemeralDatabasePluginTests.test_scan_limit (0 ms)
[----------] 6 tests from EphemeralDatabasePluginTests (0 ms total)
[----------] 1 test from DispatcherTests
[ RUN ] DispatcherTests.test_singleton
[ OK ] DispatcherTests.test_singleton (0 ms)
[----------] 1 test from DispatcherTests (0 ms total)
[----------] 17 tests from EventsTests
[ RUN ] EventsTests.test_event_publisher
[ OK ] EventsTests.test_event_publisher (0 ms)
[ RUN ] EventsTests.test_register_event_publisher
[ OK ] EventsTests.test_register_event_publisher (0 ms)
[ RUN ] EventsTests.test_event_publisher_types
[ OK ] EventsTests.test_event_publisher_types (0 ms)
[ RUN ] EventsTests.test_duplicate_event_publisher
[ OK ] EventsTests.test_duplicate_event_publisher (0 ms)
[ RUN ] EventsTests.test_create_using_registry
[ OK ] EventsTests.test_create_using_registry (0 ms)
[ RUN ] EventsTests.test_create_subscription
E0317 21:23:28.306125 12855 events.cpp:743] Requested unknown/failed event publisher: FakePublisher
[ OK ] EventsTests.test_create_subscription (0 ms)
[ RUN ] EventsTests.test_multiple_subscriptions
[ OK ] EventsTests.test_multiple_subscriptions (0 ms)
[ RUN ] EventsTests.test_create_custom_event_publisher
[ OK ] EventsTests.test_create_custom_event_publisher (0 ms)
[ RUN ] EventsTests.test_custom_subscription
[ OK ] EventsTests.test_custom_subscription (0 ms)
[ RUN ] EventsTests.test_tear_down
[ OK ] EventsTests.test_tear_down (0 ms)
[ RUN ] EventsTests.test_event_subscriber
[ OK ] EventsTests.test_event_subscriber (0 ms)
[ RUN ] EventsTests.test_event_subscriber_subscribe
[ OK ] EventsTests.test_event_subscriber_subscribe (0 ms)
[ RUN ] EventsTests.test_event_subscriber_context
[ OK ] EventsTests.test_event_subscriber_context (0 ms)
[ RUN ] EventsTests.test_event_subscriber_configure
[ OK ] EventsTests.test_event_subscriber_configure (0 ms)
[ RUN ] EventsTests.test_fire_event
[ OK ] EventsTests.test_fire_event (0 ms)
[ RUN ] EventsTests.test_subscriber_names
[ OK ] EventsTests.test_subscriber_names (0 ms)
[ RUN ] EventsTests.test_event_toggle_subscribers
[ OK ] EventsTests.test_event_toggle_subscribers (0 ms)
[----------] 17 tests from EventsTests (1 ms total)
[----------] 7 tests from EventsDatabaseTests
[ RUN ] EventsDatabaseTests.test_event_module_id
[ OK ] EventsDatabaseTests.test_event_module_id (1 ms)
[ RUN ] EventsDatabaseTests.test_event_add
[ OK ] EventsDatabaseTests.test_event_add (0 ms)
[ RUN ] EventsDatabaseTests.test_record_indexing
[ OK ] EventsDatabaseTests.test_record_indexing (0 ms)
[ RUN ] EventsDatabaseTests.test_record_range
[ OK ] EventsDatabaseTests.test_record_range (0 ms)
[ RUN ] EventsDatabaseTests.test_record_expiration
[ OK ] EventsDatabaseTests.test_record_expiration (0 ms)
[ RUN ] EventsDatabaseTests.test_gentable
[ OK ] EventsDatabaseTests.test_gentable (1 ms)
[ RUN ] EventsDatabaseTests.test_expire_check
W0317 21:23:28.312553 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 245
W0317 21:23:28.320186 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.327302 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.334007 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.340337 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.346820 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.353651 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.361414 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.367285 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.375792 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.382359 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
W0317 21:23:28.388926 12855 events.cpp:300] Expiring events for subscriber: DBFakeSubscriber limit (10) exceeded: 269
[ OK ] EventsDatabaseTests.test_expire_check (82 ms)
[----------] 7 tests from EventsDatabaseTests (84 ms total)
[----------] 5 tests from ExtensionsTest
[ RUN ] ExtensionsTest.test_manager_runnable
[ OK ] ExtensionsTest.test_manager_runnable (3 ms)
[ RUN ] ExtensionsTest.test_extension_runnable
[ OK ] ExtensionsTest.test_extension_runnable (3 ms)
[ RUN ] ExtensionsTest.test_extension_start
I0317 21:23:28.400126 12864 interface.cpp:86] Registering extension (test, 15591, version=0.1, sdk=0.0.1)
[ OK ] ExtensionsTest.test_extension_start (7 ms)
[ RUN ] ExtensionsTest.test_extension_broadcast
I0317 21:23:28.406092 12869 interface.cpp:86] Registering extension (test, 36611, version=0.1, sdk=0.0.1)
[ OK ] ExtensionsTest.test_extension_broadcast (8 ms)
[ RUN ] ExtensionsTest.test_extension_module_search
[ OK ] ExtensionsTest.test_extension_module_search (0 ms)
[----------] 5 tests from ExtensionsTest (21 ms total)
[----------] 25 tests from FilesystemTests
[ RUN ] FilesystemTests.test_read_file
[ OK ] FilesystemTests.test_read_file (1 ms)
[ RUN ] FilesystemTests.test_read_symlink
[ OK ] FilesystemTests.test_read_symlink (0 ms)
[ RUN ] FilesystemTests.test_read_zero
[ OK ] FilesystemTests.test_read_zero (0 ms)
[ RUN ] FilesystemTests.test_read_urandom
[ OK ] FilesystemTests.test_read_urandom (1 ms)
[ RUN ] FilesystemTests.test_read_limit
[ OK ] FilesystemTests.test_read_limit (0 ms)
[ RUN ] FilesystemTests.test_list_files_missing_directory
[ OK ] FilesystemTests.test_list_files_missing_directory (1 ms)
[ RUN ] FilesystemTests.test_list_files_invalid_directory
[ OK ] FilesystemTests.test_list_files_invalid_directory (0 ms)
[ RUN ] FilesystemTests.test_list_files_valid_directorty
[ OK ] FilesystemTests.test_list_files_valid_directorty (1 ms)
[ RUN ] FilesystemTests.test_canonicalization
[ OK ] FilesystemTests.test_canonicalization (0 ms)
[ RUN ] FilesystemTests.test_simple_globs
[ OK ] FilesystemTests.test_simple_globs (1 ms)
[ RUN ] FilesystemTests.test_wildcard_single_all
[ OK ] FilesystemTests.test_wildcard_single_all (0 ms)
[ RUN ] FilesystemTests.test_wildcard_single_files
[ OK ] FilesystemTests.test_wildcard_single_files (1 ms)
[ RUN ] FilesystemTests.test_wildcard_single_folders
[ OK ] FilesystemTests.test_wildcard_single_folders (0 ms)
[ RUN ] FilesystemTests.test_wildcard_dual
[ OK ] FilesystemTests.test_wildcard_dual (0 ms)
[ RUN ] FilesystemTests.test_wildcard_double
[ OK ] FilesystemTests.test_wildcard_double (0 ms)
[ RUN ] FilesystemTests.test_wildcard_double_folders
[ OK ] FilesystemTests.test_wildcard_double_folders (1 ms)
[ RUN ] FilesystemTests.test_wildcard_end_last_component
[ OK ] FilesystemTests.test_wildcard_end_last_component (0 ms)
[ RUN ] FilesystemTests.test_wildcard_middle_component
[ OK ] FilesystemTests.test_wildcard_middle_component (1 ms)
[ RUN ] FilesystemTests.test_wildcard_all_types
[ OK ] FilesystemTests.test_wildcard_all_types (0 ms)
[ RUN ] FilesystemTests.test_wildcard_invalid_path
[ OK ] FilesystemTests.test_wildcard_invalid_path (1 ms)
[ RUN ] FilesystemTests.test_wildcard_dotdot_files
[ OK ] FilesystemTests.test_wildcard_dotdot_files (0 ms)
[ RUN ] FilesystemTests.test_dotdot_relative
[ OK ] FilesystemTests.test_dotdot_relative (0 ms)
[ RUN ] FilesystemTests.test_no_wild
[ OK ] FilesystemTests.test_no_wild (0 ms)
[ RUN ] FilesystemTests.test_safe_permissions
[ OK ] FilesystemTests.test_safe_permissions (0 ms)
[ RUN ] FilesystemTests.test_read_proc
[ OK ] FilesystemTests.test_read_proc (1 ms)
[----------] 25 tests from FilesystemTests (12 ms total)
[----------] 8 tests from LoggerTests
[ RUN ] LoggerTests.test_plugin
[ OK ] LoggerTests.test_plugin (0 ms)
[ RUN ] LoggerTests.test_logger_init
W0317 21:23:28.423322 12855 logger_tests.cpp:118] Logger test is generating a warning status (1)
[ OK ] LoggerTests.test_logger_init (0 ms)
[ RUN ] LoggerTests.test_log_string
[ OK ] LoggerTests.test_log_string (0 ms)
[ RUN ] LoggerTests.test_logger_log_status
W0317 21:23:28.423537 12855 logger_tests.cpp:150] Logger test is generating a warning status (2)
[ OK ] LoggerTests.test_logger_log_status (0 ms)
[ RUN ] LoggerTests.test_logger_variations
W0317 21:23:28.423703 12855 logger_tests.cpp:163] Logger test is generating a warning status (3)
[ OK ] LoggerTests.test_logger_variations (0 ms)
[ RUN ] LoggerTests.test_logger_snapshots
[ OK ] LoggerTests.test_logger_snapshots (0 ms)
[ RUN ] LoggerTests.test_multiple_loggers
W0317 21:23:28.423921 12855 logger_tests.cpp:204] Logger test is generating a warning status (4)
W0317 21:23:28.423991 12855 logger_tests.cpp:213] Logger test is generating a warning status (5)
[ OK ] LoggerTests.test_multiple_loggers (1 ms)
[ RUN ] LoggerTests.test_logger_scheduled_query
[ OK ] LoggerTests.test_logger_scheduled_query (0 ms)
[----------] 8 tests from LoggerTests (1 ms total)
[----------] 8 tests from RegistryTests
[ RUN ] RegistryTests.test_registry
[ OK ] RegistryTests.test_registry (0 ms)
[ RUN ] RegistryTests.test_auto_factory
[ OK ] RegistryTests.test_auto_factory (0 ms)
[ RUN ] RegistryTests.test_auto_registries
[ OK ] RegistryTests.test_auto_registries (0 ms)
[ RUN ] RegistryTests.test_persistant_registries
[ OK ] RegistryTests.test_persistant_registries (0 ms)
[ RUN ] RegistryTests.test_registry_exceptions
[ OK ] RegistryTests.test_registry_exceptions (0 ms)
[ RUN ] RegistryTests.test_registry_api
[ OK ] RegistryTests.test_registry_api (0 ms)
[ RUN ] RegistryTests.test_real_registry
[ OK ] RegistryTests.test_real_registry (0 ms)
[ RUN ] RegistryTests.test_registry_modules
[ OK ] RegistryTests.test_registry_modules (0 ms)
[----------] 8 tests from RegistryTests (0 ms total)
[----------] Global test environment tear-down
[==========] 140 tests from 18 test cases ran. (132 ms total)
[ PASSED ] 137 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] ConfigTests.test_pack_restrictions
[ FAILED ] ConfigTests.test_get_scheduled_queries
[ FAILED ] ConfigTests.test_pack_file_paths
3 FAILED TESTS
Start 2: osquery_additional_tests
2/9 Test #2: osquery_additional_tests .........***Failed 13.80 sec
[==========] Running 111 tests from 22 test cases.
[----------] Global test environment set-up.
[----------] 15 tests from PacksTests
[ RUN ] PacksTests.test_parse
[ OK ] PacksTests.test_parse (0 ms)
[ RUN ] PacksTests.test_should_pack_execute
/home/vagrant/osquery/osquery/config/tests/packs_tests.cpp:36: Failure
Value of: kpack.shouldPackExecute()
Actual: false
Expected: true
[ FAILED ] PacksTests.test_should_pack_execute (0 ms)
[ RUN ] PacksTests.test_get_discovery_queries
/home/vagrant/osquery/osquery/config/tests/packs_tests.cpp:50: Failure
Value of: expected
Actual: { "select pid from processes where name = 'foobar';" }
Expected: fpack.getDiscoveryQueries()
Which is: {}
[ FAILED ] PacksTests.test_get_discovery_queries (1 ms)
[ RUN ] PacksTests.test_platform
[ OK ] PacksTests.test_platform (0 ms)
[ RUN ] PacksTests.test_version
[ OK ] PacksTests.test_version (0 ms)
[ RUN ] PacksTests.test_name
[ OK ] PacksTests.test_name (0 ms)
[ RUN ] PacksTests.test_sharding
[ OK ] PacksTests.test_sharding (0 ms)
[ RUN ] PacksTests.test_check_platform
[ OK ] PacksTests.test_check_platform (0 ms)
[ RUN ] PacksTests.test_check_version
/home/vagrant/osquery/osquery/config/tests/packs_tests.cpp:106: Failure
Value of: fpack.checkVersion()
Actual: false
Expected: true
[ FAILED ] PacksTests.test_check_version (1 ms)
[ RUN ] PacksTests.test_restriction_population
[ OK ] PacksTests.test_restriction_population (0 ms)
[ RUN ] PacksTests.test_schedule
/home/vagrant/osquery/osquery/config/tests/packs_tests.cpp:124: Failure
Value of: 1U
Actual: 1
Expected: fpack.getSchedule().size()
Which is: 0
[ FAILED ] PacksTests.test_schedule (0 ms)
[ RUN ] PacksTests.test_discovery_cache
[ OK ] PacksTests.test_discovery_cache (11 ms)
[ RUN ] PacksTests.test_discovery_zero_state
[ OK ] PacksTests.test_discovery_zero_state (0 ms)
[ RUN ] PacksTests.test_splay
[ OK ] PacksTests.test_splay (0 ms)
[ RUN ] PacksTests.test_restore_splay
[ OK ] PacksTests.test_restore_splay (0 ms)
[----------] 15 tests from PacksTests (13 ms total)
[----------] 3 tests from FilePathsConfigParserPluginTests
[ RUN ] FilePathsConfigParserPluginTests.test_get_files
[ OK ] FilePathsConfigParserPluginTests.test_get_files (0 ms)
[ RUN ] FilePathsConfigParserPluginTests.test_get_file_accesses
[ OK ] FilePathsConfigParserPluginTests.test_get_file_accesses (0 ms)
[ RUN ] FilePathsConfigParserPluginTests.test_remove_source
[ OK ] FilePathsConfigParserPluginTests.test_remove_source (0 ms)
[----------] 3 tests from FilePathsConfigParserPluginTests (1 ms total)
[----------] 1 test from EventsConfigParserPluginTests
[ RUN ] EventsConfigParserPluginTests.test_get_event
[ OK ] EventsConfigParserPluginTests.test_get_event (0 ms)
[----------] 1 test from EventsConfigParserPluginTests (0 ms total)
[----------] 1 test from OptionsConfigParserPluginTests
[ RUN ] OptionsConfigParserPluginTests.test_get_option
[ OK ] OptionsConfigParserPluginTests.test_get_option (0 ms)
[----------] 1 test from OptionsConfigParserPluginTests (0 ms total)
[----------] 6 tests from EphemeralDatabasePluginTests
[ RUN ] EphemeralDatabasePluginTests.test_plugin_check
[ OK ] EphemeralDatabasePluginTests.test_plugin_check (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_put
[ OK ] EphemeralDatabasePluginTests.test_put (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_get
[ OK ] EphemeralDatabasePluginTests.test_get (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_delete
[ OK ] EphemeralDatabasePluginTests.test_delete (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_scan
[ OK ] EphemeralDatabasePluginTests.test_scan (0 ms)
[ RUN ] EphemeralDatabasePluginTests.test_scan_limit
[ OK ] EphemeralDatabasePluginTests.test_scan_limit (0 ms)
[----------] 6 tests from EphemeralDatabasePluginTests (1 ms total)
[----------] 6 tests from SQLiteDatabasePluginTests
[ RUN ] SQLiteDatabasePluginTests.test_plugin_check
[ OK ] SQLiteDatabasePluginTests.test_plugin_check (10 ms)
[ RUN ] SQLiteDatabasePluginTests.test_put
[ OK ] SQLiteDatabasePluginTests.test_put (10 ms)
[ RUN ] SQLiteDatabasePluginTests.test_get
[ OK ] SQLiteDatabasePluginTests.test_get (7 ms)
[ RUN ] SQLiteDatabasePluginTests.test_delete
[ OK ] SQLiteDatabasePluginTests.test_delete (7 ms)
[ RUN ] SQLiteDatabasePluginTests.test_scan
[ OK ] SQLiteDatabasePluginTests.test_scan (6 ms)
[ RUN ] SQLiteDatabasePluginTests.test_scan_limit
[ OK ] SQLiteDatabasePluginTests.test_scan_limit (8 ms)
[----------] 6 tests from SQLiteDatabasePluginTests (48 ms total)
[----------] 7 tests from RocksDBDatabasePluginTests
[ RUN ] RocksDBDatabasePluginTests.test_plugin_check
[ OK ] RocksDBDatabasePluginTests.test_plugin_check (20 ms)
[ RUN ] RocksDBDatabasePluginTests.test_put
[ OK ] RocksDBDatabasePluginTests.test_put (5 ms)
[ RUN ] RocksDBDatabasePluginTests.test_get
[ OK ] RocksDBDatabasePluginTests.test_get (5 ms)
[ RUN ] RocksDBDatabasePluginTests.test_delete
[ OK ] RocksDBDatabasePluginTests.test_delete (6 ms)
[ RUN ] RocksDBDatabasePluginTests.test_scan
[ OK ] RocksDBDatabasePluginTests.test_scan (4 ms)
[ RUN ] RocksDBDatabasePluginTests.test_scan_limit
[ OK ] RocksDBDatabasePluginTests.test_scan_limit (6 ms)
[ RUN ] RocksDBDatabasePluginTests.test_rocksdb_loglevel
[ OK ] RocksDBDatabasePluginTests.test_rocksdb_loglevel (5 ms)
[----------] 7 tests from RocksDBDatabasePluginTests (52 ms total)
[----------] 5 tests from PrinterTests
[ RUN ] PrinterTests.test_compute_query_data_lengths
[ OK ] PrinterTests.test_compute_query_data_lengths (0 ms)
[ RUN ] PrinterTests.test_generate_separator
[ OK ] PrinterTests.test_generate_separator (0 ms)
[ RUN ] PrinterTests.test_generate_header
[ OK ] PrinterTests.test_generate_header (0 ms)
[ RUN ] PrinterTests.test_generate_row
[ OK ] PrinterTests.test_generate_row (0 ms)
[ RUN ] PrinterTests.test_unicode
[ OK ] PrinterTests.test_unicode (0 ms)
[----------] 5 tests from PrinterTests (0 ms total)
[----------] 2 tests from SchedulerTests
[ RUN ] SchedulerTests.test_monitor
[ OK ] SchedulerTests.test_monitor (1 ms)
[ RUN ] SchedulerTests.test_config_results_purge
[ OK ] SchedulerTests.test_config_results_purge (0 ms)
[----------] 2 tests from SchedulerTests (1 ms total)
[----------] 7 tests from DistributedTests
[ RUN ] DistributedTests.test_serialize_distributed_query_request
localhost - - [17/Mar/2016 21:23:28] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_serialize_distributed_query_request (120 ms)
[ RUN ] DistributedTests.test_deserialize_distributed_query_request
localhost - - [17/Mar/2016 21:23:28] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_deserialize_distributed_query_request (119 ms)
[ RUN ] DistributedTests.test_deserialize_distributed_query_request_json
localhost - - [17/Mar/2016 21:23:28] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_deserialize_distributed_query_request_json (120 ms)
[ RUN ] DistributedTests.test_serialize_distributed_query_result
localhost - - [17/Mar/2016 21:23:29] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_serialize_distributed_query_result (120 ms)
[ RUN ] DistributedTests.test_deserialize_distributed_query_result
localhost - - [17/Mar/2016 21:23:29] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_deserialize_distributed_query_result (121 ms)
[ RUN ] DistributedTests.test_deserialize_distributed_query_result_json
localhost - - [17/Mar/2016 21:23:29] "POST /enroll HTTP/1.1" 200 -
[ OK ] DistributedTests.test_deserialize_distributed_query_result_json (119 ms)
[ RUN ] DistributedTests.test_workflow
localhost - - [17/Mar/2016 21:23:29] "POST /enroll HTTP/1.1" 200 -
localhost - - [17/Mar/2016 21:23:29] "POST /distributed_read HTTP/1.1" 200 -
localhost - - [17/Mar/2016 21:23:29] "POST /distributed_write HTTP/1.1" 200 -
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 22371
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
-- [DEBUG] RealSimpleHandler::post /distributed_read
-- [DEBUG] Request: {u'node_key': u'this_is_a_node_secret'}
-- [DEBUG] Replying: {u'queries': {u'info': u'select * from osquery_info', u'flags': u'select * from osquery_flags'}}
-- [DEBUG] RealSimpleHandler::post /distributed_write
-- [DEBUG] Request: {u'node_key': u'this_is_a_node_secret', u'queries': {u'info': [{u'build_platform': u'ubuntu', u'start_time': u'1458249808', u'build_distro': u'precise', u'pid': u'12875', u'version': u'1.0.3-2313-g81109ef', u'extensions': u'inactive', u'config_valid': u'0', u'config_hash': u''}], u'flags': [{u'default_value': u'false', u'description': u'Allow unsafe executable permissions', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'allow_unsafe'}, {u'default_value': u'false', u'description': u'Allow the audit publisher to change auditing configuration', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'audit_allow_config'}, {u'default_value': u'true', u'description': u'Attempt to retain control of audit', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'audit_persist'}, {u'default_value': u'false', u'description': u'Check the format of an osquery config and exit', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'config_check'}, {u'default_value': u'false', u'description': u'Dump the contents of the configuration', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'config_dump'}, {u'default_value': u'/var/osquery/osquery.conf', u'description': u'Path to JSON config file', u'value': u'/var/osquery/osquery.conf', u'shell_only': u'0', u'type': u'string', u'name': u'config_path'}, {u'default_value': u'filesystem', u'description': u'Config plugin name', u'value': u'filesystem', u'shell_only': u'0', u'type': u'string', u'name': u'config_plugin'}, {u'default_value': u'', u'description': u'TLS/HTTPS endpoint for config retrieval', u'value': u'', u'shell_only': u'0', u'type': u'string', u'name': u'config_tls_endpoint'}, {u'default_value': u'3', u'description': u'Number of attempts to retry a TLS config/enroll request', u'value': u'3', u'shell_only': u'0', u'type': u'uint64', u'name': u'config_tls_max_attempts'}, {u'default_value': u'0', u'description': u'Optional interval in seconds to re-read configuration', u'value': u'0', u'shell_only': u'0', u'type': u'uint64', u'name': u'config_tls_refresh'}, {u'default_value': u'false', u'description': u'Run as daemon (osqueryd only)', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'daemonize'}, {u'default_value': u'false', u'description': u'Dump the contents of the backing store', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'database_dump'}, {u'default_value': u'false', u'description': u'Keep osquery backing-store in memory', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'database_in_memory'}, {u'default_value': u'/var/osquery/osquery.db', u'description': u'If using a disk-based backing store, specify a path', u'value': u'/tmp/osquery-tests1001/unittests.db', u'shell_only': u'0', u'type': u'string', u'name': u'database_path'}, {u'default_value': u'true', u'description': u'Disable receiving events from the audit subsystem', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_audit'}, {u'default_value': u'false', u'description': u'Disable scheduled query caching', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_caching'}, {u'default_value': u'true', u'description': u'Disable distributed queries (default true)', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_distributed'}, {u'default_value': u'false', u'description': u'Disable enrollment functions on related config/logger plugins', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_enrollment'}, {u'default_value': u'false', u'description': u'Disable osquery publish/subscribe system', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_events'}, {u'default_value': u'false', u'description': u'Disable extension API', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_extensions'}, {u'default_value': u'true', u'description': u'Disable atime/mtime preservation', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_forensic'}, {u'default_value': u'false', u'description': u'Disable osquery kernel extension', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_kernel'}, {u'default_value': u'false', u'description': u'Disable ERROR/INFO logging', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_logging'}, {u'default_value': u'false', u'description': u'Disable physical memory reads', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_memory'}, {u'default_value': u'false', u'description': u'Disable re-enrollment attempts if related plugins return invalid', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_reenrollment'}, {u'default_value': u'Not Specified', u'description': u'Comma-delimited list of table names to be disabled', u'value': u'Not Specified', u'shell_only': u'0', u'type': u'string', u'name': u'disable_tables'}, {u'default_value': u'false', u'description': u'Disable userland watchdog process', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'disable_watchdog'}, {u'default_value': u'60', u'description': u'Seconds between polling for new queries (default 60)', u'value': u'60', u'shell_only': u'0', u'type': u'uint64', u'name': u'distributed_interval'}, {u'default_value': u'tls', u'description': u'Distributed plugin name', u'value': u'tls', u'shell_only': u'0', u'type': u'string', u'name': u'distributed_plugin'}, {u'default_value': u'3', u'description': u'Number of times to attempt a request', u'value': u'3', u'shell_only': u'0', u'type': u'uint64', u'name': u'distributed_tls_max_attempts'}, {u'default_value': u'', u'description': u'TLS/HTTPS endpoint for distributed query retrieval', u'value': u'/distributed_read', u'shell_only': u'0', u'type': u'string', u'name': u'distributed_tls_read_endpoint'}, {u'default_value': u'', u'description': u'TLS/HTTPS endpoint for distributed query results', u'value': u'/distributed_write', u'shell_only': u'0', u'type': u'string', u'name': u'distributed_tls_write_endpoint'}, {u'default_value': u'false', u'description': u'Enable the schedule monitor', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'enable_monitor'}, {u'default_value': u'', u'description': u'Name of environment variable holding enrollment-auth secret', u'value': u'', u'shell_only': u'0', u'type': u'string', u'name': u'enroll_secret_env'}, {u'default_value': u'', u'description': u'Path to an optional client enrollment-auth secret', u'value': u'../../../tools/tests//test_enroll_secret.txt', u'shell_only': u'0', u'type': u'string', u'name': u'enroll_secret_path'}, {u'default_value': u'', u'description': u'TLS/HTTPS endpoint for client enrollment', u'value': u'/enroll', u'shell_only': u'0', u'type': u'string', u'name': u'enroll_tls_endpoint'}, {u'default_value': u'86000', u'description': u'Timeout to expire event subscriber results', u'value': u'86000', u'shell_only': u'0', u'type': u'uint64', u'name': u'events_expiry'}, {u'default_value': u'1000', u'description': u'Maximum number of events per type to buffer', u'value': u'1000', u'shell_only': u'0', u'type': u'uint64', u'name': u'events_max'}, {u'default_value': u'true', u'description': u'Optimize subscriber select queries (scheduler only)', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'events_optimize'}, {u'default_value': u'/etc/osquery/extensions.load', u'description': u'Optional path to a list of autoloaded & managed extensions', u'value': u'/tmp/osquery-tests1001/unittests-ext.load', u'shell_only': u'0', u'type': u'string', u'name': u'extensions_autoload'}, {u'default_value': u'3', u'description': u'Seconds delay between connectivity checks', u'value': u'3', u'shell_only': u'0', u'type': u'string', u'name': u'extensions_interval'}, {u'default_value': u'/var/osquery/osquery.em', u'description': u'Path to the extensions UNIX domain socket', u'value': u'/tmp/osquery-tests1001/unittests.em', u'shell_only': u'0', u'type': u'string', u'name': u'extensions_socket'}, {u'default_value': u'3', u'description': u'Seconds to wait for autoloaded extensions', u'value': u'3', u'shell_only': u'0', u'type': u'string', u'name': u'extensions_timeout'}, {u'default_value': u'false', u'description': u'Force osqueryd to kill previously-running daemons', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'force'}, {u'default_value': u'hostname', u'description': u'Field used to identify the host running osquery (hostname, uuid)', u'value': u'hostname', u'shell_only': u'0', u'type': u'string', u'name': u'host_identifier'}, {u'default_value': u'true', u'description': u'Log scheduled results as events', u'value': u'true', u'shell_only': u'0', u'type': u'bool', u'name': u'log_result_events'}, {u'default_value': u'416', u'description': u"Decimal mode for log files (default '0640')", u'value': u'416', u'shell_only': u'0', u'type': u'int32', u'name': u'logger_mode'}, {u'default_value': u'/var/log/osquery/', u'description': u'Directory path for ERROR/WARN/INFO and results logging', u'value': u'/var/log/osquery/', u'shell_only': u'0', u'type': u'string', u'name': u'logger_path'}, {u'default_value': u'filesystem', u'description': u'Logger plugin name', u'value': u'filesystem', u'shell_only': u'0', u'type': u'string', u'name': u'logger_plugin'}, {u'default_value': u'19', u'description': u'Syslog facility for status and results logs (0-23, default 19)', u'value': u'19', u'shell_only': u'0', u'type': u'int32', u'name': u'logger_syslog_facility'}, {u'default_value': u'false', u'description': u'GZip compress TLS/HTTPS request body', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'logger_tls_compress'}, {u'default_value': u'', u'description': u'TLS/HTTPS endpoint for results logging', u'value': u'', u'shell_only': u'0', u'type': u'string', u'name': u'logger_tls_endpoint'}, {u'default_value': u'1048576', u'description': u'Max size in bytes allowed per log line', u'value': u'1048576', u'shell_only': u'0', u'type': u'uint64', u'name': u'logger_tls_max'}, {u'default_value': u'4', u'description': u'Seconds between flushing logs over TLS/HTTPS', u'value': u'4', u'shell_only': u'0', u'type': u'uint64', u'name': u'logger_tls_period'}, {u'default_value': u'/etc/osquery/modules.load', u'description': u'Optional path to a list of autoloaded registry modules', u'value': u'/tmp/osquery-tests1001/unittests-mod.load', u'shell_only': u'0', u'type': u'string', u'name': u'modules_autoload'}, {u'default_value': u'', u'description': u"Set string for NULL values, default ''", u'value': u'', u'shell_only': u'1', u'type': u'string', u'name': u'nullvalue'}, {u'default_value': u'_', u'description': u'Delimiter for pack and query names', u'value': u'_', u'shell_only': u'0', u'type': u'string', u'name': u'pack_delimiter'}, {u'default_value': u'3600', u'description': u'Cache expiration for a packs discovery queries', u'value': u'3600', u'shell_only': u'0', u'type': u'uint64', u'name': u'pack_refresh_interval'}, {u'default_value': u'/var/osquery/osqueryd.pidfile', u'description': u'Path to the daemon pidfile mutex', u'value': u'/var/osquery/osqueryd.pidfile', u'shell_only': u'0', u'type': u'string', u'name': u'pidfile'}, {u'default_value': u'false', u'description': u'Enable osquery runtime planner output', u'value': u'false', u'shell_only': u'1', u'type': u'bool', u'name': u'planner'}, {u'default_value': u'52428800', u'description': u'Maximum file read size', u'value': u'52428800', u'shell_only': u'0', u'type': u'uint64', u'name': u'read_max'}, {u'default_value': u'1048576[ OK ] DistributedTests.test_workflow (135 ms)
[----------] 7 tests from DistributedTests (855 ms total)
[----------] 12 tests from INotifyTests
[ RUN ] INotifyTests.test_register_event_pub
[ OK ] INotifyTests.test_register_event_pub (44 ms)
[ RUN ] INotifyTests.test_inotify_init
[ OK ] INotifyTests.test_inotify_init (4 ms)
[ RUN ] INotifyTests.test_inotify_add_subscription_missing_path
[ OK ] INotifyTests.test_inotify_add_subscription_missing_path (24 ms)
[ RUN ] INotifyTests.test_inotify_add_subscription_success
[ OK ] INotifyTests.test_inotify_add_subscription_success (10 ms)
[ RUN ] INotifyTests.test_inotify_match_subscription
[ OK ] INotifyTests.test_inotify_match_subscription (0 ms)
[ RUN ] INotifyTests.test_inotify_run
[ OK ] INotifyTests.test_inotify_run (230 ms)
[ RUN ] INotifyTests.test_inotify_fire_event
[ OK ] INotifyTests.test_inotify_fire_event (228 ms)
[ RUN ] INotifyTests.test_inotify_event_action
[ OK ] INotifyTests.test_inotify_event_action (229 ms)
[ RUN ] INotifyTests.test_inotify_optimization
[ OK ] INotifyTests.test_inotify_optimization (1023 ms)
[ RUN ] INotifyTests.test_inotify_directory_watch
[ OK ] INotifyTests.test_inotify_directory_watch (228 ms)
[ RUN ] INotifyTests.test_inotify_recursion
[ OK ] INotifyTests.test_inotify_recursion (133 ms)
[ RUN ] INotifyTests.test_inotify_embedded_wildcards
[ OK ] INotifyTests.test_inotify_embedded_wildcards (0 ms)
[----------] 12 tests from INotifyTests (2153 ms total)
[----------] 6 tests from AuditTests
[ RUN ] AuditTests.test_handle_reply
[ OK ] AuditTests.test_handle_reply (0 ms)
[ RUN ] AuditTests.test_audit_value_decode
[ OK ] AuditTests.test_audit_value_decode (0 ms)
[ RUN ] AuditTests.test_valid_audit_state
[ OK ] AuditTests.test_valid_audit_state (0 ms)
[ RUN ] AuditTests.test_valid_audit_state_exceptions
[ OK ] AuditTests.test_valid_audit_state_exceptions (0 ms)
[ RUN ] AuditTests.test_valid_audit_state_failues
[ OK ] AuditTests.test_valid_audit_state_failues (0 ms)
[ RUN ] AuditTests.test_parse_sock_addr
[ OK ] AuditTests.test_parse_sock_addr (0 ms)
[----------] 6 tests from AuditTests (0 ms total)
[----------] 3 tests from FilesystemLoggerTests
[ RUN ] FilesystemLoggerTests.test_filesystem_init
[ OK ] FilesystemLoggerTests.test_filesystem_init (0 ms)
[ RUN ] FilesystemLoggerTests.test_log_string
[ OK ] FilesystemLoggerTests.test_log_string (0 ms)
[ RUN ] FilesystemLoggerTests.test_log_snapshot
[ OK ] FilesystemLoggerTests.test_log_snapshot (1 ms)
[----------] 3 tests from FilesystemLoggerTests (1 ms total)
[----------] 3 tests from TLSLoggerTests
[ RUN ] TLSLoggerTests.test_log
[ OK ] TLSLoggerTests.test_log (0 ms)
[ RUN ] TLSLoggerTests.test_database
[ OK ] TLSLoggerTests.test_database (0 ms)
[ RUN ] TLSLoggerTests.test_send
localhost - - [17/Mar/2016 21:23:31] "POST /enroll HTTP/1.1" 200 -
localhost - - [17/Mar/2016 21:23:31] "POST / HTTP/1.1" 200 -
localhost - - [17/Mar/2016 21:23:31] "POST / HTTP/1.1" 200 -
[ OK ] TLSLoggerTests.test_send (138 ms)
[----------] 3 tests from TLSLoggerTests (138 ms total)
[----------] 3 tests from RequestsTests
[ RUN ] RequestsTests.test_call
[ OK ] RequestsTests.test_call (0 ms)
[ RUN ] RequestsTests.test_call_with_params
[ OK ] RequestsTests.test_call_with_params (0 ms)
[ RUN ] RequestsTests.test_compression
[ OK ] RequestsTests.test_compression (0 ms)
[----------] 3 tests from RequestsTests (1 ms total)
[----------] 5 tests from TLSTransportsTests
[ RUN ] TLSTransportsTests.test_call
localhost - - [17/Mar/2016 21:23:31] "GET / HTTP/1.1" 200 -
[ OK ] TLSTransportsTests.test_call (122 ms)
[ RUN ] TLSTransportsTests.test_call_with_params
localhost - - [17/Mar/2016 21:23:31] "POST / HTTP/1.1" 200 -
[ OK ] TLSTransportsTests.test_call_with_params (121 ms)
[ RUN ] TLSTransportsTests.test_call_verify_peer
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0317 21:23:32.067406 12875 tls_transports_tests.cpp:31] Could not complete TLSRequest (2): Request error: certificate verify failed
[ OK ] TLSTransportsTests.test_call_verify_peer (120 ms)
[ RUN ] TLSTransportsTests.test_call_server_cert_pinning
localhost - - [17/Mar/2016 21:23:32] "GET / HTTP/1.1" 200 -
E0317 21:23:32.196420 12875 tls_transports_tests.cpp:31] Could not complete TLSRequest (2): Request error: certificate verify failed
[ OK ] TLSTransportsTests.test_call_server_cert_pinning (129 ms)
[ RUN ] TLSTransportsTests.test_call_client_auth
localhost - - [17/Mar/2016 21:23:32] "GET / HTTP/1.1" 200 -
[ OK ] TLSTransportsTests.test_call_client_auth (123 ms)
[----------] 5 tests from TLSTransportsTests (615 ms total)
[----------] 2 tests from JSONSerializersTests
[ RUN ] JSONSerializersTests.test_serialize
[ OK ] JSONSerializersTests.test_serialize (0 ms)
[ RUN ] JSONSerializersTests.test_deserialize
[ OK ] JSONSerializersTests.test_deserialize (0 ms)
[----------] 2 tests from JSONSerializersTests (0 ms total)
[----------] 3 tests from EnrollTests
[ RUN ] EnrollTests.test_enroll_secret_retrieval
[ OK ] EnrollTests.test_enroll_secret_retrieval (0 ms)
[ RUN ] EnrollTests.test_enroll_key_retrieval
[ OK ] EnrollTests.test_enroll_key_retrieval (0 ms)
[ RUN ] EnrollTests.test_enroll_key_caching
[ OK ] EnrollTests.test_enroll_key_caching (0 ms)
[----------] 3 tests from EnrollTests (0 ms total)
[----------] 6 tests from VirtualTableTests
[ RUN ] VirtualTableTests.test_tableplugin_columndefinition
[ OK ] VirtualTableTests.test_tableplugin_columndefinition (0 ms)
[ RUN ] VirtualTableTests.test_sqlite3_attach_vtable
[ OK ] VirtualTableTests.test_sqlite3_attach_vtable (1 ms)
[ RUN ] VirtualTableTests.test_sqlite3_table_joins
[ OK ] VirtualTableTests.test_sqlite3_table_joins (1 ms)
[ RUN ] VirtualTableTests.test_constraints_stacking
[ OK ] VirtualTableTests.test_constraints_stacking (10 ms)
[ RUN ] VirtualTableTests.test_json_extract
[ OK ] VirtualTableTests.test_json_extract (0 ms)
[ RUN ] VirtualTableTests.test_null_values
[ OK ] VirtualTableTests.test_null_values (0 ms)
[----------] 6 tests from VirtualTableTests (12 ms total)
[----------] 3 tests from SQLTests
[ RUN ] SQLTests.test_raw_access
[ OK ] SQLTests.test_raw_access (0 ms)
[ RUN ] SQLTests.test_raw_access_context
[ OK ] SQLTests.test_raw_access_context (1 ms)
[ RUN ] SQLTests.test_sql_escape
[ OK ] SQLTests.test_sql_escape (0 ms)
[----------] 3 tests from SQLTests (1 ms total)
[----------] 10 tests from SQLiteUtilTests
[ RUN ] SQLiteUtilTests.test_simple_query_execution
[ OK ] SQLiteUtilTests.test_simple_query_execution (0 ms)
[ RUN ] SQLiteUtilTests.test_sqlite_instance_manager
[ OK ] SQLiteUtilTests.test_sqlite_instance_manager (9 ms)
[ RUN ] SQLiteUtilTests.test_sqlite_instance
[ OK ] SQLiteUtilTests.test_sqlite_instance (0 ms)
[ RUN ] SQLiteUtilTests.test_direct_query_execution
[ OK ] SQLiteUtilTests.test_direct_query_execution (11 ms)
[ RUN ] SQLiteUtilTests.test_passing_callback_no_data_param
[ OK ] SQLiteUtilTests.test_passing_callback_no_data_param (13 ms)
[ RUN ] SQLiteUtilTests.test_aggregate_query
[ OK ] SQLiteUtilTests.test_aggregate_query (12 ms)
[ RUN ] SQLiteUtilTests.test_get_test_db_result_stream
[ OK ] SQLiteUtilTests.test_get_test_db_result_stream (9 ms)
[ RUN ] SQLiteUtilTests.test_affected_tables
[ OK ] SQLiteUtilTests.test_affected_tables (9 ms)
[ RUN ] SQLiteUtilTests.test_get_query_columns
[ OK ] SQLiteUtilTests.test_get_query_columns (10 ms)
[ RUN ] SQLiteUtilTests.test_query_planner
[ OK ] SQLiteUtilTests.test_query_planner (12 ms)
[----------] 10 tests from SQLiteUtilTests (89 ms total)
[----------] 2 tests from YARATest
[ RUN ] YARATest.test_match_true
[ OK ] YARATest.test_match_true (1 ms)
[ RUN ] YARATest.test_match_false
[ OK ] YARATest.test_match_false (1 ms)
[----------] 2 tests from YARATest (2 ms total)
[----------] Global test environment tear-down
[==========] 111 tests from 22 test cases ran. (3985 ms total)
[ PASSED ] 107 tests.
[ FAILED ] 4 tests, listed below:
[ FAILED ] PacksTests.test_should_pack_execute
[ FAILED ] PacksTests.test_get_discovery_queries
[ FAILED ] PacksTests.test_check_version
[ FAILED ] PacksTests.test_schedule
4 FAILED TESTS
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 21405
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 22339
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 27661
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 26044
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 20302
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 22917
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
0', u'description': u'Maximum non-su read size', u'value': u'10485760', u'shell_only': u'0', u'type': u'uint64', u'name': u'read_user_max'}, {u'default_value': u'false', u'description': u'Allow plugin exceptions', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'registry_exceptions'}, {u'default_value': u'3600', u'description': u'Query interval to use if none is provided', u'value': u'3600', u'shell_only': u'0', u'type': u'uint64', u'name': u'schedule_default_interval'}, {u'default_value': u'10', u'description': u'Percent to splay config times', u'value': u'10', u'shell_only': u'0', u'type': u'uint64', u'name': u'schedule_splay_percent'}, {u'default_value': u'0', u'description': u'Limit the schedule, 0 for no limit', u'value': u'0', u'shell_only': u'0', u'type': u'uint64', u'name': u'schedule_timeout'}, {u'default_value': u'', u'description': u'Optional path to a TLS client-auth PEM certificate', u'value': u'', u'shell_only': u'0', u'type': u'string', u'name': u'tls_client_cert'}, {u'default_value': u'', u'description': u'Optional path to a TLS client-auth PEM private key', u'value': u'', u'shell_only': u'0', u'type': u'string', u'name': u'tls_client_key'}, {u'default_value': u'false', u'description': u'Print remote requests and responses', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'tls_dump'}, {u'default_value': u'enroll_secret', u'description': u'Override the TLS enroll secret key name', u'value': u'enroll_secret', u'shell_only': u'0', u'type': u'string', u'name': u'tls_enroll_override'}, {u'default_value': u'', u'description': u'TLS/HTTPS hostname for Config, Logger, and Enroll plugins', u'value': u'localhost:22371', u'shell_only': u'0', u'type': u'string', u'name': u'tls_hostname'}, {u'default_value': u'false', u'description': u'Use node key as TLS endpoints', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'tls_node_api'}, {u'default_value': u'false', u'description': u'Include TLS enroll secret in every request', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'tls_secret_always'}, {u'default_value': u'', u'description': u'Optional path to a TLS server PEM certificate(s) bundle', u'value': u'../../../tools/tests//test_server_ca.pem', u'shell_only': u'0', u'type': u'string', u'name': u'tls_server_certs'}, {u'default_value': u'512', u'description': u'Maximum returned row value size', u'value': u'512', u'shell_only': u'0', u'type': u'int32', u'name': u'value_max'}, {u'default_value': u'false', u'description': u'Enable verbose informational messages', u'value': u'false', u'shell_only': u'0', u'type': u'bool', u'name': u'verbose'}, {u'default_value': u'0', u'description': u'Performance limit level (0=loose, 1=normal, 2=restrictive, 3=debug)', u'value': u'0', u'shell_only': u'0', u'type': u'int32', u'name': u'watchdog_level'}, {u'default_value': u'4', u'description': u'Number of work dispatch threads', u'value': u'4', u'shell_only': u'0', u'type': u'int32', u'name': u'worker_threads'}]}}
-- [DEBUG] Replying: {}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 29832
-- [DEBUG] RealSimpleHandler::post /enroll
-- [DEBUG] Request: {u'enroll_secret': u'this_is_a_deployment_secret', u'host_identifier': u'vagrant-ubuntu-precise-64'}
-- [DEBUG] Replying: {u'node_key': u'this_is_a_node_secret'}
-- [DEBUG] RealSimpleHandler::post /
-- [DEBUG] Request: {u'node_key': u'fake_key', u'data': [{u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}, {u'more_json': u'true'}], u'log_type': u'result'}
-- [DEBUG] Replying: {u'foo': u'bar'}
-- [DEBUG] RealSimpleHandler::post /
-- [DEBUG] Request: {u'node_key': u'fake_key', u'data': [{u'line': u'0', u'message': u'test', u'severity': u'0', u'filename': u'test.cpp'}], u'log_type': u'status'}
-- [DEBUG] Replying: {u'foo': u'bar'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 21297
-- [DEBUG] RealSimpleHandler::get /
-- [DEBUG] Replying: {u'foo': u'bar'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 29831
-- [DEBUG] RealSimpleHandler::post /
-- [DEBUG] Request: {u'foo': u'bar'}
-- [DEBUG] Replying: {u'foo': u'bar'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 22228
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 21600
-- [DEBUG] RealSimpleHandler::get /
-- [DEBUG] Replying: {u'foo': u'bar'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
-- [DEBUG] Starting TLS/HTTPS server on TCP port: 22748
-- [DEBUG] RealSimpleHandler::get /
-- [DEBUG] Replying: {u'foo': u'bar'}
[DEBUG] Shutting down HTTP server via timeout (10) seconds.
Start 3: osquery_tables_tests
3/9 Test #3: osquery_tables_tests ............. Passed 0.49 sec
Start 4: python_test_osqueryi
4/9 Test #4: python_test_osqueryi ............. Passed 6.78 sec
Start 5: python_test_osqueryd
5/9 Test #5: python_test_osqueryd ............. Passed 2.13 sec
Start 6: python_test_modules
6/9 Test #6: python_test_modules .............. Passed 1.61 sec
Start 7: python_test_extensions
7/9 Test #7: python_test_extensions ........... Passed 5.22 sec
Start 8: python_test_additional
8/9 Test #8: python_test_additional ........... Passed 0.28 sec
Start 9: python_test_example_queries
9/9 Test #9: python_test_example_queries ...... Passed 2.55 sec
78% tests passed, 2 tests failed out of 9
Total Test time (real) = 33.02 sec
The following tests FAILED:
1 - osquery_tests (Failed)
2 - osquery_additional_tests (Failed)
Errors while running CTest
make[1]: *** [test] Error 8
make: *** [test] Error 2
vagrant@vagrant-ubuntu-precise-64:~/osquery$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment