Bug: 162111908 Test: On linux/mac: HOSTNAME="" adb keygen mykey; cat mykey.pub # Also LOGNAME HOSTNAME="测试" adb keygen mykey; cat mykey.pub HOSTNAME="test" adb keygen mykey; cat mykey.pub Test: On Windows: set COMPUTERNAME=&& adb keygen mykey && powershell -command "get-content -encoding utf8 mykey.pub" # Also USERNAME set COMPUTERNAME=测试&& adb keygen mykey && powershell -command "get-content -encoding utf8 mykey.pub" set COMPUTERNAME=test&& adb keygen mykey && powershell -command "get-content -encoding utf8 mykey.pub" Change-Id: I62c952c511a620286aa4e05b1763361406e9f89a
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
//
|
|
// Copyright (C) 2019 The Android Open Source Project
|
|
//
|
|
// 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.
|
|
//
|
|
|
|
cc_test {
|
|
name: "adb_crypto_test",
|
|
srcs: [
|
|
"rsa_2048_key_test.cpp",
|
|
"x509_generator_test.cpp",
|
|
],
|
|
|
|
compile_multilib: "first",
|
|
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcrypto",
|
|
"libcrypto_utils",
|
|
"libprotobuf-cpp-lite",
|
|
],
|
|
|
|
// Let's statically link them so we don't have to install it onto the
|
|
// system image for testing.
|
|
static_libs: [
|
|
"libadb_crypto_static",
|
|
"libadb_protos_static",
|
|
"libadb_sysdeps",
|
|
],
|
|
|
|
test_suites: ["device-tests"],
|
|
}
|