Refactoring & portable Testpfade

This commit is contained in:
Tim
2026-07-06 21:51:48 +02:00
parent 9ed66dacbc
commit fc37f44d26
9 changed files with 246 additions and 206 deletions
+2 -11
View File
@@ -29,17 +29,8 @@ fi
# Mocks ausführbar machen
chmod +x "${TEST_DIR}/mocks/"*
# Test-Fixtures prüfen
if [[ ! -f "${TEST_DIR}/fixtures/Logseq-linux-x64-0.10.15.AppImage" ]]; then
echo -e "${YELLOW}Erstelle Test-Fixtures...${NC}"
for ver in 0.10.14 0.10.15 0.10.16; do
{
echo "#!/bin/bash"
echo "echo \"Logseq ${ver} dummy\""
} > "${TEST_DIR}/fixtures/Logseq-linux-x64-${ver}.AppImage"
chmod +x "${TEST_DIR}/fixtures/Logseq-linux-x64-${ver}.AppImage"
done
fi
# Test-Fixtures werden on-the-fly in den Tests erstellt (über VERSION_* Variablen)
# Daher ist hier keine statische Vorbereitung mehr nötig.
echo -e "${YELLOW}Führe Tests aus...${NC}"
echo