From 1e10e510b23bc04d949b7180db0d513317d0a520 Mon Sep 17 00:00:00 2001 From: James Maki Date: Mon, 3 May 2010 17:57:14 -0500 Subject: register devices with spi controller --- io-tool/mts-io-sysfs-inc.sh | 2 +- io-tool/sysfs-tests | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'io-tool') diff --git a/io-tool/mts-io-sysfs-inc.sh b/io-tool/mts-io-sysfs-inc.sh index 7c24353..c4a48db 100644 --- a/io-tool/mts-io-sysfs-inc.sh +++ b/io-tool/mts-io-sysfs-inc.sh @@ -26,7 +26,7 @@ VERBOSE=false PLATFORM_NAME=mtcdp SYSFS_PLATFORM_DIR=/sys/devices/platform/${PLATFORM_NAME} -MTS_IO_CONTROLS_STATUS_LED=true +MTS_IO_CONTROLS_STATUS_LED=false MTS_IO_CONTROLS_LS_LED=false LEDS_GPIO_DIR=/sys/devices/platform/leds-gpio/leds diff --git a/io-tool/sysfs-tests b/io-tool/sysfs-tests index cb65c57..7b07955 100755 --- a/io-tool/sysfs-tests +++ b/io-tool/sysfs-tests @@ -83,11 +83,13 @@ show_assert_in_set() { for value in "$@"; do if [ "${value}" = "${actual_value}" ]; then - log_info "${name} is '${value}'" + log_info "${name} is '${actual_value}'" return fi done + log_info "${name} is '${actual_value}'" + exit 1 } @@ -100,6 +102,14 @@ modprobe mts-io sleep 2 +show_assert_in_set board-temperature {30..40} +store board-temperature 1000 +show_assert_in_set board-temperature {30..40} + +#for ((i = 0; i < 1000; i++)); do +# show_assert_in_set board-temperature {30..40} +#done + show_assert radio-reset 1 log_info "resetting radio..." store radio-reset 0 @@ -171,10 +181,6 @@ show_assert reset 0 store reset 1 show_assert reset 0 -show_assert_in_set board-temperature {30..40} -store board-temperature 1000 -show_assert_in_set board-temperature {30..40} - show_assert reset-monitor "-1 10 12" exit 0 -- cgit v1.2.3