-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathmake_tests_quantlib.sh
executable file
·43 lines (35 loc) · 1.32 KB
/
make_tests_quantlib.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# A. Bradford
# Testing building OptionMatrix with and without QuantLib
# run command "$ script" prior to running this bash script
# when the bash script is done type Control-d
# Analyse with
# grep -E -i 'warning| Status:' typescript
# QuantLib does not exist as an apt-get installable package
# Do the following on actual QuantLib autotools package
# On my machine I have QuantLib located in ~/src/c++/QuantLib-1.36/
# Your location will differ
# The next line will uninstall QuantLib
(cd ~/src/c++/QuantLib-1.36/ && sudo make uninstall)
# Build optionmatrix without QuantLib
make clean; ./configure CXX=g++ ; make
make check
./src/gtk/optionmatrix --list
echo "[1] Status: Built with g++"
echo "[1] Status: Built without QuantLib"
echo
# QuantLib requires Boost
sudo apt-get install libboost-all-dev
# QuantLib does not exist as an apt-get installable package
# Do the following on actual QuantLib autotools package
# On my machine I have QuantLib located in ~/src/c++/QuantLib-1.36/
# Your location will differ
# The next line will install QuantLib
(cd ~/src/c++/QuantLib-1.36/ && make && sudo make install)
# Build optionmatrix with QuantLib
make clean; ./configure CXX=g++ ; make
make check
./src/gtk/optionmatrix --list
echo "[2] Status: Built with g++/QuantLib"
echo "[2] Status: QuantLib addes 29 more option models"
echo