Add test scripts for gpio input

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>