fome-fw/unit_tests/jenkins.sh

41 lines
738 B
Bash
Raw Normal View History

2015-07-10 06:01:56 -07:00
#!/bin/bash
echo "The PATH is ${PATH}"
cd "${WORKSPACE}"
echo "start in workspace ${PWD}"
cd firmware
echo "CD to ${PWD}"
rm -fR .dep
rm -fR build
make
2023-02-21 02:29:22 -08:00
if [ ! -f build/fome.hex ]; then
2015-07-10 06:01:56 -07:00
echo "Firmware compilation failed"
exit -1
fi
cd "${WORKSPACE}/win32_algo_tests"
echo "CD to ${PWD}"
rm -fR .dep
rm -fR build
make
2023-04-11 16:26:15 -07:00
if [ ! -f build/fome_test ]; then
2015-07-10 06:01:56 -07:00
echo "test compilation failed"
exit -1
fi
# we want to terminate if test fails
set -e
# invoke the tests - hopefully error code would be propagated?
2023-04-11 16:26:15 -07:00
build/fome_test
2015-07-10 06:01:56 -07:00
cd "${WORKSPACE}/java_console"
echo "CD to ${PWD}"
#JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
#ant