1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-01 19:42:04 +03:00
esp8266/tests/lib-skip-ino.sh
Max Prokhorov 8e2094eb08
CI - build with arduino-cli (#9241)
Sync with GCC14 branch test scripts

Remove explicit IDE, HARDWARE & LIBRARIES envirnoment in workflows in favour of script defaults
Remove explicit dependency on IDE & HARDWARE path, assume arduino-cli default paths
Remove explicit library install for platformio, share library path & downloaded libraries with arduino
Bump ConfigFile dependencies, set ArduinoJson to v7 & update blob install script
2025-05-20 18:41:11 +03:00

54 lines
1.2 KiB
Bash

# return 0 if this sketch should not be built in CI (for other archs, not needed, etc.)
function skip_ino()
{
local ino=$1
case "$ino" in
*"/#attic/"* | \
*"/AvrAdcLogger/"* | \
*"/RtcTimestampTest/"* | \
*"/SoftwareSpi/"* | \
*"/TeensyDmaAdcLogger/"* | \
*"/TeensyRtcTimestamp/"* | \
*"/TeensySdioDemo/"* | \
*"/TeensySdioLogger/"* | \
*"/UnicodeFilenames/"* | \
*"/UserChipSelectFunction/"* | \
*"/UserSPIDriver/"* | \
*"/debug/"* | \
*"/examplesV1/"* | \
*"/onewiretest/"*)
return 0
;;
*"Teensy"*)
return 0
;;
*)
;;
esac
return 1
}
# return reason if this sketch is not the main one or it is explicitly disabled with .test.skip in its directory
function skip_sketch()
{
local sketch=$1
local sketchdir
sketchdir=$(dirname $sketch)
local sketchdirname
sketchdirname=$(basename $sketchdir)
local sketchname
sketchname=$(basename $sketch)
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
echo "Skipping $sketch (not the main sketch file)"
fi
if skip_ino "$sketch" || [[ -f "$sketchdir/.test.skip" ]]; then
echo "Skipping $sketch"
fi
}