50 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Test 30 - Gestion des opérateurs de chaînage (`&&` et `\`)
Ce test vérifie comment `bake` et `make` interprètent les commandes avec les opérateurs `&&` et `\`.
## Structure du test
```
test-30-command-chaining/
├── README.md
├── bake/
│ ├── Bakefile
│ ├── bakefile.jar
├── make/
│ ├── Makefile
└── run_test30.sh
```
## Contenu des fichiers de règles
```makefile
Main.class: Main.java
javac Main.java && echo "Compilation terminée"
main: Main.class
java Main && echo "Exécution terminée"
```
## Objectif du test
Ce test vérifie que :
1. `bake` et `make` exécutent correctement les commandes chaînées (`&&`).
2. Lexécution sarrête si une commande échoue.
## Test manuel
```bash
cd make
make
make main
cd bake
java -cp bakefile.jar fr.monlouyan.bakefile.Main
java -cp bakefile.jar fr.monlouyan.bakefile.Main main
```
## Résultats attendus
- Si `javac` échoue, `echo "Compilation terminée"` ne doit pas s'afficher.
- Si `java Main` échoue, `echo "Exécution terminée"` ne doit pas s'afficher.