Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72e4ad63a8 |
No files matched your search
@@ -120,8 +120,11 @@ jobs:
|
||||
|
||||
# The unit tests (voice detector, resampler, identity keys, codecs, protocol) built for aarch64 and run
|
||||
# under user-mode qemu. Emulated, not native hardware; the bridge smoke tests spawn the core binary and
|
||||
# are left to the host build above.
|
||||
# are left to the host build above. Tests that re-run their own binary as a child get the same emulator
|
||||
# and sysroot explicitly (core/src/test_exec.rs): without binfmt the kernel cannot exec the aarch64 ELF.
|
||||
- name: Core unit tests under qemu-aarch64 (emulated, not native hardware)
|
||||
env:
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER: qemu-aarch64 -L /usr/aarch64-linux-gnu
|
||||
TEAMSPEACH_TEST_QEMU: qemu-aarch64
|
||||
TEAMSPEACH_TEST_QEMU_SYSROOT: /usr/aarch64-linux-gnu
|
||||
run: cargo test --manifest-path core/Cargo.toml --locked --target aarch64-unknown-linux-gnu --bin teamspeach-core
|
||||
+2
-3
@@ -1,10 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 0.1.5 — 2026-11-02
|
||||
## 0.1.6 — 2026-11-02
|
||||
|
||||
Current development snapshot; full visual parity and native Asahi verification remain unfinished.
|
||||
Version 0.1.5 was not published: CI rejected an empty changelog section.
|
||||
|
||||
- Added source-style advanced notification controls with independent persisted event choices,
|
||||
confirmation before hiding advanced controls and single-event expansion.
|
||||
|
||||
Generated
+1
-1
@@ -1945,7 +1945,7 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417"
|
||||
|
||||
[[package]]
|
||||
name = "teamspeach-core"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
dependencies = [
|
||||
"audiopus",
|
||||
"base64 0.22.1",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "teamspeach-core"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
edition = "2021"
|
||||
rust-version = "1.89"
|
||||
description = "TeamsPeach native TeamSpeak protocol core (stdio JSON bridge)"
|
||||
|
||||
@@ -222,10 +222,15 @@ mod tests {
|
||||
use super::*;
|
||||
#[test]
|
||||
fn controlled_executable_output_and_failure() {
|
||||
let executable = std::env::current_exe().unwrap();
|
||||
let data = output(executable.to_str().unwrap(), &["--list"]).unwrap();
|
||||
let (program, prefix) = crate::test_exec::self_invocation();
|
||||
let run = |option: &'static str| {
|
||||
let mut args: Vec<&str> = prefix.iter().map(String::as_str).collect();
|
||||
args.push(option);
|
||||
output(&program, &args)
|
||||
};
|
||||
let data = run("--list").unwrap();
|
||||
assert!(String::from_utf8(data).unwrap().contains("identity_uses_start_time_serial_and_exact_monitor"));
|
||||
assert!(output(executable.to_str().unwrap(), &["--not-a-real-test-option"]).is_err());
|
||||
assert!(run("--not-a-real-test-option").is_err());
|
||||
}
|
||||
#[test]
|
||||
fn identity_uses_start_time_serial_and_exact_monitor() {
|
||||
|
||||
+2
-1
@@ -670,7 +670,8 @@ mod tests {
|
||||
fn local_volume_decode_mix_subprocess_smoke() {
|
||||
// Exercise the real encode/decode/mix proof in an isolated OS subprocess, not a
|
||||
// server, live microphone, user profile or running desktop application's core.
|
||||
let output = std::process::Command::new(std::env::current_exe().unwrap())
|
||||
let (program, prefix) = crate::test_exec::self_invocation();
|
||||
let output = std::process::Command::new(program).args(prefix)
|
||||
.args(["--exact", "audio::tests::controlled_two_speaker_local_volume", "--nocapture"])
|
||||
.output().unwrap();
|
||||
let stdout = String::from_utf8(output.stdout).unwrap();
|
||||
|
||||
@@ -20,6 +20,8 @@ mod secure_fs;
|
||||
mod session;
|
||||
mod snapshot;
|
||||
mod stdio;
|
||||
#[cfg(test)]
|
||||
mod test_exec;
|
||||
mod vad;
|
||||
mod voice_dsp;
|
||||
mod whisper;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
//! Test-only: run the current test binary again as a child process.
|
||||
//!
|
||||
//! Cross-target unit tests run under user-mode qemu without binfmt (CI), where the kernel cannot execute
|
||||
//! the target ELF directly. There the emulator and the target sysroot are named explicitly by
|
||||
//! `TEAMSPEACH_TEST_QEMU` and `TEAMSPEACH_TEST_QEMU_SYSROOT`, and the child runs as
|
||||
//! `<qemu> -L <sysroot> <test binary> <args>`. Without `TEAMSPEACH_TEST_QEMU` the binary runs directly.
|
||||
|
||||
/// Program and leading arguments that execute the current test binary; append the test arguments.
|
||||
pub fn self_invocation() -> (String, Vec<String>) {
|
||||
let exe = std::env::current_exe().expect("current test executable")
|
||||
.into_os_string().into_string().expect("UTF-8 test executable path");
|
||||
match std::env::var("TEAMSPEACH_TEST_QEMU") {
|
||||
Ok(qemu) => {
|
||||
let sysroot = std::env::var("TEAMSPEACH_TEST_QEMU_SYSROOT")
|
||||
.expect("TEAMSPEACH_TEST_QEMU_SYSROOT must name the target sysroot when TEAMSPEACH_TEST_QEMU is set");
|
||||
(qemu, vec!["-L".into(), sysroot, exe])
|
||||
}
|
||||
Err(std::env::VarError::NotPresent) => (exe, Vec::new()),
|
||||
Err(e) => panic!("TEAMSPEACH_TEST_QEMU: {e}"),
|
||||
}
|
||||
}
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "teamspeach",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "teamspeach",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
"electron-updater": "6.8.11",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "teamspeach",
|
||||
"productName": "TeamsPeach",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "Desktop TeamSpeak 6 client: voice, chat and TS6 screenshare viewing",
|
||||
"main": "app/main/main.js",
|
||||
"private": true,
|
||||
|
||||
Reference in new issue
Block a user