Skip to content

Commit fc874e7

Browse files
committed
Makefile: Adicionada diretiva verificar
Signed-off-by: Bruno Ribas <[email protected]>
1 parent 91359fc commit fc874e7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ endif
99

1010
INPUT=$(patsubst formulas/%.cnf,input/%,${FORMULAS})
1111
TESTRUN=$(patsubst formulas/%.cnf,benchmark/%,${FORMULAS})
12+
VERIFICARUN=$(patsubst benchmark/%,verificar/%,${TESTRUN})
1213
TIMELIMIT?=30
1314
DEFAULTSEED?=3000
1415
GSATGENERATOR=./simple-gsat-io-generator
1516
BENCHMARKBINARY?=$(GSATGENERATOR)
1617

1718
all: $(INPUT)
18-
@echo All DONE
1919

2020
input/%: formulas/%.cnf
2121
./simple-gsat-io-generator generator $(DEFAULTSEED) $^ $@ $(patsubst input/%,output/%,$@) $(TIMELIMIT)
@@ -28,9 +28,17 @@ benchmark: benchmarkdir all $(TESTRUN)
2828

2929
benchmarkdir:
3030
mkdir -p benchmark
31+
32+
verificar/%: output/%
33+
@echo "==== Comparando $^"
34+
@diff -q -s $^ $(patsubst verificar/%,benchmark/%,$@)
35+
@echo
36+
37+
verificar: benchmark $(VERIFICARUN)
38+
3139
clean:
3240
rm -f benchmark/*
3341
dist-clean: clean
3442
rm -f input/* output/*
3543

36-
PHONY: all benchmark benchmarkdir clean dist-clean
44+
PHONY: all benchmark benchmarkdir clean dist-clean verificar

0 commit comments

Comments
 (0)