#!/bin/bash # Prüft die Protokoll-Logik (Victron-Entschlüsselung, Daly-Rahmen) ohne Hardware # und ohne Simulator – die Dateien sind bewusst frei von CoreBluetooth und SwiftUI. set -e cd "$(dirname "$0")" OUT=$(mktemp -d) swiftc -O -o "$OUT/tests" \ VanControl/Bluetooth/AESCounterMode.swift \ VanControl/Bluetooth/BitReader.swift \ VanControl/Bluetooth/VictronAdvertisement.swift \ VanControl/Bluetooth/DalyProtocol.swift \ VanControl/Bluetooth/DalyState.swift \ VanControl/Bluetooth/JBDProtocol.swift \ VanControl/Bluetooth/WattCycleProtocol.swift \ VanControl/Bluetooth/AlpicoolProtocol.swift \ Shared/Bluetooth/VanAlignProtocol.swift \ Shared/Models/DeviceSnapshot.swift \ Shared/Models/FridgeSettings.swift \ Shared/Models/ConfiguredDevice.swift \ Shared/Models/VehicleGraphicStyle.swift \ Shared/VehicleTilt.swift \ Shared/Models/LevelState.swift \ Shared/Models/Profile.swift \ Shared/Models/AlignmentAssistant.swift \ Shared/Models/SensorOrientation.swift \ Shared/Models/VictronCodes.swift \ Shared/WatchLink/WatchLink.swift \ VanControl/Store/KeychainStore.swift \ Tests/main.swift "$OUT/tests"