Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

826 B
Raw Blame
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
task_developer_dir="${DEVELOPER_DIR:-$(xcode-select -p)}"
test -d "$task_developer_dir/Platforms/MacOSX.platform"
export DEVELOPER_DIR="$task_developer_dir"
task_test_dir=$(mktemp -d /tmp/fluidvoice-command-markdown.XXXXXX)
trap 'rm -rf "$task_test_dir"' EXIT
# Compile the real value parser, excluding views and the application singleton.
sed '/^@MainActor/,$d' Sources/Fluid/Views/CommandMarkdownContent.swift > "$task_test_dir/Markdown.swift"
{ echo 'import Foundation'; sed -n '/^struct CommandToolOutput:/,$p' Sources/Fluid/Views/CommandMessageView.swift; } > "$task_test_dir/ToolOutput.swift"
xcrun swiftc -parse-as-library "$task_test_dir/Markdown.swift" "$task_test_dir/ToolOutput.swift" Tests/CommandMarkdownParserTests.swift -o "$task_test_dir/tests"
"$task_test_dir/tests"