Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Unified Diff: mod_for_test_scripts/710enableAuthTesting

Issue 5138001: Remove obsolete files. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/installer.git
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mod_for_test_scripts/700enableAutoxLogin ('k') | mod_for_test_scripts/750enableExternalExtensions » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_test_scripts/710enableAuthTesting
diff --git a/mod_for_test_scripts/710enableAuthTesting b/mod_for_test_scripts/710enableAuthTesting
deleted file mode 100755
index 7d2aae8564d49cabf8c3d1c2c244475d9ff976cf..0000000000000000000000000000000000000000
--- a/mod_for_test_scripts/710enableAuthTesting
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-echo "Adding mock Google Accounts server certs."
-
-case "${ARCH}" in
- arm*)
- QEMU="/tmp/qemu-arm"
- cp "/usr/bin/qemu-arm" "${ROOT_FS_DIR}/${QEMU}"
- ;;
- *86)
- QEMU=""
- ;;
- *)
- error "Invalid ARCH: ${ARCH}"
- exit 1
-esac
-
-CERT_NAME="mock_server"
-FAKE_CA_DIR="/etc/fake_root_ca"
-FAKE_NSSDB="${FAKE_CA_DIR}/nssdb"
-TMP_KEY=$(mktemp -p /tmp "${CERT_NAME}.key.XXXXX")
-TMP_CERT=$(mktemp -p /tmp "${CERT_NAME}.pem.XXXXX")
-
-mv -f "${TMP_KEY}" "${ROOT_FS_DIR}/${TMP_KEY}"
-mv -f "${TMP_CERT}" "${ROOT_FS_DIR}/${TMP_CERT}"
-
-# Generate testing root cert on the fly.
-sudo chroot "${ROOT_FS_DIR}" ${QEMU} /usr/bin/openssl req -x509 -days 21 \
- -subj "/CN=www.google.com" \
- -newkey rsa:1024 -nodes -keyout "${TMP_KEY}" -out "${TMP_CERT}"
-
-mkdir -m 0755 -p "${ROOT_FS_DIR}/${FAKE_NSSDB}"
-sudo chroot "${ROOT_FS_DIR}" ${QEMU} \
- /usr/local/bin/nsscertutil -d sql:"${FAKE_NSSDB}" -N -f <(echo "")
-cp "${ROOT_FS_DIR}/${TMP_KEY}" "${ROOT_FS_DIR}/${FAKE_CA_DIR}/${CERT_NAME}.key"
-cp "${ROOT_FS_DIR}/${TMP_CERT}" "${ROOT_FS_DIR}/${FAKE_CA_DIR}/${CERT_NAME}.pem"
-echo "DO NOT MOVE THIS DATA OFF OF THE ROOTFS!" > "${ROOT_FS_DIR}/${FAKE_CA_DIR}/README"
-sudo chroot "${ROOT_FS_DIR}" ${QEMU} \
- /usr/local/bin/nsscertutil -d sql:"${FAKE_NSSDB}" -A \
- -n FakeCert -t "C,," -a -i "${FAKE_CA_DIR}/${CERT_NAME}.pem"
-chmod 0644 "${ROOT_FS_DIR}/${FAKE_NSSDB}"/*
-
-CERT_FILE="${ROOT_FS_DIR}/etc/login_trust_root.pem"
-mv -f "${ROOT_FS_DIR}/${TMP_CERT}" "${CERT_FILE}"
-chmod 0644 "${CERT_FILE}"
-
-if [ -n "${QEMU}" ] ; then
- rm "${ROOT_FS_DIR}/${QEMU}"
-fi
-rm -f "${ROOT_FS_DIR}/${TMP_KEY}"
-rm -f "${ROOT_FS_DIR}/${TMP_CERT}"
« no previous file with comments | « mod_for_test_scripts/700enableAutoxLogin ('k') | mod_for_test_scripts/750enableExternalExtensions » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698