HAL for Linux (#13146)

This commit is contained in:
Scott Lahteine
2019-02-22 19:09:10 -06:00
committed by GitHub
parent 5eb82ca6a8
commit 15aa932aa6
45 changed files with 3064 additions and 3 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# Build tests for Linux x86_64
#
# exit on first failure
set -e
restore_configs
opt_set MOTHERBOARD BOARD_LINUX_RAMPS
opt_set TEMP_SENSOR_BED 1
opt_enable PIDTEMPBED EEPROM_SETTINGS
exec_test $1 $2 "Linux with EEPROM"
# cleanup
restore_configs

View File

@ -33,7 +33,7 @@ if [[ $2 = "ALL" ]]; then
declare -a tests=(${dir_list[@]/*run_tests/})
for f in "${tests[@]}"; do
env_backup
testenv=$(basename $f | cut -d"_" -f1)
testenv=$(basename $f | cut -d"-" -f1)
printf "Running \033[0;32m$f\033[0m Tests\n"
exec_test $1 "$testenv --target clean" "Setup Build Environment"
$f $1 $testenv
@ -42,7 +42,7 @@ if [[ $2 = "ALL" ]]; then
else
env_backup
exec_test $1 "$2 --target clean" "Setup Build Environment"
$2_tests $1 $2
$2-tests $1 $2
env_restore
fi
printf "\033[0;32mAll tests completed successfully\033[0m\n"