diff options
author | James Maki <jmaki@multitech.com> | 2010-05-03 17:57:14 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-05-03 17:57:14 -0500 |
commit | 1e10e510b23bc04d949b7180db0d513317d0a520 (patch) | |
tree | b8a8456dde64bd5ad5a012d8600ba2d4a16f46b2 /io-tool/sysfs-tests | |
parent | 29fb8a9b088bf7d4dfc33bfd6c295c7f4d1897c9 (diff) | |
download | mts-io-1e10e510b23bc04d949b7180db0d513317d0a520.tar.gz mts-io-1e10e510b23bc04d949b7180db0d513317d0a520.tar.bz2 mts-io-1e10e510b23bc04d949b7180db0d513317d0a520.zip |
register devices with spi controller
Diffstat (limited to 'io-tool/sysfs-tests')
-rwxr-xr-x | io-tool/sysfs-tests | 16 |
1 files changed, 11 insertions, 5 deletions
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 |