summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/gnupg/install.sh
blob: 05ad694e62556fa8d782030d7c8a33949fdd86f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

THIS_DIR=$(pwd)
mkdir $THIS_DIR/gnupg_

tar -xvf gnupg-1.4.9.tar.gz
cd gnupg-1.4.9/
./configure --prefix=$THIS_DIR/gnupg_
make -j $NUM_CPU_JOBS
make install
cd ..
rm -rf gnupg-1.4.9/

echo pts-1234567890 > passphrase

echo "#!/bin/sh
\$TIMER_START
./gnupg_/bin/gpg -c --no-options --passphrase-file passphrase -o /dev/null 2gbfile 2>&1
\$TIMER_STOP" > gnupg
chmod +x gnupg