File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
INPUT =$(patsubst formulas/% .cnf,input/% ,${FORMULAS})
11
11
TESTRUN =$(patsubst formulas/% .cnf,benchmark/% ,${FORMULAS})
12
+ VERIFICARUN =$(patsubst benchmark/% ,verificar/% ,${TESTRUN})
12
13
TIMELIMIT? =30
13
14
DEFAULTSEED? =3000
14
15
GSATGENERATOR =./simple-gsat-io-generator
15
16
BENCHMARKBINARY? =$(GSATGENERATOR )
16
17
17
18
all : $(INPUT )
18
- @echo All DONE
19
19
20
20
input/% : formulas/% .cnf
21
21
./simple-gsat-io-generator generator $(DEFAULTSEED ) $^ $@ $(patsubst input/% ,output/% ,$@ ) $(TIMELIMIT )
@@ -28,9 +28,17 @@ benchmark: benchmarkdir all $(TESTRUN)
28
28
29
29
benchmarkdir :
30
30
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
+
31
39
clean :
32
40
rm -f benchmark/*
33
41
dist-clean : clean
34
42
rm -f input/* output/*
35
43
36
- PHONY : all benchmark benchmarkdir clean dist-clean
44
+ PHONY : all benchmark benchmarkdir clean dist-clean verificar
You can’t perform that action at this time.
0 commit comments