Sha256: d5004aa30c7b19f9aac1826c29e0fa867bb5d4070d3bffd36c4106440d1c8476

Contents?: true

Size: 816 Bytes

Versions: 4

Compression:

Stored size: 816 Bytes

Contents

#!/bin/bash

BIN_HOME="$( cd "$( dirname "$0" )" && pwd )"
TEST_HOME="$( cd "$BIN_HOME/.." && pwd )"
LOG_HOME="$TEST_HOME/logs"

image_name=$1
gem_name=$2
log_dir="$LOG_HOME/$image_name"

echo " * Removing previous log file.."
mkdir -p $log_dir
rm $log_dir/$gem_name*.log

echo " * Installing $gem_name gem in $image_name .."
$BIN_HOME/install_entry_in_docker "natives/$image_name" $gem_name | \
  tee $log_dir/$gem_name.log

echo " * Appending test status to log filename.."
test_status=$( tail -n1 $log_dir/$gem_name.log )
new_log_file="$gem_name-FAILED.log"
if [ "$test_status" == "SUCCESS" ]; then
  new_log_file="$gem_name-SUCCESS.log"
elif [ "$test_status" == "FAILED" ]; then
  new_log_file="$gem_name-FAILED.log"
else
  new_log_file="$gem_name-ERROR.log"
fi
mv $log_dir/$gem_name.log $log_dir/$new_log_file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
natives-0.6.2 catalogs_test/bin/test_entry
natives-0.6.1 catalogs_test/bin/test_entry
natives-0.6.0 catalogs_test/bin/test_entry
natives-0.5.5 catalogs_test/bin/test_entry