| 1 | #!/usr/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | cd "$WORKSPACE" |
| 6 | export PATH="/opt/coq-$coq_version/bin${PATH:+:}$PATH" |
| 7 | . /opt/bashrc/bashrc |
| 8 | coqtop -v |
| 9 | echo | coqtop |
| 10 | export TARGETS="coq display bench test" |
| 11 | export TARGETS="coq non-specific nonautogenerated-specific nonautogenerated-specific-display" # bench test" # bench and test don't work on smithers |
| 12 | rm -f BUILD.ok |
| 13 | ((/opt/timeout/default-timeout make -j$(nproc) TIMED=1 PROFILE=1 $TARGETS || make STDTIME='/opt/timeout/time-default-timeout-coq -f "$* (real: %e, user: %U, sys: %S, mem: %M ko)"' TIMED=1 PROFILE=1 $TARGETS) && touch BUILD.ok) 2>&1 | tee time-of-build.log |
| 14 | python ./etc/coq-scripts/timing/make-one-time-file.py time-of-build.log time-of-build-pretty.log |
| 15 | cat time-of-build-pretty.log |
| 16 | /opt/timeout/default-timeout make -j$(nproc) TIMED=1 PROFILE=1 $TARGETS || make STDTIME='/opt/timeout/time-default-timeout-coq -f "$* (real: %e, user: %U, sys: %S, mem: %M ko)"' TIMED=1 PROFILE=1 $TARGETS |
| 17 | rm BUILD.ok |