import "../../../justfile"

# Build and deploy the ADS7883 tests to the copper7 target.
deploy-cu-ads7883-tests:
	#!/usr/bin/env bash
	set -euo pipefail
	EXEC=$(cargo test --message-format=json --target arm-unknown-linux-musleabihf --no-run | jq -r 'select(.executable and .target.kind[] == "test") | .executable')
	echo "This is the executable: $EXEC"
	scp "$EXEC" copper7:testads7883
	scp tests/copperconfig.ron copper7:tests/copperconfig.ron
