-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-submodule.ps1
More file actions
38 lines (30 loc) · 1.11 KB
/
test-submodule.ps1
File metadata and controls
38 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env pwsh
# Script pour tester l'initialisation du sous-module SOEM
Write-Host "=== Test d'initialisation du sous-module SOEM ==="
# Test 1: Vérifier l'état actuel
Write-Host "`n1. État actuel du sous-module:"
git submodule status
Write-Host "`n2. Contenu du répertoire external:"
Get-ChildItem -Path "external" -ErrorAction SilentlyContinue
Write-Host "`n3. Vérification des fichiers critiques:"
$files = @(
"external/soem/CMakeLists.txt",
"external/soem/cmake/Darwin.cmake",
"external/soem/cmake/Linux.cmake",
"external/soem/cmake/Windows.cmake"
)
foreach ($file in $files) {
if (Test-Path $file) {
Write-Host "✓ $file existe"
}
else {
Write-Host "✗ $file manquant" -ForegroundColor Red
}
}
# Test 2: Simuler la ré-initialisation
Write-Host "`n4. Test de ré-initialisation (simulation):"
Write-Host "git submodule deinit -f external/soem"
Write-Host "git submodule update --init --recursive --force"
Write-Host "`n5. Structure du répertoire cmake:"
Get-ChildItem -Path "external/soem/cmake" -ErrorAction SilentlyContinue
Write-Host "`n=== Fin du test ==="