d55c2d7a2c
* many files had no license comments at all * some files had license comments suggesting that they weren't open source (like a terse "all rights reserved") when they actually are open source. * all our files are licensed under apache and should be marked as such
30 lines
1.2 KiB
Bash
30 lines
1.2 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Copyright 2016 Google Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
start_test If parsing
|
|
# $STATISTICS_URL ends in ?ModPagespeed=off, so we need & for now.
|
|
# If we remove the query from $STATISTICS_URL, s/&/?/.
|
|
readonly CONFIG_URL="$STATISTICS_URL&config"
|
|
|
|
echo $WGET_DUMP $CONFIG_URL
|
|
CONFIG=$($WGET_DUMP $CONFIG_URL)
|
|
config_title="<title>PageSpeed Configuration</title>"
|
|
check_from "$CONFIG" fgrep -q "$config_title"
|
|
# Regular config should have a shard line:
|
|
check_from "$CONFIG" egrep -q "http://nonspdy.example.com/ Auth Shards:{http:"
|
|
check_from "$CONFIG" egrep -q "//s1.example.com/, http://s2.example.com/}"
|
|
# And "combine CSS" on.
|
|
check_from "$CONFIG" egrep -q "Combine Css"
|