mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
- tests: add TestSupport with a single RESULT: PASS/FAIL verdict protocol - tests: assert on native return values and captured output, not runner markers - tests: replace the brittle "Bytes: 399" marker with a class-file magic check - tests: read the shared case list from tests/cases.txt - tests: add run-tests.sh and copy-bin.sh, run the tests on Linux too - tests: exclude the Loop.java demo from the compiled test output - CI: set up JDK 25 and run the integration tests in the build-linux job - Docs: refresh the AGENTS.md test/CI sections and rule 5
25 lines
638 B
Bash
25 lines
638 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Refresh tests/resources with the freshly built native binaries (Linux).
|
|
#
|
|
# Mirror of tests/copy-bin.bat: always operates relative to this script and
|
|
# fails loudly when there is nothing to copy.
|
|
set -euo pipefail
|
|
|
|
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$here"
|
|
|
|
mkdir -p resources
|
|
|
|
shopt -s nullglob
|
|
libs=(../build/bin/*.so)
|
|
if (( ${#libs[@]} == 0 )); then
|
|
echo "[ERROR] No shared libraries found in ../build/bin." >&2
|
|
echo " Build the project first: cmake --build build" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cp -f "${libs[@]}" resources/
|
|
|
|
echo "[SUCCESS] Copied build binaries to tests/resources."
|