2014-06-02 10:12:08 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# Temporary method to deploy C++ integration tests to the RoboRIO
|
|
|
|
|
|
|
|
|
|
if [ $(which sshpass) ]
|
|
|
|
|
then
|
2014-07-24 18:19:43 -04:00
|
|
|
# Send stderr to /dev/null - the only thing printed to it is the login prompt
|
|
|
|
|
sshpass -p "" ssh admin@10.1.90.2 killall FRCUserProgram java 2> /dev/null
|
|
|
|
|
sshpass -p "" scp target/cmake/wpilibc/wpilibC++IntegrationTests/FRCUserProgram admin@10.1.90.2:/home/admin 2> /dev/null
|
|
|
|
|
sshpass -p "" ssh admin@10.1.90.2 ./FRCUserProgram --gtest_color=yes $* 2> /dev/null
|
2014-06-02 10:12:08 -04:00
|
|
|
else
|
|
|
|
|
ssh admin@10.1.90.2 killall FRCUserProgram
|
2014-06-07 17:37:51 -04:00
|
|
|
scp target/cmake/wpilibc/wpilibC++IntegrationTests/FRCUserProgram admin@10.1.90.2:/home/admin
|
2014-07-16 14:13:29 -04:00
|
|
|
ssh admin@10.1.90.2 ./FRCUserProgram --gtest_color=yes $*
|
2014-06-02 10:12:08 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2014-06-02 17:34:10 -04:00
|
|
|
|