From 7088a6ffa1fd470dc677a589014a467480f9e2b5 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 30 May 2014 15:41:20 -0400 Subject: [PATCH] Update submission make rules. --- Makefile | 47 +++++++++++++++++++------------------- test/system/statistics.cpp | 2 ++ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 923d6afe6..a31beae59 100644 --- a/Makefile +++ b/Makefile @@ -48,17 +48,17 @@ submission submission-main: exit 1; \ fi ./autogen.sh - ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk + ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk --enable-gpl $(MAKE) strip builds/bin/cvc4 $(MAKE) check - $(MAKE) -C test/regress/regress1 check + #$(MAKE) -C test/regress/regress1 check # main track - mkdir -p cvc4-smteval-$(YEAR) - cp -p builds/bin/cvc4 cvc4-smteval-$(YEAR)/cvc4 - cp contrib/run-script-smteval2013 cvc4-smteval-$(YEAR)/run - chmod 755 cvc4-smteval-$(YEAR)/run - tar cf cvc4-smteval-$(YEAR).tar cvc4-smteval-$(YEAR) + mkdir -p cvc4-smtcomp-$(YEAR) + cp -p builds/bin/cvc4 cvc4-smtcomp-$(YEAR)/cvc4 + cp contrib/run-script-smtcomp2014 cvc4-smtcomp-$(YEAR)/starexec_run_default + chmod 755 cvc4-smtcomp-$(YEAR)/starexec_run_default + zip -r cvc4-smtcomp-$(YEAR).zip cvc4-smtcomp-$(YEAR) submission-application: # application track is a separate build because it has different preprocessor #defines @if [ -n "`ls src/parser/*/generated 2>/dev/null`" ]; then \ @@ -68,18 +68,17 @@ submission-application: exit 1; \ fi ./autogen.sh - ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk CXXFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK CFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK + ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk --enable-gpl CXXFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK CFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK $(MAKE) strip builds/bin/cvc4 $(MAKE) check - $(MAKE) -C test/regress/regress1 check - # package the application track tarball - mkdir -p cvc4-application-smteval-$(YEAR) - cp -p builds/bin/cvc4 cvc4-application-smteval-$(YEAR)/cvc4 - ( echo '#!/bin/sh'; \ - echo 'exec ./cvc4 -L smt2 --no-checking --no-interactive --incremental' ) > cvc4-application-smteval-$(YEAR)/run - chmod 755 cvc4-application-smteval-$(YEAR)/run - tar cf cvc4-application-smteval-$(YEAR).tar cvc4-application-smteval-$(YEAR) + #$(MAKE) -C test/regress/regress1 check + # package the application track zipfile + mkdir -p cvc4-application-smtcomp-$(YEAR) + cp -p builds/bin/cvc4 cvc4-application-smtcomp-$(YEAR)/cvc4 + cp contrib/run-script-smtcomp2014-application cvc4-application-smtcomp-$(YEAR)/starexec_run_default + chmod 755 cvc4-application-smtcomp-$(YEAR)/starexec_run_default + zip -r cvc4-application-smtcomp-$(YEAR).zip cvc4-application-smtcomp-$(YEAR) submission-parallel: # parallel track can't be built with -cln, so it's a separate build @if [ -n "`ls src/parser/*/generated 2>/dev/null`" ]; then \ @@ -89,16 +88,16 @@ submission-parallel: exit 1; \ fi ./autogen.sh - ./configure competition --disable-shared --enable-static-binary --with-gmp --with-portfolio --with-glpk + ./configure competition --disable-shared --enable-static-binary --with-gmp --with-portfolio --with-glpk --enable-gpl $(MAKE) strip builds/bin/pcvc4 # some test cases fail (and are known to fail) -$(MAKE) check BINARY=pcvc4 - $(MAKE) -C test/regress/regress1 check BINARY=pcvc4 - # package the parallel track tarball - mkdir -p cvc4-parallel-smteval-$(YEAR) - cp -p builds/bin/pcvc4 cvc4-parallel-smteval-$(YEAR)/pcvc4 + #$(MAKE) -C test/regress/regress1 check BINARY=pcvc4 + # package the parallel track zipfile + mkdir -p cvc4-parallel-smtcomp-$(YEAR) + cp -p builds/bin/pcvc4 cvc4-parallel-smtcomp-$(YEAR)/pcvc4 ( echo '#!/bin/sh'; \ - echo 'exec ./pcvc4 --threads 2 -L smt2 --no-checking --no-interactive' ) > cvc4-parallel-smteval-$(YEAR)/run - chmod 755 cvc4-parallel-smteval-$(YEAR)/run - tar cf cvc4-parallel-smteval-$(YEAR).tar cvc4-parallel-smteval-$(YEAR) + echo 'exec ./pcvc4 --threads 2 -L smt2 --no-checking --no-interactive' ) > cvc4-parallel-smtcomp-$(YEAR)/starexec_run_default + chmod 755 cvc4-parallel-smtcomp-$(YEAR)/starexec_run_default + zip -r cvc4-parallel-smtcomp-$(YEAR).zip cvc4-parallel-smtcomp-$(YEAR) diff --git a/test/system/statistics.cpp b/test/system/statistics.cpp index 1749727f3..8139167a4 100644 --- a/test/system/statistics.cpp +++ b/test/system/statistics.cpp @@ -59,10 +59,12 @@ int main() { different = different || stats.getStatistic((*i).first) != (*i).second; } +#ifdef CVC4_STATISTICS_ON if(!different) { cout << "stats are the same! bailing.." << endl; exit(1); } +#endif /* CVC4_STATISTICS_ON */ return r == Result::VALID ? 0 : 1; } -- 2.30.2