-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (30 loc) · 1.34 KB
/
Makefile
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
CXXARGS = -g -Wall
CXXFLAGS = -I. $(CXXARGS)
all: tp1.exe
tp1.exe: main.cc cmdline.cc diccionario.cc arreglo.cc simbolo.cc compresion.cc compresion.h diccionario.h arreglo.h simbolo.h cmdline.h
$(CXX) $(CXXFLAGS) -o tp1.exe cmdline.cc main.cc diccionario.cc arreglo.cc simbolo.cc compresion.cc
clean:
$(RM) -vf *.o *.exe *.t *.out *.err
valgrind:
for numero in 0 1 2 3 4 5 6 7 8 9; do \
echo \ ;\
echo TEST NÚMERO $$numero ----------------------;\
valgrind ./tp1.exe -p compress -i "./tests/entrada$${numero}.txt" -o "./tests/salida$${numero}.txt" ;\
valgrind ./tp1.exe -p decompress -i "./tests/salida$${numero}.txt" -o "./tests/vuelta$${numero}.txt" ;\
echo \ ;\
done
test:
for numero in 1 2 3 4 5 6 7 8 9; do \
echo \ ;\
echo TEST NÚMERO $$numero ----------------------;\
./tp1.exe -p compress -i "./tests/entrada$${numero}.txt" -o "./tests/salida$${numero}.txt" ;\
./tp1.exe -p decompress -i "./tests/salida$${numero}.txt" -o "./tests/vuelta$${numero}.txt" ;\
diff -q -s "./tests/vuelta$${numero}.txt" "./tests/entrada$${numero}.txt" ;\
echo \ ;\
done
test_big:
echo TEST DE ARCHIVO GRANDE ;\
./tp1.exe -p compress -i "./tests/entrada_big.txt" -o "./tests/salida_big.txt" ;\
./tp1.exe -p decompress -i "./tests/salida_big.txt" -o "./tests/vuelta_big.txt" ;\
diff -q -s "./tests/entrada_big.txt" "./tests/vuelta_big.txt" ;\
echo \ ;\