go.sh scripts of several benchmarks modified to pick up $CC, $CFLAGS, $CXXFLAGS,...
[phoronix-static.git] / john-the-ripper / go.sh
blob5458767f88b13ececa976998c0d11dbc5abd7b06
1 #!/bin/bash -x
3 # Copyright (C) 2011 Sebastian Pop <sebpop@gmail.com>.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. A copy of this license
13 # can be downloaded from http://www.gnu.org/copyleft/gpl.html
15 p=`pwd`
16 rm -rf john-1.7.3.1
17 tar -zxf john-1.7.3.1.tar.gz
18 cd $p/john-1.7.3.1/src/
19 make linux-x86-64 CFLAGS="-c -Wall -fomit-frame-pointer $CFLAGS"
20 cd $p/john-1.7.3.1/run/
21 before=`date +%s.%N`
22 ./john --test > $p/log 2>&1
23 after=`date +%s.%N`
24 echo "john-the-ripper run time: `echo "$after - $before" | bc`" >> $p/log
25 cd $p; rm -rf john-1.7.3.1