From 53e082ef1048ebf1d89055917ad4c012592647ff Mon Sep 17 00:00:00 2001 From: Jeremiah Snapp Date: Sat, 20 Mar 2021 12:12:51 -0400 Subject: test Signed-off-by: Jeremiah Snapp --- omnibus/omnibus-test.sh | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh index 2c1313681c..1ba8b11312 100644 --- a/omnibus/omnibus-test.sh +++ b/omnibus/omnibus-test.sh @@ -7,24 +7,24 @@ version="${VERSION:-latest}" export INSTALL_DIR="/opt/$product" -echo "--- Installing $channel $product $version" -package_file="$("/opt/$TOOLCHAIN/bin/install-omnibus-product" -c "$channel" -P "$product" -v "$version" | tail -1)" +# echo "--- Installing $channel $product $version" +# package_file="$("/opt/$TOOLCHAIN/bin/install-omnibus-product" -c "$channel" -P "$product" -v "$version" | tail -1)" -echo "--- Verifying omnibus package is signed" -"/opt/$TOOLCHAIN/bin/check-omnibus-package-signed" "$package_file" +# echo "--- Verifying omnibus package is signed" +# "/opt/$TOOLCHAIN/bin/check-omnibus-package-signed" "$package_file" -sudo rm -f "$package_file" +# sudo rm -f "$package_file" -echo "--- Verifying ownership of package files" +# echo "--- Verifying ownership of package files" -NONROOT_FILES="$(find "$INSTALL_DIR" ! -user 0 -print)" -if [[ "$NONROOT_FILES" == "" ]]; then - echo "Packages files are owned by root. Continuing verification." -else - echo "Exiting with an error because the following files are not owned by root:" - echo "$NONROOT_FILES" - exit 1 -fi +# NONROOT_FILES="$(find "$INSTALL_DIR" ! -user 0 -print)" +# if [[ "$NONROOT_FILES" == "" ]]; then +# echo "Packages files are owned by root. Continuing verification." +# else +# echo "Exiting with an error because the following files are not owned by root:" +# echo "$NONROOT_FILES" +# exit 1 +# fi echo "--- Running verification for $channel $product $version" @@ -150,5 +150,12 @@ fi export CHEF_LICENSE=accept-no-persist cd "$chef_gem" -sudo -E bundle install --jobs=3 --retry=3 -sudo -E bundle exec rspec --profile -f progress +# sudo -E bundle install --jobs=3 --retry=3 +# sudo -E bundle exec rspec --profile -f documentation spec/functional/resource/cron_spec.rb spec/functional/resource/group_spec.rb spec/functional/resource/user/mac_user_spec.rb +# sudo -E bundle exec rspec --profile -f documentation spec/functional/resource/user/mac_user_spec.rb spec/functional/resource/group_spec.rb spec/functional/resource/cron_spec.rb + +# sudo -E bundle exec rspec --profile -f documentation spec/functional/resource/user/mac_user_spec.rb +# sleep 80 +# sleep 30 +# sleep 60 +sudo -E bundle exec rspec --profile -f documentation spec/functional/resource/group_spec.rb -- cgit v1.2.1