mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-12 00:47:50 +00:00
- Tests for connection plans, prepared chats, edit/delete/selection, forwarding, drafts, group preferences and admission, group lifecycle, compose, live messages, item info, reports and moderation, privacy and SimpleX Lock, chat data and database, address and contact preferences, profiles, contact info, unread and search, files and reactions, group info and events, chat shell and statuses, joining, support and business chats, settings and appearance, network and servers, channels, remote desktop, Android intents and notifications. - Harness: server stop/start, smp2/xftp2, SOCKS stub, CLI chat relays, CLI remote host/controller, chat scroll and drag helpers, file chooser answers, clipboard in popups. - ui-tests workflow (manual dispatch only) running both suites on GitHub runners. - App findings recorded in plan section 15.5 (items 7-23), each covered by a test marked @KnownAppIssue.
42 lines
1.1 KiB
Bash
Executable File
42 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Builds the CLI and uitest-servers, the UI tests' peers and local servers, as apps/multiplatform/scripts/uitest.sh
|
|
# builds them (-O0, flag uitest), and packs the two executables.
|
|
# Usage: scripts/ci/ui-tests/build-bin.sh <output .tar.gz>
|
|
# The configuration is build-core.sh's but without client_library, which makes uitest-servers unbuildable.
|
|
|
|
set -euo pipefail
|
|
|
|
mkdir -p "$(dirname "$1")"
|
|
out="$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
|
|
flags=(-O0 -f uitest)
|
|
exes=(simplex-chat uitest-servers)
|
|
|
|
ghc --version
|
|
cabal --version
|
|
|
|
cat > cabal.project.local << EOF
|
|
ignore-project: False
|
|
jobs: \$ncpus
|
|
|
|
package direct-sqlcipher
|
|
flags: +openssl
|
|
EOF
|
|
|
|
cabal build "${flags[@]}" "${exes[@]/#/exe:}"
|
|
|
|
pkg=$(mktemp -d)
|
|
for exe in "${exes[@]}"; do
|
|
# in a fresh project list-bin first prints git's output from syncing the source-repository-packages
|
|
cp "$(cabal list-bin "${flags[@]}" "exe:$exe" | tail -n 1)" "$pkg"
|
|
done
|
|
ldd "$pkg"/*
|
|
if ldd "$pkg"/* | grep 'not found'; then
|
|
echo "error: the executables need these libraries"
|
|
exit 1
|
|
fi
|
|
du -sh "$pkg"/*
|
|
|
|
tar -C "$pkg" -czf "$out" .
|
|
ls -la "$out"
|