blob: 1a683c55ece2711745c522c546d7abf80e138e17 [file] [log] [blame]
#!/bin/bash
# Copyright 2019 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.
# This is a fake mosys used during tests.
if [[ "${I_AM_CROS_CONFIG}" != "1" ]]; then
exit 1
fi
if [[ $# -ne 2 ]]; then
exit 1
fi
if [[ "$1" != "platform" ]]; then
exit 1
fi
case "$2" in
name )
echo test_mosys_name_string
;;
model )
echo test_mosys_model_string
;;
brand )
echo BRND
;;
sku )
echo 123
;;
customization )
echo ABC123-MODEL
;;
* )
exit 1
;;
esac