facter 3.9.6.cfacter.20180612 → 3.11.0.cfacter.20180319
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/facter/facter/CMakeLists.txt +1 -1
- data/ext/facter/facter/acceptance/Gemfile +3 -4
- data/ext/facter/facter/acceptance/Rakefile +342 -2
- data/ext/facter/facter/acceptance/config/aio/options.rb +6 -0
- data/ext/facter/facter/acceptance/config/git/options.rb +5 -1
- data/ext/facter/facter/acceptance/setup/aio/pre-suite/010_Install.rb +22 -0
- data/ext/facter/facter/acceptance/setup/aio/pre-suite/021_InstallAristaModule.rb +12 -0
- data/ext/facter/facter/acceptance/setup/aio/pre-suite/022_Remove_LD_PRELOAD.rb +11 -0
- data/ext/facter/facter/acceptance/setup/common/00_EnvSetup.rb +64 -0
- data/ext/facter/facter/acceptance/setup/common/pre-suite/000-delete-puppet-when-none.rb +11 -0
- data/ext/facter/facter/acceptance/setup/git/pre-suite/01_TestSetup.rb +31 -0
- data/ext/facter/facter/acceptance/tests/ticket_1238_hostname_fqdn.rb +20 -0
- data/ext/facter/facter/lib/CMakeLists.txt +3 -2
- data/ext/facter/facter/lib/Doxyfile +1 -1
- data/ext/facter/facter/lib/inc/facter/facts/fact.hpp +5 -0
- data/ext/facter/facter/lib/inc/internal/facts/aix/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/freebsd/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/linux/fips_resolver.hpp +31 -0
- data/ext/facter/facter/lib/inc/internal/facts/linux/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/openbsd/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/osx/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/posix/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/inc/internal/facts/resolvers/fips_resolver.hpp +46 -0
- data/ext/facter/facter/lib/inc/internal/facts/resolvers/networking_resolver.hpp +2 -3
- data/ext/facter/facter/lib/inc/internal/facts/resolvers/ssh_resolver.hpp +6 -0
- data/ext/facter/facter/lib/inc/internal/facts/solaris/networking_resolver.hpp +0 -7
- data/ext/facter/facter/lib/schema/facter.yaml +38 -18
- data/ext/facter/facter/lib/src/cwrapper.cc +5 -0
- data/ext/facter/facter/lib/src/facts/aix/disk_resolver.cc +2 -11
- data/ext/facter/facter/lib/src/facts/aix/networking_resolver.cc +0 -5
- data/ext/facter/facter/lib/src/facts/freebsd/dmi_resolver.cc +5 -1
- data/ext/facter/facter/lib/src/facts/freebsd/networking_resolver.cc +1 -10
- data/ext/facter/facter/lib/src/facts/freebsd/virtualization_resolver.cc +1 -4
- data/ext/facter/facter/lib/src/facts/linux/collection.cc +2 -0
- data/ext/facter/facter/lib/src/facts/linux/fips_resolver.cc +31 -0
- data/ext/facter/facter/lib/src/facts/linux/networking_resolver.cc +1 -10
- data/ext/facter/facter/lib/src/facts/openbsd/networking_resolver.cc +1 -10
- data/ext/facter/facter/lib/src/facts/osx/networking_resolver.cc +1 -10
- data/ext/facter/facter/lib/src/facts/posix/networking_resolver.cc +2 -3
- data/ext/facter/facter/lib/src/facts/posix/ssh_resolver.cc +3 -2
- data/ext/facter/facter/lib/src/facts/resolvers/fips_resolver.cc +23 -0
- data/ext/facter/facter/lib/src/facts/resolvers/networking_resolver.cc +7 -23
- data/ext/facter/facter/lib/src/facts/resolvers/ssh_resolver.cc +1 -0
- data/ext/facter/facter/lib/src/facts/solaris/networking_resolver.cc +0 -5
- data/ext/facter/facter/lib/tests/facts/resolvers/ssh_resolver.cc +8 -1
- data/ext/facter/facter/lib/tests/facts/schema.cc +17 -0
- data/ext/facter/facter/locales/FACTER.pot +2 -23
- data/ext/facter/leatherman/CHANGELOG.md +16 -9
- data/ext/facter/leatherman/CMakeLists.txt +1 -2
- data/ext/facter/leatherman/appveyor.yml +26 -19
- data/ext/facter/leatherman/catch/CMakeLists.txt +1 -1
- data/ext/facter/leatherman/curl/tests/client_test.cc +396 -398
- data/ext/facter/leatherman/curl/tests/mock_curl.cc +2 -0
- data/ext/facter/leatherman/curl/tests/request_test.cc +66 -68
- data/ext/facter/leatherman/curl/tests/response_test.cc +50 -52
- data/ext/facter/leatherman/dynamic_library/tests/dynamic_library_tests.cc +71 -75
- data/ext/facter/leatherman/execution/src/execution.cc +3 -0
- data/ext/facter/leatherman/execution/src/posix/execution.cc +5 -6
- data/ext/facter/leatherman/execution/src/windows/execution.cc +2 -0
- data/ext/facter/leatherman/execution/tests/windows/execution.cc +4 -2
- data/ext/facter/leatherman/file_util/tests/directory_utils_test.cc +66 -68
- data/ext/facter/leatherman/file_util/tests/file_utils_test.cc +175 -177
- data/ext/facter/leatherman/json_container/inc/leatherman/json_container/json_container.hpp +7 -0
- data/ext/facter/leatherman/json_container/src/json_container.cc +10 -1
- data/ext/facter/leatherman/json_container/tests/json_container_test.cc +152 -8
- data/ext/facter/leatherman/locale/CMakeLists.txt +0 -7
- data/ext/facter/leatherman/locales/leatherman.pot +8 -13
- data/ext/facter/leatherman/logging/src/logging.cc +2 -0
- data/ext/facter/leatherman/util/tests/timer.cc +1 -3
- data/ext/facter/leatherman/vendor/Catch-1.10.0.zip +0 -0
- data/ext/facter/leatherman/vendor/nowide/doc/Doxyfile +4 -4
- data/ext/facter/leatherman/vendor/nowide/doc/LICENSE_1_0.txt +23 -0
- data/ext/facter/leatherman/vendor/nowide/doc/main.txt +62 -54
- data/ext/facter/leatherman/vendor/nowide/include/boost/nowide/convert.hpp +16 -16
- data/ext/facter/leatherman/vendor/nowide/include/boost/nowide/cstdio.hpp +4 -4
- data/ext/facter/leatherman/vendor/nowide/include/boost/nowide/utf8_codecvt.hpp +1 -1
- data/ext/facter/leatherman/vendor/nowide/src/iostream.cpp +32 -30
- data/ext/facter/leatherman/vendor/nowide/standalone/convert +6 -6
- data/ext/facter/leatherman/vendor/nowide/standalone/encoding_utf.hpp +1 -1
- data/ext/facter/leatherman/vendor/nowide/standalone/run_convert_and_build.sh +1 -3
- metadata +15 -6
- data/ext/facter/leatherman/cmake/FindICU.cmake +0 -690
- data/ext/facter/leatherman/scripts/travis_target.sh +0 -79
- data/ext/facter/leatherman/vendor/catch-1.4.0.zip +0 -0
@@ -1,79 +0,0 @@
|
|
1
|
-
#! /bin/bash
|
2
|
-
|
3
|
-
# Travis cpp jobs construct a matrix based on environment variables
|
4
|
-
# (and the value of 'compiler'). In order to test multiple builds
|
5
|
-
# (release/debug/cpplint/cppcheck), this uses a TRAVIS_TARGET env
|
6
|
-
# var to do the right thing.
|
7
|
-
|
8
|
-
function travis_make()
|
9
|
-
{
|
10
|
-
mkdir $1 && cd $1
|
11
|
-
|
12
|
-
# Set compiler to GCC 4.8 here, as Travis overrides the global variables.
|
13
|
-
export CC=gcc-4.8 CXX=g++-4.8
|
14
|
-
|
15
|
-
# Build project
|
16
|
-
if [ $1 == "cpplint" ]; then
|
17
|
-
export MAKE_TARGET="cpplint"
|
18
|
-
elif [ $1 == "cppcheck" ]; then
|
19
|
-
export MAKE_TARGET="cppcheck"
|
20
|
-
else
|
21
|
-
# Prepare for generating leatherman.pot, and ensure it happens every time.
|
22
|
-
# Ensure this happens before calling CMake.
|
23
|
-
wget https://s3.amazonaws.com/kylo-pl-bucket/gettext-0.19.6_install.tar.bz2
|
24
|
-
tar xjvf gettext-0.19.6_install.tar.bz2 --strip 1 -C $USERDIR
|
25
|
-
rm ../locales/leatherman.pot
|
26
|
-
export MAKE_TARGET="all"
|
27
|
-
fi
|
28
|
-
|
29
|
-
# Generate build files
|
30
|
-
[ $1 == "debug" ] && export CMAKE_VARS="-DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON"
|
31
|
-
[ $1 == "shared_release" ] && export CMAKE_VARS="-DLEATHERMAN_SHARED=ON"
|
32
|
-
[ $1 == "locale_disabled" ] && export CMAKE_VARS="-DLEATHERMAN_USE_LOCALES=OFF"
|
33
|
-
[ $1 == "gettext_disabled" ] && export CMAKE_VARS="-DLEATHERMAN_GETTEXT=OFF"
|
34
|
-
cmake $CMAKE_VARS -DCMAKE_INSTALL_PREFIX=$USERDIR ..
|
35
|
-
if [ $? -ne 0 ]; then
|
36
|
-
echo "cmake failed."
|
37
|
-
exit 1
|
38
|
-
fi
|
39
|
-
|
40
|
-
make $MAKE_TARGET -j2
|
41
|
-
if [ $? -ne 0 ]; then
|
42
|
-
echo "build failed."
|
43
|
-
exit 1
|
44
|
-
fi
|
45
|
-
|
46
|
-
# Run tests and install if not doing cpplint/cppcheck
|
47
|
-
if [ $1 != "cppcheck" -a $1 != "cpplint" ]; then
|
48
|
-
LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so ctest -V 2>&1 | c++filt
|
49
|
-
if [ ${PIPESTATUS[0]} -ne 0 ]; then
|
50
|
-
echo "tests reported an error."
|
51
|
-
exit 1
|
52
|
-
fi
|
53
|
-
|
54
|
-
if [ $1 == "debug" ]; then
|
55
|
-
# Ignore coveralls results, keep service success uncoupled
|
56
|
-
coveralls --gcov gcov-4.8 --gcov-options '\-lp' -r .. -b . -e $1/src -e vendor >/dev/null || true
|
57
|
-
fi
|
58
|
-
|
59
|
-
mkdir dest
|
60
|
-
make install DESTDIR=`pwd`/dest
|
61
|
-
fi
|
62
|
-
|
63
|
-
# If this is a release build, prepare an artifact for github
|
64
|
-
if [ $1 == "release" ]; then
|
65
|
-
cd dest/$USERDIR
|
66
|
-
tar czvf $TRAVIS_BUILD_DIR/leatherman.tar.gz `find . -type f -print`
|
67
|
-
fi
|
68
|
-
}
|
69
|
-
|
70
|
-
case $TRAVIS_TARGET in
|
71
|
-
"CPPLINT" ) travis_make cpplint ;;
|
72
|
-
"CPPCHECK" ) travis_make cppcheck ;;
|
73
|
-
"RELEASE" ) travis_make release ;;
|
74
|
-
"DEBUG" ) travis_make debug ;;
|
75
|
-
"SHARED_RELEASE" ) travis_make shared_release ;;
|
76
|
-
"LOCALE_DISABLED" ) travis_make locale_disabled ;;
|
77
|
-
"GETTEXT_DISABLED" ) travis_make gettext_disabled ;;
|
78
|
-
*) echo "Nothing to do!"
|
79
|
-
esac
|
Binary file
|