Commit 29635f8c authored by Benoit Rat's avatar Benoit Rat

alpha-pts: add the FAN test using the new shw_tool

parent 0b281fa6
......@@ -19,13 +19,33 @@
printf "======: $0\n"
. 000-functions.sh
pwm_module=/wr/lib/modules/at91_softpwm.ko
if [[ -f $pwm_module ]]; fi
insmod &> /dev/null
else
echo "$pwm_module not found"
fi
speed=10
while [ speed -lt 80 ]; do
${APTS_SWITCH_DIR}/bin/shw_tool --fan ${speed}
speed=$(expr $speed + 10)
done
user_echoasking "y/n" "Did you hear the speed of FAN increase"
ret0=$ret
if [ $ret == "n" ]; then
user_echoasking "y/n" "Does the FAN is working?"
ret1=$ret
if [ $ret == "n" ]; then
echo "WARNING: NO FAN DETECTED! YOU SHOULD STOP THIS TEST BEFORE OVERHEATING YOUR FPGA"
fi
fi
exit_multierr $ret0 $ret1
printf "To be implemented\n"
exit_multierr 0
ret=0
user_echoasking "y/n" "Did you see the LEDs moving" "LEDS"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment