This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test_package.sh for running system tests.
- Loading branch information
Showing
8 changed files
with
70 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# Copyright 2016 Google Inc. All Rights Reserved. | ||
# Author: cheesy@google.com (Steve Hill) | ||
# | ||
# Remove old mod_pagespeed debs and install a new one. | ||
|
||
pkg="$1" | ||
|
||
echo Purging old releases... | ||
# rpm --erase only succeeds if all packages listed are installed, so we need | ||
# to find which one is installed and only erase that. | ||
rpm --query mod-pagespeed-stable mod-pagespeed-beta | \ | ||
grep -v "is not installed" | \ | ||
xargs --no-run-if-empty sudo rpm --erase | ||
|
||
echo "Installing $pkg..." | ||
rpm --install "$pkg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
os_redirector.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Copyright 2016 Google Inc. All Rights Reserved. | ||
# Author: cheesy@google.com (Steve Hill) | ||
# | ||
# Install a mod_pagespeed package and run tests on it. | ||
|
||
source "$(dirname "$BASH_SOURCE")/shell_utils.sh" || exit 1 | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $(basename $0) <pagespeed_package>" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ $UID -ne 0 ]; then | ||
echo "This script requires root. Re-execing myself with sudo" | ||
exec sudo "$0" "$@" | ||
exit 1 # NOTREACHED | ||
fi | ||
|
||
pkg="$1" | ||
|
||
mkdir -p log | ||
|
||
echo "Installing $pkg..." | ||
run_with_log log/install.log $(dirname "$0")/install_mps_package.sh "$pkg" | ||
|
||
echo Test restart to make sure config file is valid ... | ||
run_with_log log/install.log make -C install apache_debug_restart | ||
|
||
echo Testing release ... | ||
run_with_log log/system_test.log make -C install apache_vm_system_tests |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# Copyright 2016 Google Inc. All Rights Reserved. | ||
# Author: cheesy@google.com (Steve Hill) | ||
# | ||
# Remove old mod_pagespeed debs and install a new one. | ||
|
||
pkg="$1" | ||
|
||
echo Purging old releases... | ||
dpkg --purge mod-pagespeed-beta mod-pagespeed-stable | ||
|
||
echo "Installing $pkg..." | ||
dpkg --install "$pkg" |