Améliorations des différents tests
This commit is contained in:
parent
2cc6992f20
commit
d7fa531f47
bakefile.jar
build/fr/monlouyan/bakefile
BakeCLI.classBakeEngine.classBakefileParser.classCommandExecutor.classDependencyResolver.classMain.classRule.classTimestampManager.class
tests
C
bakefile.jar
test-01-from-nothing
test-02-already-exist
test-03-circular
test-04-edited
test-05-variables
test-06-variables-on-cascade
Java
BIN
bakefile.jar
Normal file
BIN
bakefile.jar
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/BakeCLI.class
Normal file
BIN
build/fr/monlouyan/bakefile/BakeCLI.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/BakeEngine.class
Normal file
BIN
build/fr/monlouyan/bakefile/BakeEngine.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/BakefileParser.class
Normal file
BIN
build/fr/monlouyan/bakefile/BakefileParser.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/CommandExecutor.class
Normal file
BIN
build/fr/monlouyan/bakefile/CommandExecutor.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/DependencyResolver.class
Normal file
BIN
build/fr/monlouyan/bakefile/DependencyResolver.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/Main.class
Normal file
BIN
build/fr/monlouyan/bakefile/Main.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/Rule.class
Normal file
BIN
build/fr/monlouyan/bakefile/Rule.class
Normal file
Binary file not shown.
BIN
build/fr/monlouyan/bakefile/TimestampManager.class
Normal file
BIN
build/fr/monlouyan/bakefile/TimestampManager.class
Normal file
Binary file not shown.
BIN
tests/C/bakefile.jar
Normal file
BIN
tests/C/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-01-from-nothing/bake/bakefile.jar
Normal file
BIN
tests/C/test-01-from-nothing/bake/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-01-from-nothing/bakefile.jar
Normal file
BIN
tests/C/test-01-from-nothing/bakefile.jar
Normal file
Binary file not shown.
@ -1,12 +0,0 @@
|
||||
# Test 1 : Compilation depuis rien
|
||||
|
||||
## Description
|
||||
Ce test vérifie que lorsque les fichiers objets et exécutables sont absents,
|
||||
le programme Bake compile correctement le fichier source `main.c` en `main`.
|
||||
|
||||
## Fichiers utilisés
|
||||
- `main.c` : Fichier source en C.
|
||||
- `Bakefile` : Contient les règles de compilation.
|
||||
|
||||
## Résultat attendu
|
||||
La compilation doit se faire.
|
BIN
tests/C/test-01-from-nothing/make/bakefile.jar
Normal file
BIN
tests/C/test-01-from-nothing/make/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-02-already-exist/bake/bakefile.jar
Normal file
BIN
tests/C/test-02-already-exist/bake/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-02-already-exist/bakefile.jar
Normal file
BIN
tests/C/test-02-already-exist/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-02-already-exist/make/bakefile.jar
Normal file
BIN
tests/C/test-02-already-exist/make/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-03-circular/bake/bakefile.jar
Normal file
BIN
tests/C/test-03-circular/bake/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-03-circular/bakefile.jar
Normal file
BIN
tests/C/test-03-circular/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-03-circular/make/bakefile.jar
Normal file
BIN
tests/C/test-03-circular/make/bakefile.jar
Normal file
Binary file not shown.
@ -1,13 +0,0 @@
|
||||
# Test 2 : Compilation où le résultat existe déjà
|
||||
|
||||
## Description
|
||||
Ce test vérifie que si l'exécutable `main` est déjà présent et que `main.c`
|
||||
n'a pas été modifié, alors `Bake` ne tente pas de recompiler.
|
||||
|
||||
## Fichiers utilisés
|
||||
- `main.c` : Fichier source inchangé.
|
||||
- `Bakefile` : Contient les règles de compilation.
|
||||
- `main` : Exécutable déjà généré.
|
||||
|
||||
## Résultat attendu
|
||||
Aucun message indiquant la compilation ne doit apparaître.
|
BIN
tests/C/test-04-edited/bake/bakefile.jar
Normal file
BIN
tests/C/test-04-edited/bake/bakefile.jar
Normal file
Binary file not shown.
Binary file not shown.
@ -2,6 +2,6 @@
|
||||
|
||||
int main(void) {
|
||||
printf("Ceci est un programme de test du Bakefile !\n");
|
||||
printf("test\n");
|
||||
printf("On essaye de faire si le programme recompile après une modification....\n");
|
||||
return 0;
|
||||
}
|
||||
|
BIN
tests/C/test-04-edited/bakefile.jar
Normal file
BIN
tests/C/test-04-edited/bakefile.jar
Normal file
Binary file not shown.
@ -1,13 +0,0 @@
|
||||
# Test 2 : Compilation où le résultat existe déjà
|
||||
|
||||
## Description
|
||||
Ce test vérifie que si l'exécutable `main` est déjà présent et que `main.c`
|
||||
n'a pas été modifié, alors `Bake` ne tente pas de recompiler.
|
||||
|
||||
## Fichiers utilisés
|
||||
- `main.c` : Fichier source inchangé.
|
||||
- `Bakefile` : Contient les règles de compilation.
|
||||
- `main` : Exécutable déjà généré.
|
||||
|
||||
## Résultat attendu
|
||||
Aucun message indiquant la compilation ne doit apparaître.
|
BIN
tests/C/test-04-edited/make/bakefile.jar
Normal file
BIN
tests/C/test-04-edited/make/bakefile.jar
Normal file
Binary file not shown.
Binary file not shown.
@ -2,6 +2,6 @@
|
||||
|
||||
int main(void) {
|
||||
printf("Ceci est un programme de test du Bakefile !\n");
|
||||
printf("test\n");
|
||||
printf("On essaye de faire si le programme recompile après une modification....\n");
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,8 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
COMPILATEUR = gcc
|
||||
OPTIONS = -o
|
||||
EXECUTABLE = main
|
||||
SOURCE = main.c
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGS) -o main main.c
|
||||
$(COMPILATEUR) $(FLAGS) $(OPTIONS) $(EXECUTABLE) $(SOURCE)
|
||||
|
BIN
tests/C/test-05-variables/bake/bakefile.jar
Normal file
BIN
tests/C/test-05-variables/bake/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-05-variables/bakefile.jar
Normal file
BIN
tests/C/test-05-variables/bakefile.jar
Normal file
Binary file not shown.
@ -1,4 +1,8 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
COMPILATEUR = gcc
|
||||
OPTIONS = -o
|
||||
EXECUTABLE = main
|
||||
SOURCE = main.c
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGS) -o main main.c
|
||||
$(EXECUTABLE): $(SOURCE)
|
||||
$(COMPILATEUR) $(FLAGS) $(OPTIONS) $(EXECUTABLE) $(SOURCE)
|
||||
|
@ -1 +0,0 @@
|
||||
# Test 5 : Utilisation de variables
|
BIN
tests/C/test-05-variables/make/bakefile.jar
Normal file
BIN
tests/C/test-05-variables/make/bakefile.jar
Normal file
Binary file not shown.
0
tests/C/test-06-variables-on-cascade/bake/README.md → tests/C/test-06-variables-on-cascade/README.md
0
tests/C/test-06-variables-on-cascade/bake/README.md → tests/C/test-06-variables-on-cascade/README.md
@ -1,6 +1,10 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
FLAGSS = $(FLAGS)
|
||||
FLAGSSS = $(FLAGSS)
|
||||
FLAGSSSS = $(FLAGSSS)
|
||||
FLAGSSSSS = $(FLAGSSSS)
|
||||
FLAGSSSSSS = $(FLAGSSSSS)
|
||||
FLAGSSSSSSS = $(FLAGSSSSSS)
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGSSS) -o main main.c
|
||||
gcc $(FLAGSSSSSSS) -o main main.c
|
||||
|
@ -1,6 +0,0 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
FLAGSS = $(FLAGS)
|
||||
FLAGSSS = $(FLAGSS)
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGSSS) -o main main.c
|
BIN
tests/C/test-06-variables-on-cascade/bake/bakefile.jar
Normal file
BIN
tests/C/test-06-variables-on-cascade/bake/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/C/test-06-variables-on-cascade/bakefile.jar
Normal file
BIN
tests/C/test-06-variables-on-cascade/bakefile.jar
Normal file
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
FLAGSS = $(FLAGS)
|
||||
FLAGSSS = $(FLAGSS)
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGSSS) -o main main.c
|
@ -1,6 +1,10 @@
|
||||
FLAGS = -ansi -pedantic
|
||||
FLAGSS = $(FLAGS)
|
||||
FLAGSSS = $(FLAGSS)
|
||||
FLAGSSSS = $(FLAGSSS)
|
||||
FLAGSSSSS = $(FLAGSSSS)
|
||||
FLAGSSSSSS = $(FLAGSSSSS)
|
||||
FLAGSSSSSSS = $(FLAGSSSSSS)
|
||||
|
||||
main: main.c
|
||||
gcc $(FLAGSSS) -o main main.c
|
||||
gcc $(FLAGSSSSSSS) -o main main.c
|
||||
|
@ -1 +0,0 @@
|
||||
# Test 6 : Gestion des variables en cascade
|
BIN
tests/C/test-06-variables-on-cascade/make/bakefile.jar
Normal file
BIN
tests/C/test-06-variables-on-cascade/make/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/Java/bakefile.jar
Normal file
BIN
tests/Java/bakefile.jar
Normal file
Binary file not shown.
BIN
tests/Java/test-01-from-nothing/bake/bakefile.jar
Normal file
BIN
tests/Java/test-01-from-nothing/bake/bakefile.jar
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user