Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/o/octave-financial/octave-financial_0.5.3-3_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/octave-financial-0.5.3-3dqzhgv6w/octave-financial_0.5.3-3_all.buildinfo Get source package info: octave-financial=0.5.3-3 Source URL: http://snapshot.notset.fr/mr/package/octave-financial/0.5.3-3/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=aglfn=1.7+git20191031.4036a9c-2 autoconf=2.69-11.1 automake=1:1.16.2-3 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-6 binutils=2.35-1 binutils-common=2.35-1 binutils-x86-64-linux-gnu=2.35-1 bsdextrautils=2.36-1 bsdutils=1:2.36-1 build-essential=12.8 bzip2=1.0.8-4 ca-certificates=20200601 cme=1.032-1 coreutils=8.32-3 cpp=4:10.1.0-1 cpp-10=10.2.0-3 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13.2 debianutils=4.11 dh-autoreconf=19 dh-octave=0.7.6 dh-octave-autopkgtest=0.7.6 dh-strip-nondeterminism=1.9.0-1 diffstat=1.63-1 diffutils=1:3.7-3 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13-5 file=1:5.38-5 findutils=4.7.0-1 fontconfig=2.13.1-4.2 fontconfig-config=2.13.1-4.2 fonts-dejavu-core=2.37-2 fonts-freefont-otf=20120503-10 g++=4:10.1.0-1 g++-10=10.2.0-3 gcc=4:10.1.0-1 gcc-10=10.2.0-3 gcc-10-base=10.2.0-3 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 gfortran=4:10.1.0-1 gfortran-10=10.2.0-3 gnuplot-data=5.2.8+dfsg1-2 gnuplot-nox=5.2.8+dfsg1-2 gpg=2.2.20-1 gpgconf=2.2.20-1 grep=3.4-1 groff-base=1.22.4-5 gzip=1.10-2 hdf5-helpers=1.10.6+repack-2 hostname=3.23 init-system-helpers=1.58 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libaec-dev=1.0.4-1 libaec0=1.0.4-1 libalgorithm-c3-perl=0.10-1 libaliased-perl=0.34-1 libamd2=1:5.8.1+dfsg-1 libapp-cmd-perl=0.331-1 libapt-pkg-perl=0.1.36+b3 libapt-pkg6.0=2.1.7 libarchive-zip-perl=1.68-1 libarpack2=3.7.0-3 libarray-intspan-perl=2.004-1 libasan6=10.2.0-3 libasound2=1.2.2-2.3 libasound2-data=1.2.2-2.3 libassuan0=2.5.3-7.1 libatomic1=10.2.0-3 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libavahi-client3=0.8-3 libavahi-common-data=0.8-3 libavahi-common3=0.8-3 libb-hooks-endofscope-perl=0.24-1 libb-hooks-op-check-perl=0.22-1+b2 libbinutils=2.35-1 libblas-dev=3.9.0-2 libblas3=3.9.0-2 libblkid1=2.36-1 libboolean-perl=0.46-1 libbrotli1=1.0.7-7 libbsd0=0.10.0-1 libbz2-1.0=1.0.8-4 libc-bin=2.31-2 libc-dev-bin=2.31-2 libc6=2.31-2 libc6-dev=2.31-2 libcairo2=1.16.0-4 libcamd2=1:5.8.1+dfsg-1 libcap-ng0=0.7.9-2.2 libcapture-tiny-perl=0.48-1 libcarp-assert-more-perl=1.20-1 libcarp-assert-perl=0.21-1 libcc1-0=10.2.0-3 libccolamd2=1:5.8.1+dfsg-1 libcholmod3=1:5.8.1+dfsg-1 libclass-c3-perl=0.34-1 libclass-data-inheritable-perl=0.08-3 libclass-load-perl=0.25-1 libclass-method-modifiers-perl=2.13-1 libclass-xsaccessor-perl=1.19-3+b5 libclone-choose-perl=0.010-1 libclone-perl=0.45-1 libcolamd2=1:5.8.1+dfsg-1 libcom-err2=1.45.6-1 libconfig-model-backend-yaml-perl=2.133-2 libconfig-model-dpkg-perl=2.137 libconfig-model-perl=2.139-1 libconfig-tiny-perl=2.24-1 libconvert-binhex-perl=1.125-1 libcpanel-json-xs-perl=4.19-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.35-1 libctf0=2.35-1 libcups2=2.3.3-1 libcurl3-gnutls=7.68.0-1+b1 libcxsparse3=1:5.8.1+dfsg-1 libdata-dpath-perl=0.58-1 libdata-messagepack-perl=1.00-4 libdata-optlist-perl=0.110-1 libdata-section-perl=0.200007-1 libdata-validate-domain-perl=0.10-1 libdatrie1=0.2.12-3 libdb5.3=5.3.28+dfsg1-0.6 libdbus-1-3=1.12.20-1 libdebconfclient0=0.253 libdebhelper-perl=13.2 libdevel-callchecker-perl=0.008-1+b1 libdevel-size-perl=0.83-1+b1 libdevel-stacktrace-perl=2.0400-1 libdouble-conversion3=3.1.5-5 libdpkg-perl=1.20.5 libdrm-amdgpu1=2.4.102-1 libdrm-common=2.4.102-1 libdrm-intel1=2.4.102-1 libdrm-nouveau2=2.4.102-1 libdrm-radeon1=2.4.102-1 libdrm2=2.4.102-1 libdynaloader-functions-perl=0.003-1 libedit2=3.1-20191231-1 libegl-dev=1.3.1-1 libegl-mesa0=20.1.2-1 libegl1=1.3.1-1 libelf1=0.180-1 libemail-address-xs-perl=1.04-1+b2 libencode-locale-perl=1.05-1 liberror-perl=0.17029-1 libevdev2=1.9.1+dfsg-1 libexception-class-perl=1.44-1 libexpat1=2.2.9-1 libexporter-lite-perl=0.08-1 libexporter-tiny-perl=1.002002-1 libffi7=3.3-4 libfftw3-bin=3.3.8-2 libfftw3-dev=3.3.8-2 libfftw3-double3=3.3.8-2 libfftw3-long3=3.3.8-2 libfftw3-quad3=3.3.8-2 libfftw3-single3=3.3.8-2 libfile-basedir-perl=0.08-1 libfile-find-rule-perl=0.34-1 libfile-homedir-perl=1.004-1 libfile-listing-perl=6.04-1 libfile-stripnondeterminism-perl=1.9.0-1 libfile-which-perl=1.23-1 libflac8=1.3.3-1 libfltk-gl1.3=1.3.5-1 libfltk1.3=1.3.5-1 libfont-ttf-perl=1.06-1 libfontconfig1=2.13.1-4.2 libfreetype6=2.10.2+dfsg-3 libfribidi0=1.0.8-2 libfuture-perl=0.45-1 libgbm1=20.1.2-1 libgcc-10-dev=10.2.0-3 libgcc-s1=10.2.0-3 libgcrypt20=1.8.6-2 libgd3=2.3.0-2 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libgetopt-long-descriptive-perl=0.105-1 libgfortran-10-dev=10.2.0-3 libgfortran5=10.2.0-3 libgl-dev=1.3.1-1 libgl1=1.3.1-1 libgl1-mesa-dev=20.1.2-1 libgl1-mesa-dri=20.1.2-1 libgl2ps1.4=1.4.2+dfsg1-1 libglapi-mesa=20.1.2-1 libgles-dev=1.3.1-1 libgles1=1.3.1-1 libgles2=1.3.1-1 libglib2.0-0=2.64.4-1 libglpk40=4.65-2 libglu1-mesa=9.0.1-1 libglvnd-dev=1.3.1-1 libglvnd0=1.3.1-1 libglx-dev=1.3.1-1 libglx-mesa0=20.1.2-1 libglx0=1.3.1-1 libgmp10=2:6.2.0+dfsg-6 libgnutls30=3.6.14-2+b1 libgomp1=10.2.0-3 libgpg-error0=1.38-2 libgraphicsmagick++-q16-12=1.4+really1.3.35+hg16297-1 libgraphicsmagick-q16-3=1.4+really1.3.35+hg16297-1 libgraphite2-3=1.3.14-1 libgssapi-krb5-2=1.17-10 libgudev-1.0-0=233-1 libharfbuzz0b=2.6.7-1 libhash-fieldhash-perl=0.15-1+b2 libhash-merge-perl=0.301-1 libhdf5-103-1=1.10.6+repack-2 libhdf5-cpp-103-1=1.10.6+repack-2 libhdf5-dev=1.10.6+repack-2 libhdf5-fortran-102=1.10.6+repack-2 libhdf5-hl-100=1.10.6+repack-2 libhdf5-hl-cpp-100=1.10.6+repack-2 libhdf5-hl-fortran-100=1.10.6+repack-2 libhogweed6=3.6-2 libhtml-parser-perl=3.72-5 libhtml-tagset-perl=3.20-4 libhtml-tree-perl=5.07-2 libhttp-cookies-perl=6.08-1 libhttp-date-perl=6.05-1 libhttp-message-perl=6.25-1 libhttp-negotiate-perl=6.01-1 libice6=2:1.0.9-2 libicu67=67.1-3 libidn2-0=2.3.0-1 libimport-into-perl=1.002005-1 libinput-bin=1.15.5-1 libinput10=1.15.5-1 libio-async-loop-epoll-perl=0.21-1 libio-async-perl=0.77-3 libio-html-perl=1.001-1 libio-socket-ssl-perl=2.067-1 libio-string-perl=1.08-3 libio-stringy-perl=2.111-3 libio-tiecombine-perl=1.005-1 libipc-system-simple-perl=1.30-1 libisl22=0.22.1-1 libiterator-perl=0.03+ds1-1 libiterator-util-perl=0.02+ds1-1 libitm1=10.2.0-3 libjack-jackd2-0=1.9.14~dfsg-0.1 libjbig0=2.1-3.1+b2 libjpeg-dev=1:2.0.5-1 libjpeg62-turbo=1:2.0.5-1 libjpeg62-turbo-dev=1:2.0.5-1 libjson-maybexs-perl=1.004002-1 libjson-perl=4.02000-2 libk5crypto3=1.17-10 libkeyutils1=1.6.1-2 libkrb5-3=1.17-10 libkrb5support0=1.17-10 liblapack-dev=3.9.0-2 liblapack3=3.9.0-2 liblcms2-2=2.9-4+b1 libldap-2.4-2=2.4.50+dfsg-1+b1 libldap-common=2.4.50+dfsg-1 liblinux-epoll-perl=0.017-1 liblist-compare-perl=0.53-1 liblist-moreutils-perl=0.416-1+b5 liblist-someutils-perl=0.58-1 liblist-utilsby-perl=0.11-1 libllvm10=1:10.0.1-1 liblog-any-adapter-screen-perl=0.140-1 liblog-any-perl=1.708-1 liblog-log4perl-perl=1.50-1 liblsan0=10.2.0-3 libltdl7=2.4.6-14 liblua5.3-0=5.3.3-1.1+b1 liblwp-mediatypes-perl=6.04-1 liblwp-protocol-https-perl=6.09-1 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-5 libmagic1=1:5.38-5 libmailtools-perl=2.21-1 libmd4c0=0.4.4-1+b1 libmetis5=5.1.0.dfsg-7 libmetrics-any-perl=0.06-1 libmime-tools-perl=5.509-1 libmodule-implementation-perl=0.09-1 libmodule-pluggable-perl=5.2-1 libmodule-runtime-perl=0.016-1 libmoo-perl=2.004000-1 libmoox-aliases-perl=0.001006-1 libmoox-struct-perl=0.020-1 libmount1=2.36-1 libmouse-perl=2.5.10-1 libmousex-nativetraits-perl=1.09-2 libmousex-strictconstructor-perl=0.02-2 libmpc3=1.1.0-1 libmpfr6=4.1.0-3 libmro-compat-perl=0.13-1 libmtdev1=1.1.6-1 libnamespace-autoclean-perl=0.29-1 libnamespace-clean-perl=0.27-1 libncurses-dev=6.2-1 libncurses6=6.2-1 libncursesw6=6.2-1 libnet-domain-tld-perl=1.75-1 libnet-http-perl=6.19-1 libnet-smtp-ssl-perl=1.04-1 libnet-ssleay-perl=1.88-3 libnettle8=3.6-2 libnghttp2-14=1.41.0-2 libnumber-compare-perl=0.03-1 libnumber-range-perl=0.12-1 libobject-id-perl=0.1.2-2 liboctave-dev=5.2.0-3+b1 liboctave7=5.2.0-3+b1 libogg0=1.3.2-1+b1 libopengl-dev=1.3.1-1 libopengl0=1.3.1-1 libp11-kit0=0.23.20-1 libpackage-stash-perl=0.38-1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpango-1.0-0=1.44.7-4 libpangocairo-1.0-0=1.44.7-4 libpangoft2-1.0-0=1.44.7-4 libparams-classify-perl=0.015-1+b2 libparams-util-perl=1.07-3+b5 libparams-validate-perl=1.29-3 libparse-debcontrol-perl=2.005-4 libparse-recdescent-perl=1.967015+dfsg-2 libpath-iterator-rule-perl=1.014-1 libpath-tiny-perl=0.114-1 libpciaccess0=0.14-1 libpcre2-16-0=10.34-7 libpcre2-8-0=10.34-7 libpcre3=2:8.39-13 libperl5.30=5.30.3-4 libpipeline1=1.5.2-2 libpixman-1-0=0.36.0-1 libpng16-16=1.6.37-2 libpod-constants-perl=0.19-2 libpod-pom-perl=2.01-3 libportaudio2=19.6.0-1 libpsl5=0.21.0-1.1 libpthread-stubs0-dev=0.4-1 libqhull8.0=2020.1-2 libqrupdate1=1.1.2-4 libqscintilla2-qt5-15=2.11.2+dfsg-7 libqscintilla2-qt5-l10n=2.11.2+dfsg-7 libqt5core5a=5.14.2+dfsg-4 libqt5dbus5=5.14.2+dfsg-4 libqt5gui5=5.14.2+dfsg-4 libqt5help5=5.14.2-2 libqt5network5=5.14.2+dfsg-4 libqt5printsupport5=5.14.2+dfsg-4 libqt5sql5=5.14.2+dfsg-4 libqt5widgets5=5.14.2+dfsg-4 libqt5xml5=5.14.2+dfsg-4 libquadmath0=10.2.0-3 libre-engine-re2-perl=0.13-5+b3 libre2-8=20200706+dfsg-2 libreadline-dev=8.0-4 libreadline8=8.0-4 libregexp-common-perl=2017060201-1 libregexp-pattern-license-perl=3.4.0-1 libregexp-pattern-perl=0.2.14-1 librole-tiny-perl=2.001004-1 librtmp1=2.4+20151223.gitfa8646d.1-2+b2 libsamplerate0=0.1.9-2 libsasl2-2=2.1.27+dfsg-2 libsasl2-modules-db=2.1.27+dfsg-2 libseccomp2=2.4.3-1+b1 libselinux1=3.1-2 libsensors-config=1:3.6.0-2 libsensors5=1:3.6.0-2 libsereal-decoder-perl=4.017+ds-1 libsereal-encoder-perl=4.017+ds-1 libsigsegv2=2.12-2 libsm6=2:1.2.3-1 libsmartcols1=2.36-1 libsndfile1=1.0.28-8 libsoftware-license-perl=0.103014-2 libsoftware-licensemoreutils-perl=1.004-1 libsort-key-perl=1.33-2+b2 libsort-versions-perl=1.62-1 libsqlite3-0=3.32.3-1 libssh2-1=1.8.0-2.1 libssl1.1=1.1.1g-1 libstdc++-10-dev=10.2.0-3 libstdc++6=10.2.0-3 libstrictures-perl=2.000006-1 libstring-copyright-perl=0.003006-1 libstring-escape-perl=2010.002-2 libstring-rewriteprefix-perl=0.008-1 libstruct-dumb-perl=0.12-1 libsub-exporter-perl=0.987-1 libsub-exporter-progressive-perl=0.001013-1 libsub-identify-perl=0.14-1+b2 libsub-install-perl=0.928-1 libsub-name-perl=0.26-1 libsub-override-perl=0.09-2 libsub-quote-perl=2.006006-1 libsub-uplevel-perl=0.2800-1 libsuitesparseconfig5=1:5.8.1+dfsg-1 libsystemd0=245.6-3 libsz2=1.0.4-1 libtasn1-6=4.16.0-2 libtest-exception-perl=0.43-1 libtest-metrics-any-perl=0.01-2 libtext-autoformat-perl=1.750000-1 libtext-glob-perl=0.11-1 libtext-levenshtein-damerau-perl=0.41-1 libtext-levenshteinxs-perl=0.03-4+b7 libtext-reform-perl=1.20-3 libtext-template-perl=1.59-1 libtext-unidecode-perl=1.30-1 libtext-xslate-perl=3.5.8-1 libthai-data=0.1.28-3 libthai0=0.1.28-3 libtiff5=4.1.0+git191117-2 libtime-duration-perl=1.21-1 libtime-moment-perl=0.44-1+b2 libtimedate-perl=2.3300-1 libtinfo6=6.2-1 libtool=2.4.6-14 libtry-tiny-perl=0.30-1 libtsan0=10.2.0-3 libtype-tiny-perl=1.010002-1 libubsan1=10.2.0-3 libuchardet0=0.0.7-1 libudev1=245.6-3 libumfpack5=1:5.8.1+dfsg-1 libunicode-utf8-perl=0.62-1+b1 libunistring2=0.9.10-4 liburi-perl=1.76-2 libuuid1=2.36-1 libvariable-magic-perl=0.62-1+b2 libvorbis0a=1.3.6-2 libvorbisenc2=1.3.6-2 libvulkan1=1.2.141.0-1 libwacom-common=1.3-2 libwacom2=1.3-2 libwayland-client0=1.18.0-1 libwayland-server0=1.18.0-1 libwebp6=0.6.1-2+b1 libwebpmux3=0.6.1-2+b1 libwmf0.2-7=0.2.8.4-17 libwww-perl=6.46-1 libwww-robotrules-perl=6.02-1 libx11-6=2:1.6.9-2+b1 libx11-data=2:1.6.9-2 libx11-dev=2:1.6.9-2+b1 libx11-xcb1=2:1.6.9-2+b1 libxau-dev=1:1.0.8-1+b2 libxau6=1:1.0.8-1+b2 libxcb-dri2-0=1.14-2 libxcb-dri3-0=1.14-2 libxcb-glx0=1.14-2 libxcb-icccm4=0.4.1-1.1 libxcb-image0=0.4.0-1+b2 libxcb-keysyms1=0.4.0-1+b2 libxcb-present0=1.14-2 libxcb-randr0=1.14-2 libxcb-render-util0=0.3.9-1+b1 libxcb-render0=1.14-2 libxcb-shape0=1.14-2 libxcb-shm0=1.14-2 libxcb-sync1=1.14-2 libxcb-util0=0.3.8-3+b2 libxcb-xfixes0=1.14-2 libxcb-xinerama0=1.14-2 libxcb-xinput0=1.14-2 libxcb-xkb1=1.14-2 libxcb1=1.14-2 libxcb1-dev=1.14-2 libxcursor1=1:1.2.0-2 libxdamage1=1:1.1.5-2 libxdmcp-dev=1:1.1.2-3 libxdmcp6=1:1.1.2-3 libxext6=2:1.3.3-1+b2 libxfixes3=1:5.0.3-2 libxft2=2.3.2-2 libxinerama1=2:1.1.4-2 libxkbcommon-x11-0=0.10.0-1 libxkbcommon0=0.10.0-1 libxml-libxml-perl=2.0134+dfsg-2 libxml-namespacesupport-perl=1.12-1 libxml-sax-base-perl=1.09-1 libxml-sax-perl=1.02+dfsg-1 libxml-writer-perl=0.625-1 libxml2=2.9.10+dfsg-5+b1 libxpm4=1:3.5.12-1 libxrender1=1:0.9.10-1 libxshmfence1=1.3-1 libxxf86vm1=1:1.1.4-1+b2 libyaml-0-2=0.2.2-1 libyaml-libyaml-perl=0.82+repack-1 libyaml-perl=1.30-1 libyaml-tiny-perl=1.73-1 libz3-4=4.8.8-1 libzstd1=1.4.5+dfsg-3 licensecheck=3.0.47-1 lintian=2.85.0 linux-libc-dev=5.7.10-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 ncurses-base=6.2-1 ncurses-bin=6.2-1 netbase=6.1 octave=5.2.0-3+b1 octave-common=5.2.0-3 octave-io=2.6.1-2 octave-statistics=1.4.2-1 openssl=1.1.1g-1 patch=2.7.6-6 patchutils=0.4.2-1 perl=5.30.3-4 perl-base=5.30.3-4 perl-modules-5.30=5.30.3-4 perl-openssl-defaults=5 po-debconf=1.0.21 readline-common=8.0-4 sed=4.7-1 sensible-utils=0.0.12+nmu1 shared-mime-info=1.15-1 sysvinit-utils=2.96-3 t1utils=1.41-4 tar=1.30+dfsg-7 tex-common=6.15 texinfo=6.7.0.dfsg.2-5 ucf=3.0043 util-linux=2.36-1 x11-common=1:7.7+20 x11proto-core-dev=2020.1-1 x11proto-dev=2020.1-1 xkb-data=2.29-2 xorg-sgml-doctools=1:1.11-1 xtrans-dev=1.4.0-1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 zlib1g-dev=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200727T204945Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d octave-financial=0.5.3-3 && mkdir -p /build/octave-financial-hAmR7k && dpkg-source --no-check -x /*.dsc /build/octave-financial-hAmR7k/octave-financial-0.5.3 && chown -R builduser:builduser /build/octave-financial-hAmR7k" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/octave-financial-hAmR7k/octave-financial-0.5.3 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1595926376" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/octave-financial-hAmR7k /tmp/octave-financial-0.5.3-3dqzhgv6w bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200727T204945Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.idLAOPsQxw as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.idLAOPsQxw Reading package lists... Building dependency tree... util-linux is already the newest version (2.36-1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 393 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20200727T204945Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200727T204945Z unstable/main amd64 fakeroot amd64 1.24-1 [85.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (1089 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4578 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.24-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.24-1_amd64.deb ... Unpacking fakeroot (1.24-1) ... Setting up libfakeroot:amd64 (1.24-1) ... Setting up fakeroot (1.24-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-2) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200727T204945Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.idLAOPsQxw Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200727T204945Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 19s (1169 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.idLAOPsQxw I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d octave-financial=0.5.3-3 && mkdir -p /build/octave-financial-hAmR7k && dpkg-source --no-check -x /*.dsc /build/octave-financial-hAmR7k/octave-financial-0.5.3 && chown -R builduser:builduser /build/octave-financial-hAmR7k"' exec /tmp/mmdebstrap.idLAOPsQxw Reading package lists... NOTICE: 'octave-financial' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/pkg-octave-team/octave-financial.git Please use: git clone https://salsa.debian.org/pkg-octave-team/octave-financial.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 86.9 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main octave-financial 0.5.3-3 (dsc) [2197 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main octave-financial 0.5.3-3 (tar) [80.5 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main octave-financial 0.5.3-3 (diff) [4268 B] Fetched 86.9 kB in 0s (514 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'octave-financial_0.5.3-3.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting octave-financial in /build/octave-financial-hAmR7k/octave-financial-0.5.3 dpkg-source: info: unpacking octave-financial_0.5.3.orig.tar.gz dpkg-source: info: unpacking octave-financial_0.5.3-3.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/octave-financial-hAmR7k/octave-financial-0.5.3 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1595926376" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.idLAOPsQxw dpkg-buildpackage: info: source package octave-financial dpkg-buildpackage: info: source version 0.5.3-3 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Rafael Laboissière dpkg-source --before-build . debian/rules clean dh clean --buildsystem=octave --with=octave dh_auto_clean -O--buildsystem=octave dh_octave_clean make[1]: *** src: No such file or directory. Stop. dh_autoreconf_clean -O--buildsystem=octave dh_clean -O--buildsystem=octave debian/rules binary-indep dh binary-indep --buildsystem=octave --with=octave dh_update_autotools_config -i -O--buildsystem=octave dh_autoreconf -i -O--buildsystem=octave dh_octave_version -i -O--buildsystem=octave Checking the Octave version... ok dh_auto_configure -i -O--buildsystem=octave dh_auto_build -i -O--buildsystem=octave dh_auto_test -i -O--buildsystem=octave create-stamp debian/debhelper-build-stamp dh_testroot -i -O--buildsystem=octave dh_prep -i -O--buildsystem=octave dh_auto_install -i -O--buildsystem=octave octave --no-gui --no-history --silent --no-init-file --no-window-system /usr/share/dh-octave/install-pkg.m warning: creating installation directory /build/octave-financial-hAmR7k/octave-financial-0.5.3/debian/octave-financial/usr/share/octave/packages warning: called from install at line 30 column 5 pkg at line 441 column 9 /usr/share/dh-octave/install-pkg.m at line 43 column 1 For information about changes from previous versions of the financial package, run 'news financial'. rmdir: failed to remove '/build/octave-financial-hAmR7k/octave-financial-0.5.3/debian/octave-financial/usr/lib/x86_64-linux-gnu/octave/packages': No such file or directory chmod: cannot access 'debian/*/usr/lib/*/octave/packages/*/*/*.oct': No such file or directory chmod: cannot access 'debian/*/usr/lib/*/octave/packages/*/*/*.mex': No such file or directory dh_octave_check -i -O--buildsystem=octave Checking package... Checking m files ... [inst/months.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/months.m ***** assert(months('may 31 2004', 'jun 30 2004'), 1) ***** assert(months({'may 31 2004' 'may 30 2004'}, 'jun 30 2004'), [1;1]) ***** assert(months('may 31 2004', 'jun 30 2004', 1), 1) ***** assert(months({'may 31 2004' 'may 30 2004'}, 'jun 30 2004', 1), [1;1]) ***** assert(months('may 31 2004', 'jun 30 2004', 0), 0) ***** assert(months({'may 31 2004' 'may 30 2004'}, 'jun 30 2004', 0), [0;1]) ***** assert(months('jun 30 2005', 'june 30 2006'), 12) ***** assert(months('jun 30 2005', 'june 29 2006'), 11) 8 tests, 8 passed, 0 known failure, 0 skipped [inst/weeknum.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/weeknum.m ***** assert (weeknum (728647), 52) ***** assert (weeknum ([728647 728848]), [52 27]) ***** assert (weeknum ([728647 ;728648]), [52 ;52]) ***** assert (weeknum ([736413 736813 ; 737213 737613]), [13 17 ; 22 28]) ***** assert (weeknum (datenum (2005, 01, 01), 2, 1), 53) ***** assert (weeknum (datenum (2005, 01, 02), 2, 1), 53) ***** assert (weeknum (datenum (2005, 12, 31), 2, 1), 52) ***** assert (weeknum (datenum (2007, 01, 01), 2, 1), 1) ***** assert (weeknum (datenum (2007, 12, 30), 2, 1), 52) ***** assert (weeknum (datenum (2007, 12, 31), 2, 1), 1) ***** assert (weeknum (datenum (2008, 01, 01), 2, 1), 1) ***** assert (weeknum (datenum (2008, 12, 28), 2, 1), 52) ***** assert (weeknum (datenum (2008, 12, 29), 2, 1), 1) ***** assert (weeknum (datenum (2008, 12, 30), 2, 1), 1) ***** assert (weeknum (datenum (2008, 12, 31), 2, 1), 1) ***** assert (weeknum (datenum (2009, 01, 01), 2, 1), 1) ***** assert (weeknum (datenum (2009, 12, 31), 2, 1), 53) ***** assert (weeknum (datenum (2010, 01, 01), 2, 1), 53) ***** assert (weeknum (datenum (2010, 01, 02), 2, 1), 53) ***** assert (weeknum (datenum (2010, 01, 03), 2, 1), 53) ***** assert (weeknum ([datenum(2005, 1, 1) datenum(2008, 12, 29)], 2, 1), [53 1]) ***** test [n, y] = weeknum (datenum (2010, 1, 3), 2, 1); assert ([n y],[53 2009]) ***** demo d = datenum (2014, 12, 29); [w, y] = weeknum (datenum (2014, 12, 29), 2, 1); disp(['In ISO8601 ' datestr(d) ' is week ' num2str(w) ' of year ' num2str(y)]) disp(['Octave default weeknumber for ' datestr(d) ' is ' num2str(weeknum (d))]) 22 tests, 22 passed, 0 known failure, 0 skipped [inst/holidays.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/holidays.m ***** assert(holidays("jan 1 1999", "jan 1 1998"), zeros(0,1)); # return empty when startdate is after enddate ***** assert(holidays("mar 5 2008", "mar 8 2008"), zeros(0,1)); ***** assert(holidays(datenum(2008,3,5), datenum(2008,3,5)), zeros(0,1)); ***** assert(holidays(datenum(2008,1,1), datenum(2008,1,1)), datenum(2008,1,1)); ***** assert (holidays ("jan 1 2010", "mar 1 2010"), [734139; 734156; 734184]); ***** assert (holidays (datenum (2010, 1, 1), datenum (2010, 3, 1)), [734139; 734156; 734184]); ***** assert (holidays ("dec 29 2004", "jan 2 2005"), zeros (0, 1)); ***** assert (holidays ("dec 29 2005", "jan 2 2006"), datenum (2006 ,1 ,2)); ***** assert(holidays(datenum(2004,1,1), datenum(2004,12,31)), datenum(2004*ones(10,1), [1;1;2;4;5;6;7;9;11;12], [1;19;16;9;31;11;5;6;25;24])); 9 tests, 9 passed, 0 known failure, 0 skipped [inst/minute.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/minute.m ***** assert (minute (451482.906781456), 45) ***** assert (minute ("1967-09-21 11:56:34", "yyyy-mm-dd HH:MM:SS"), 56) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/blsimpv.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsimpv.m ***** assert (blsimpv (100, 100, 0.04, 1, [9.9251 6.0040], 1, 0, 1e-6, [1 0]), [0.2 0.2], 1e-4) ***** error blsimpv () ***** error blsimpv (1) ***** error blsimpv (1, 2) ***** error blsimpv (1, 2, 3) ***** error blsimpv (1, 2, 3, 4) ***** error blsimpv (1, 2, 3, 4, 5, 6, 7, 8, 2) 7 tests, 7 passed, 0 known failure, 0 skipped [inst/movavg.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/movavg.m ***** shared a a = [1 2 3 2 4 2 1]; ***** test [s l] = movavg(a, 2, 4); assert(s, [1 1.5 2.5 2.5 3 3 1.5]) assert(l, [1 1.5 2 2 2.75 2.75 2.25]) ***** test [s l] = movavg(a', 2, 4); assert(s, [1;1.5;2.5;2.5;3;3;1.5]) assert(l, [1;1.5;2;2;2.75;2.75;2.25]) ***** test [s l] = movavg(a, 3, 4, 1); assert(s, [3 4.8 7 7 9.5 8 5.5]./3, 10*eps) assert(l, [1 11/7 20/9 2.2 3 2.7 2], 10*eps) 3 tests, 3 passed, 0 known failure, 0 skipped [inst/datefind.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/datefind.m ***** assert (datefind (datenum (1999, 7, [10;20]), datenum (1999, 7, 1:31)), [10;20]) ***** assert (datefind (datenum (1999, 7, [10;20]), datenum (1999, 7, 1:31), 1), [9;10;11;19;20;21]) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/opprofit.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/opprofit.m ***** assert (opprofit (100, 90, 4, 0, 0), 6) ***** assert (opprofit (80:20:120, 90, 4, 0, 0), [-4 6 26]) ***** assert (opprofit (80:20:120, 80:20:120, 0, 0, 0), [0 0 0]) ***** assert (opprofit (100, 90, 4, [0 0 1 1], [0 1 0 1]), [6 -4 -6 4]) ***** error opprofit () ***** error opprofit (1) ***** error opprofit (1, 2) ***** error opprofit (1, 2, 3) ***** error opprofit (1, 2, 3, 4) ***** error opprofit (1, 2, 3, 4, 0) ***** error opprofit (1, 2, 3, 0, 5) 11 tests, 11 passed, 0 known failure, 0 skipped [inst/bolling.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/bolling.m ***** error bolling () ***** error bolling (1) ***** error bolling (1, 2) ***** error bolling ("invalid", "type") 4 tests, 4 passed, 0 known failure, 0 skipped [inst/daysact.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/daysact.m ***** assert (daysact ("01-Jan-2007", ["10-Jan-2007"; "23-Feb-2007"; "23-Jul-2007"]), [9;53;203]) ***** assert (daysact ("7-sep-2002", "25-dec-2002"), 109) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/effrr.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/effrr.m ***** assert (effrr (0.09, 12), 0.0938, 0.00005) 1 test, 1 passed, 0 known failure, 0 skipped [inst/blsprice.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsprice.m ***** test [Call, Put] = blsprice (90:10:110, 100, 0.04, 1, 0.2, 0.01); assert (Call, [4.4037 9.3197 16.1217], 1e-4) assert (Put, [11.3781 6.3937 3.2952], 1e-4) ***** error blsprice () ***** error blsprice (1) ***** error blsprice (1, 2) ***** error blsprice (1, 2, 3) ***** error blsprice (1, 2, 3, 4) ***** error blsprice ("invalid", "type", "argument", 4, 5) ***** error blsprice ({1, 2, 3}, [2 7 8], [8 3 1], 4, 10) 8 tests, 8 passed, 0 known failure, 0 skipped [inst/x2mdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/x2mdate.m ***** assert(x2mdate(39448), datenum(2008, 1, 1)) ***** assert(x2mdate([39083 39448]), datenum(2007:2008, 1, 1)) ***** assert(x2mdate(2), datenum(1900, 1, 1)) ***** assert(x2mdate(1, 0, "ExcelBug"), datenum(1900, 1, 1)) ***** assert(x2mdate(0, 1), datenum(1904, 1, 1)) 5 tests, 5 passed, 0 known failure, 0 skipped [inst/llow.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/llow.m ***** shared c, l c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21 25]; l = [22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.44 22.61 22.67 22.86 22.86 22.86 22.86]; ***** assert(llow(c), l) ***** assert(llow(c'), l') 2 tests, 2 passed, 0 known failure, 0 skipped [inst/cfdur.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/cfdur.m ***** demo cf = [2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 102.5]; yield = 0.025; [ duration, modDuration ] = cfdur( cf, yield ); %-------------------------------------------------- % Input cash flow and yield, output duration and modified duration ***** test cf = [2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 102.5]; [dur modDur] = cfdur( cf, 0.025 ); errVal1 = round(dur*(1e+4))*(1e-4) - 8.9709; errVal2 = round(modDur*(1e+4))*(1e-4) - 8.7521; assert( errVal1, 0 ) assert( errVal2, 0 ) 1 test, 1 passed, 0 known failure, 0 skipped [inst/blsvega.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsvega.m ***** test ***** error blsvega () ***** error blsvega (1) ***** error blsvega (1, 2) ***** error blsvega (1, 2, 3) ***** error blsvega (1, 2, 3, 4) 6 tests, 6 passed, 0 known failure, 0 skipped [inst/easter.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/easter.m ***** assert(easter(1990), datenum(1990, 4, 15)) ***** assert(easter(1991), datenum(1991, 3, 31)) ***** assert(easter(1992), datenum(1992, 4, 19)) ***** assert(easter(1993), datenum(1993, 4, 11)) ***** assert(easter(1994), datenum(1994, 4, 3)) ***** assert(easter(1995), datenum(1995, 4, 16)) ***** assert(easter(1996), datenum(1996, 4, 7)) ***** assert(easter(1997), datenum(1997, 3, 30)) ***** assert(easter(1998), datenum(1998, 4, 12)) ***** assert(easter(1999), datenum(1999, 4, 4)) ***** assert(easter([2000 2001]), [datenum(2000, 4, 23) datenum(2001, 4, 15)]) ***** assert(easter([2002;2003]), [datenum(2002, 3, 31);datenum(2003, 4, 20)]) ***** assert(easter([2004 2005;2006 2007;2008 2009]), [datenum(2004, 4, 11) datenum(2005, 3, 27);datenum(2006, 4, 16) datenum(2007, 4, 8);datenum(2008, 3, 23) datenum(2009, 4, 12)]) ***** assert(easter([2002;2003]), [datenum(2002, 3, 31);datenum(2003, 4, 20)]) 14 tests, 14 passed, 0 known failure, 0 skipped [inst/blsdelta.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsdelta.m ***** test [CallDelta, PutDelta] = blsdelta (90:10:110, 100, 0.04, 1, 0.2, 0.01); assert (CallDelta, [0.3871 0.5927 0.7586], 1e-4) assert (PutDelta, [-0.6030 -0.3973 -0.2314], 1e-4) ***** error blsdelta () ***** error blsdelta (1) ***** error blsdelta (1, 2) ***** error blsdelta (1, 2, 3) ***** error blsdelta (1, 2, 3, 4) 6 tests, 6 passed, 0 known failure, 0 skipped [inst/m2xdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/m2xdate.m ***** assert(m2xdate(datenum(2008, 1, 1)), 39448) ***** assert(m2xdate(datenum(2007:2008, 1, 1)), [39083 39448]) ***** assert(m2xdate(datenum(1900, 1, 1)), 2) ***** assert(m2xdate(datenum(1900, 1, 1), 0, "ExcelBug"), 1) ***** assert(m2xdate(datenum(1904, 1, 1), 1), 0) 5 tests, 5 passed, 0 known failure, 0 skipped [inst/corr2cov.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/corr2cov.m ***** demo sigma = [ 0.5 2.0 ]; corr = [ 1.0 -0.5; -0.5 1.0 ]; cov = corr2cov( sigma, corr ); %-------------------------------------------------- % Input standard deviations and correlation matrix, output covariance % matrix ***** test sigma = [0.5 2.0]; corr = [1.0 -0.5; -0.5 1.0]; cov = corr2cov( sigma, corr ); assert( cov, [ 0.25 -0.5; -0.5 4.0 ] ) 1 test, 1 passed, 0 known failure, 0 skipped [inst/taxedrr.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/taxedrr.m ***** assert (taxedrr (0.12, 0.30), 0.084, 10*eps) ***** assert (taxedrr (0.12, 0), 0.12, 10*eps) ***** assert (taxedrr (0.12, 1), 0, 10*eps) 3 tests, 3 passed, 0 known failure, 0 skipped [inst/eomdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/eomdate.m ***** assert(eomdate(2008, 2), datenum(2008, 2, 29)) ***** assert(eomdate(2007, 2), datenum(2007, 2, 28)) ***** assert(eomdate([2008 2007], [3 4]), [datenum(2008, 3, 31) datenum(2007, 4, 30)]) ***** assert(eomdate([2008;2007], [3;4]), [datenum(2008, 3, 31);datenum(2007, 4, 30)]) 4 tests, 4 passed, 0 known failure, 0 skipped [inst/@sde/simByEuler.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/@sde/simByEuler.m ***** test Asset1Price = 40.; Asset2Price = 40.; Strike = 40.; RiskFreeRate = 0.05; Volatility1 = 0.5; Volatility2 = 0.5; ExpiryTime = 0.25; Correlation = 0.3; Simulations = 1e5; Timesteps = 10; Drift = drift ([0.;0.], [RiskFreeRate 0.;0. RiskFreeRate]); Diffusion = diffusion ([1.;1.], [Volatility1 0.;0. Volatility2]); SDE = sde (Drift, Diffusion, "StartState", [Asset1Price;Asset2Price], "Correlation", [1 Correlation;Correlation 1]); [Paths, ~, ~] = simulate (SDE, 1, "DeltaTime", ExpiryTime, "NTRIALS", Simulations, "NSTEPS", Timesteps, "Antithetic", true); BasketCallApproximate = exp (-RiskFreeRate * ExpiryTime) * mean (max (max (Paths(end, :, :)) - Strike, 0.)); BasketCall = 6.8477; ## Computed using formula from Stulz (1982) assert (BasketCallApproximate, BasketCall, 1e-1); ***** test AssetPrice = 100.; RiskFreeRate = 0.04; Dividends = 0.01; Volatility = 0.2; ExpiryTime = 1.; Simulations = 1e6; Timesteps = 10; Drift = drift (0., RiskFreeRate - Dividends); Diffusion = diffusion (1., Volatility); SDE = sde (Drift, Diffusion, "StartState", AssetPrice); [Paths, ~, ~] = simByEuler (SDE, 1, "DeltaTime", ExpiryTime, "NTRIALS", Simulations, "NSTEPS", Timesteps, "Antithetic", true); AssetExpiryMean = AssetPrice * exp ((RiskFreeRate - Dividends) * ExpiryTime); AssetExpiryMeanApproximate = mean (Paths(end, 1, :)); AssetExpiryVariance = AssetPrice * AssetPrice * exp (2 * (RiskFreeRate - Dividends) * ExpiryTime) * (exp (Volatility * Volatility * ExpiryTime) - 1); ConfidenceInterval = 0.01; tol = norminv(1 - ConfidenceInterval/2) * sqrt (AssetExpiryVariance / Simulations); assert (AssetExpiryMeanApproximate, AssetExpiryMean, tol) Strike = 100.; CallApproximate = exp (-RiskFreeRate * ExpiryTime) * mean (max (Paths(end, 1, :) - Strike, 0.)); [Call, ~] = blsprice (AssetPrice, Strike, RiskFreeRate, ExpiryTime, Volatility, Dividends); assert (CallApproximate, Call, 1e-1); ***** error simByEuler() ***** error simByEuler(1) ***** error simByEuler("invalid type", 1) 5 tests, 5 passed, 0 known failure, 0 skipped [inst/@sde/sde.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/@sde/sde.m ***** error sde () ***** error sde (1) ***** error sde (1, 2) ***** error sde (1, 2, "OptionName") 4 tests, 4 passed, 0 known failure, 0 skipped [inst/@sde/simulate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/@sde/simulate.m ***** error simulate () ***** error simulate (1) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/busdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/busdate.m ***** assert(busdate(datenum(2008,1,2)), datenum(2008,1,3)) ***** assert(busdate(datenum(2007,12,31)), datenum(2008,1,2)) ***** assert(busdate(datenum(2007,1,5)), datenum(2007,1,8)) ***** assert(busdate(datenum(2007,1,6)), datenum(2007,1,8)) ***** assert(busdate(datenum(2008,1,3), -1), datenum(2008,1,2)) ***** assert(busdate(datenum(2008,1,2), -1), datenum(2007,12,31)) ***** assert(busdate(datenum(2008,1,2), -1, datenum(2007,1,1):datenum(2008,1,1)), datenum(2006,12,29)) ***** assert(busdate([datenum(2008,1,2) datenum(2007,1,1)]), [datenum(2008,1,3) datenum(2007,1,3)]) ***** assert(busdate([datenum(2008,1,2) datenum(2007,1,1)], [1 1]), [datenum(2008,1,3) datenum(2007,1,3)]) ***** assert(busdate([datenum(2008,1,2) datenum(2007,1,1)], 1), [datenum(2008,1,3) datenum(2007,1,3)]) ***** assert(busdate([datenum(2008,1,2);datenum(2007,1,1)], [1;1]), [datenum(2008,1,3);datenum(2007,1,3)]) ***** assert(busdate([datenum(2008,1,2);datenum(2007,1,2)], [1;-1]), [datenum(2008,1,3);datenum(2006,12,29)]) ***** assert(busdate(datenum(2008,1,2), 1, holidays(datenum(2008,1,1), datenum(2008,1,31)), [1 0 0 0 0 0 0]), datenum(2008,1,3)) ***** assert(busdate(datenum(2008,1,4), 1, holidays(datenum(2008,1,1), datenum(2008,1,31)), [1 0 0 0 0 0 0]), datenum(2008,1,5)) ***** assert(busdate(datenum(2008,1,5), 1, holidays(datenum(2008,1,1), datenum(2008,1,31)), [1 0 0 0 0 0 0]), datenum(2008,1,7)) ***** assert(busdate(datenum(2008,1,6), 1, holidays(datenum(2008,1,1), datenum(2008,1,31)), [1 0 0 0 0 0 0]), datenum(2008,1,7)) ***** assert(busdate(datenum(2008,1,1), 1, holidays(datenum(2008,1,1), datenum(2008,1,31)), [1 1 1 1 1 1 0]), datenum(2008,1,5)) 17 tests, 17 passed, 0 known failure, 0 skipped [inst/month.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/month.m ***** assert (nthargout (1:2, @month, 523383), {12 "Dec"}); ***** assert (nthargout (1:2, @month, "12-02-34", "mm-dd-yy"), {12 "Dec"}); 2 tests, 2 passed, 0 known failure, 0 skipped [inst/thirdwednesday.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/thirdwednesday.m ***** shared m, y, bt, et m = (1:12)'; y = 2008; bt = datenum(2008, m, [16;20;19;16;21;18;16;20;17;15;19;17]); et = datenum([2008*ones(9,1);2009*ones(3,1)], [4:12 1:3]', [16;20;19;16;21;18;16;20;17;15;19;17]); ***** test [b e] = thirdwednesday (m, y); assert(b, bt) assert(e, et) ***** test [b e] = thirdwednesday (m', y); assert(b, bt') assert(e, et') 2 tests, 2 passed, 0 known failure, 0 skipped [inst/rsindex.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/rsindex.m ***** shared c, r c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21]; r = [nan(1, 13) 85.1190 70.235 68.6684 55.6322 53.0414 49.7717]; ***** assert(rsindex(c), r, 0.0001) ***** assert(rsindex(c'), r', 0.0001) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/gbm.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/gbm.m ***** test AssetPrice = 100.; RiskFreeRate = 0.04; Dividends = 0.01; Volatility = 0.2; ExpiryTime = 1.; Simulations = 1e6; Timesteps = 10; SDE = gbm (RiskFreeRate - Dividends, Volatility, "StartState", AssetPrice); [Paths, ~, ~] = simByEuler (SDE, 1, "DeltaTime", ExpiryTime, "NTRIALS", Simulations, "NSTEPS", Timesteps, "Antithetic", true); Strike = 100.; CallApproximate = exp (-RiskFreeRate * ExpiryTime) * mean (max (Paths(end, 1, :) - Strike, 0.)); [Call, ~] = blsprice (AssetPrice, Strike, RiskFreeRate, ExpiryTime, Volatility, Dividends); assert (CallApproximate, Call, 1e-1); 1 test, 1 passed, 0 known failure, 0 skipped [inst/mirr.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/mirr.m ***** assert (mirr ([-100000 20000 -10000 30000 38000 50000], 0.09, 0.12), 0.0832, 0.00005) 1 test, 1 passed, 0 known failure, 0 skipped [inst/cov2corr.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/cov2corr.m ***** demo cov = [ 0.25 -0.5; -0.5 4.0 ]; [ sigma, corr ] = cov2corr( cov ); %-------------------------------------------------- % Input covariance matrix, output standard deviations and correlation % matrix ***** test cov = [ 0.25 -0.5; -0.5 4.0 ]; [sigma, corr] = cov2corr( cov ); assert( sigma, [0.5 2.0] ) assert( corr, [1.0 -0.5; -0.5 1.0] ); 1 test, 1 passed, 0 known failure, 0 skipped [inst/binprice.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/binprice.m ***** test [AssetPrice, OptionValue] = binprice (100, 100, 0.04, 1, 0.25, 0.2, 0, 0.01); assert (OptionValue(1:2,1:2), [6.4701 2.2159; 0 11.0776], 1e-4) ***** error binprice () ***** error binprice (1) ***** error binprice (1, 2) ***** error binprice (1, 2, 3) ***** error binprice (1, 2, 3, 4) ***** error binprice (1, 2, 3, 4, 5) ***** error binprice (1, 2, 3, 4, 5, 6) 8 tests, 8 passed, 0 known failure, 0 skipped [inst/cfconv.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/cfconv.m ***** demo cf = [2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 102.5]; yield = 0.025; cfConv = cfconv( cf, yield ); %-------------------------------------------------- % Input cash flow and yield, output convexity ***** test cf = [2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 102.5]; cfConv = cfconv( cf, 0.025 ); errVal = round(cfConv*(1e+4))*(1e-4) - 90.4493; errVal = round(errVal*(1e+10)); assert(errVal, 0) 1 test, 1 passed, 0 known failure, 0 skipped [inst/blsgamma.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsgamma.m ***** error blsgamma () ***** error blsgamma (1) ***** error blsgamma (1, 2) ***** error blsgamma (1, 2, 3) ***** error blsgamma (1, 2, 3, 4) 5 tests, 5 passed, 0 known failure, 0 skipped [inst/nweekdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/nweekdate.m ***** assert(nweekdate(1, 4, 2008, 1), datenum(2008, 1, 2)) ***** assert(nweekdate(2, 4, 2008, 1), datenum(2008, 1, 9)) ***** assert(nweekdate(3, 4, 2008, 1), datenum(2008, 1, 16)) ***** assert(nweekdate(4, 4, 2008, 1), datenum(2008, 1, 23)) ***** assert(nweekdate(5, 4, 2008, 1), datenum(2008, 1, 30)) ***** assert(nweekdate(6, 4, 2008, 1), 0) ***** assert(nweekdate(5, 6, 2008, 1), 0) ***** assert(nweekdate(1, 4, 2008, 1, 2), datenum(2008, 1, 9)) ***** assert(nweekdate(5, 4, 2008, 1, 6), 0) ***** assert(nweekdate(1:6, 4, 2008, 1, 6), [datenum(2008, 1, 2:7:23), 0, 0]) ***** assert(nweekdate('lweekdate', 4, 2008, 1), datenum(2008, 1, 30)) ***** assert(nweekdate('lweekdate', 4, 2008, 1, 6), datenum(2008, 1, 23)) 12 tests, 12 passed, 0 known failure, 0 skipped [inst/fbusdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/fbusdate.m ***** assert(fbusdate(2008,2), datenum(2008,2,1)) ***** assert(fbusdate(2008,1), datenum(2008,1,2)) ***** assert(fbusdate(2008,3), datenum(2008,3,3)) 3 tests, 3 passed, 0 known failure, 0 skipped [inst/blsrho.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blsrho.m ***** test [CallRho, PutRho] = blsrho (90:10:110, 100, 0.04, 1, 0.2, 0.01); assert (CallRho, [30.4331 49.9552 67.3271], 1e-4) assert (PutRho, [-65.6458 -46.1238 -28.7519], 1e-4) ***** error blsrho () ***** error blsrho (1) ***** error blsrho (1, 2) ***** error blsrho (1, 2, 3) ***** error blsrho (1, 2, 3, 4) 6 tests, 6 passed, 0 known failure, 0 skipped [inst/lbusdate.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/lbusdate.m ***** assert(lbusdate(2008,4), datenum(2008,4,30)) ***** assert(lbusdate(2008,5), datenum(2008,5,30)) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/second.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/second.m ***** assert (second (451482.906781456), 45.918, 0.01) ***** assert (second ("1967-09-21 11:56:34", "yyyy-mm-dd HH:MM:SS"), 34) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/macd.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/macd.m ***** shared d, m, n, a, b d = [46.84 47.07 45.92 47.24 47.64 47.3 48.22 46.98 46.41 44.78 46.29 47.99 47.47 49.19 48.85 48.13 49.13 50.91 51.01 50.48 50.88 51.2 50.85 50.16 48.44 49.1 47.67 45.43 46.47 48.76 50.08 50.74 51.91 51.11 49.36 48.96 49.28 49.02 48.24 49.71]; m = [NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 1.10928 0.87603 0.50460 0.29081 0.30268 0.41383 0.54884 0.74170 0.82053 0.73334 0.62476 0.55810 0.47877 0.34894 0.36051]; n = [NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 0.66262 0.67677 0.66636 0.64471 0.61152 0.55901 0.51931]; [a, b] = macd (d); ***** assert([a, b], [m, n], 0.0001) [a, b] = macd (d, 1); ***** assert([a, b], [m, n], 0.0001) [a, b] = macd (d', 2); ***** assert([a, b], [m, n], 0.0001) 3 tests, 3 passed, 0 known failure, 0 skipped [inst/isbusday.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/isbusday.m ***** assert(isbusday(datenum(2008,1,2)), true()) ***** assert(isbusday(datenum(2008,1,1)), false()) ***** assert(isbusday(datenum(2008,1,1), []), false()) ***** assert(isbusday(datenum(2008,2,2)), false()) ***** assert(isbusday(datenum(2008,1,2), datenum(2008,1,2)), false()) ***** assert(isbusday(datenum(2008,1,2), [], zeros(1,7)), true()) ***** assert(isbusday(datenum(2008,1,2), [], ones(1,7)), false()) ***** assert(isbusday([datenum(2008,1,2) datenum(2008,2,2)]), [true() false()]) ***** assert(isbusday([datenum(2008,1,2);datenum(2008,2,2)]), [true();false()]) 9 tests, 9 passed, 0 known failure, 0 skipped [inst/onbalvol.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/onbalvol.m ***** shared c, v, obv c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21]; v = [10 12 23 25 34 12 32 15 15 34 54 12 86 45 32 76 89 13 28]; obv = [0 12 35 60 94 82 50 35 50 84 138 150 236 281 249 173 84 97 69]'; ***** assert(onbalvol(c, v), obv) ***** assert(onbalvol([c' v']), obv) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/blstheta.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blstheta.m ***** test [CallTheta, PutTheta] = blstheta (90:10:110, 100, 0.04, 1, 0.2, 0.01); assert (CallTheta, [-4.2901 -5.2337 -5.1954], 1e-4) assert (PutTheta, [-1.3380 -2.3806 -2.4413], 1e-4) ***** error blstheta () ***** error blstheta (1) ***** error blstheta (1, 2) ***** error blstheta (1, 2, 3) ***** error blstheta (1, 2, 3, 4) 6 tests, 6 passed, 0 known failure, 0 skipped [inst/nomrr.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/nomrr.m ***** assert (nomrr (0.0938, 12), 0.09, 0.00005) 1 test, 1 passed, 0 known failure, 0 skipped [inst/pointfig.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/pointfig.m ***** shared a a = [1 2 3 2 4 2 1]; ***** test [s l] = movavg(a, 2, 4); assert(s, [1 1.5 2.5 2.5 3 3 1.5]) assert(l, [1 1.5 2 2 2.75 2.75 2.25]) ***** test [s l] = movavg(a', 2, 4); assert(s, [1;1.5;2.5;2.5;3;3;1.5]) assert(l, [1;1.5;2;2;2.75;2.75;2.25]) ***** test [s l] = movavg(a, 3, 4, 1); assert(s, [3 4.8 7 7 9.5 8 5.5]./3, 10*eps) assert(l, [1 11/7 20/9 2.2 3 2.7 2], 10*eps) 3 tests, 3 passed, 0 known failure, 0 skipped [inst/blslambda.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blslambda.m ***** test [CallEl, PutEl] = blslambda (90:10:110, 100, 0.04, 1, 0.2); assert (CallEl, [7.7536 6.2258 5.0647], 1e-4) assert (PutEl, [-4.8955 -6.3639 -7.8941], 1e-4) ***** test [CallEl, PutEl] = blslambda (90:10:110, 100, 0.04, 1, 0.2, 0.01); assert (CallEl, [7.9108 6.3601 5.1762], 1e-4) assert (PutEl, [-4.7695 -6.2139 -7.7255], 1e-4) ***** error blslambda () ***** error blslambda (1) ***** error blslambda (1, 2) ***** error blslambda (1, 2, 3) ***** error blslambda (1, 2, 3, 4) 7 tests, 7 passed, 0 known failure, 0 skipped [inst/busdays.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/busdays.m ***** assert (busdays (datenum (2008, 1, 1), datenum (2008, 1, 12)), datenum (2008, 1, [2;3;4;7;8;9;10;11])) ***** assert (busdays (datenum (2008, 1, 1), datenum (2008, 1, 12), "d"), datenum (2008, 1, [2;3;4;7;8;9;10;11])) ***** assert (busdays (datenum (2001, 1, 2), datenum (2001, 1, 9), "w"), datenum (2001, 1, [5;12])) ***** assert (busdays (datenum (2008, 1, 1), datenum (2008, 1, 2), "m"), datenum (2008, 1, 31)) ***** assert (busdays (datenum (2008, 1, 1), datenum (2010, 5, 2), "m"), lbusdate ([2008*ones(12,1);2009*ones(12,1);2010*ones(5,1)], [1:12 1:12 1:5]')) ***** assert (busdays (datenum (2008, 1, 1), datenum (2008, 1, 2), "q"), datenum (2008, 3, 31)) ***** assert (busdays (datenum (2008, 1, 1), datenum (2010, 5, 2), "q"), lbusdate ([2008*ones(4,1);2009*ones(4,1);2010*ones(2,1)], [3:3:12 3:3:12 3 6]')) ***** assert (busdays (datenum (2008, 1, 1), datenum (2008, 1, 2), "s"), datenum (2008, 6, 30)) ***** assert (busdays (datenum (2008, 1, 1), datenum (2010, 5, 2), "s"), lbusdate ([2008;2008;2009;2009;2010], [6 12 6 12 6]')) ***** assert (busdays (datenum (2008, 1, 1), datenum (2011, 1, 2), "a"), datenum ([2008;2009;2010;2011], [12;12;12;12], [31;31;31;30])) 10 tests, 10 passed, 0 known failure, 0 skipped [inst/day.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/day.m ***** assert (day (523383), 21); ***** assert (day ("12-02-34", "mm-dd-yy"), 2); 2 tests, 2 passed, 0 known failure, 0 skipped [inst/year.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/year.m ***** assert (year (523383), 1432); ***** assert (year ("12-02-34", "mm-dd-yy"), 2034); ***** assert (year ([728647 728848]), [1994 1995]); ***** assert (year ([728647; 728848]), [1994; 1995]); ***** assert (year ({"12-02-34", "12-02-85"}, "mm-dd-yy"), [2034 1985]); ***** assert (year ({"12-02-34"; "12-02-85"}, "mm-dd-yy"), [2034; 1985]); 6 tests, 6 passed, 0 known failure, 0 skipped [inst/cir.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/cir.m ***** test InitialInterestRate = 0.03; Speed = 1.; MeanInterestRate = 0.04; Volatility = 0.3; ExpiryTime = 1.; Simulations = 1e4; Timesteps = 100; SDE = cir (Speed, MeanInterestRate, Volatility, "StartState", InitialInterestRate); [Paths, ~, ~] = simByEuler (SDE, Timesteps, "DeltaTime", ExpiryTime / Timesteps, "NTRIALS", Simulations, "NSTEPS", 1, "Antithetic", true, "Processes", @(t, X) max(X, 0)); BondApproximate = mean (exp (-(sum (Paths) - InitialInterestRate) * ExpiryTime / Timesteps)); h = sqrt (Speed * Speed + 2 * Volatility * Volatility); d = (2 * h + (Speed + h) * (exp (ExpiryTime * h) - 1)); A = ( (2 * h * exp ((Speed + h) * ExpiryTime / 2)) / d )^((2 * Speed * MeanInterestRate) / (Volatility * Volatility)); B = 2 * (exp (ExpiryTime * h) - 1) / d; Bond = A * exp (-B * InitialInterestRate); assert (BondApproximate, Bond, 1e-3); 1 test, 1 passed, 0 known failure, 0 skipped [inst/posvolidx.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/posvolidx.m ***** shared c, v, pvia, pvib c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21]; v = [10 12 23 25 34 12 32 15 15 34 54 12 86 45 32 76 89 13 28]; pvia = [100 100.7575758 101.0249554 101.9607843 104.0998217 104.0998217 103.4276318 103.4276318 103.4276318 105.7488389 106.1059477 106.1059477 108.242309 108.242309 108.242309 107.9734953 104.7029289 104.7029289 102.9290546]'; pvib = [5 5.037878788 5.051247772 5.098039216 5.204991087 5.204991087 5.171381588 5.171381588 5.171381588 5.287441943 5.305297383 5.305297383 5.412115451 5.412115451 5.412115451 5.398674767 5.235146444 5.235146444 5.14645273]'; ***** assert(posvolidx(c, v), pvia, 1e-5) ***** assert(posvolidx([c' v']), pvia, 1e-5) ***** assert(posvolidx(c, v, 5), pvib, 1e-5) ***** assert(posvolidx([c' v'], 5), pvib, 1e-5) 4 tests, 4 passed, 0 known failure, 0 skipped [inst/yeardays.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/yeardays.m ***** assert(yeardays(2000), 366) ***** assert(yeardays(2001), 365) ***** assert(yeardays(2000:2004), [366 365 365 365 366]) ***** assert(yeardays(2000, 0), 366) ***** assert(yeardays(2000, 1), 360) ***** assert(yeardays(2000, 2), 360) ***** assert(yeardays(2000, 3), 365) ***** assert(yeardays(2000, 4), 360) ***** assert(yeardays(2000, 5), 360) ***** assert(yeardays(2000, 6), 360) ***** assert(yeardays(2000, 7), 365) ***** assert(yeardays(2000, 8), 366) ***** assert(yeardays(2000, 9), 360) ***** assert(yeardays(2000, 10), 365) ***** assert(yeardays(2000, 11), 360) 15 tests, 15 passed, 0 known failure, 0 skipped [inst/hour.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/hour.m ***** assert (hour (451482.906781456), 21) ***** assert (hour ("1967-09-21 11:56:34", "yyyy-mm-dd HH:MM:SS"), 11) 2 tests, 2 passed, 0 known failure, 0 skipped [inst/hhigh.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/hhigh.m ***** shared c, h c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21 25]; h = [22.44 22.61 22.67 22.88 23.36 23.36 23.36 23.36 23.36 23.69 23.77 23.84 24.32 24.8 24.8 24.8 24.8 24.8 24.8 25]; ***** assert(hhigh(c), h) ***** assert(hhigh(c'), h') 2 tests, 2 passed, 0 known failure, 0 skipped [inst/blkimpv.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blkimpv.m ***** assert (blkimpv (90, 100, 0.04, 1, [3.4484 13.0563], 1, 1e-6, [1 0]), [0.2 0.2], 1e-4) ***** error blkimpv () ***** error blkimpv (1) ***** error blkimpv (1, 2) ***** error blkimpv (1, 2, 3) ***** error blkimpv (1, 2, 3, 4) ***** error blkimpv (1, 2, 3, 4, 5, 6, 7, 8, 2) 7 tests, 7 passed, 0 known failure, 0 skipped [inst/negvolidx.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/negvolidx.m ***** shared c, v, nvia, nvib c = [22.44 22.61 22.67 22.88 23.36 23.23 23.08 22.86 23.17 23.69 23.77 23.84 24.32 24.8 24.16 24.1 23.37 23.61 23.21]; v = [10 12 23 25 34 12 32 15 15 34 54 12 86 45 32 76 89 13 28]; nvia = [100 100 100 100 100 99.44349315 99.44349315 98.49559157 98.49559157 98.49559157 98.49559157 98.78565011 98.78565011 100.7353669 98.13574451 98.13574451 98.13574451 99.14355704 99.14355704]'; nvib = [5 5 5 5 5 4.972174658 4.972174658 4.924779578 4.924779578 4.924779578 4.924779578 4.939282505 4.939282505 5.036768344 4.906787226 4.906787226 4.906787226 4.957177852 4.957177852]'; ***** assert(negvolidx(c, v), nvia, 1e-5) ***** assert(negvolidx([c' v']), nvia, 1e-5) ***** assert(negvolidx(c, v, 5), nvib, 1e-5) ***** assert(negvolidx([c' v'], 5), nvib, 1e-5) 4 tests, 4 passed, 0 known failure, 0 skipped [inst/blkprice.m] >>>>> /build/octave-financial-hAmR7k/octave-financial-0.5.3/inst/blkprice.m ***** test [Call, Put] = blkprice (90:10:110, 100, 0.04, 1, 0.2); assert (Call, [3.4484 7.6532 13.7316], 1e-4) assert (Put, [13.0563 7.6532 4.1237], 1e-4) ***** error blkprice () ***** error blkprice (1) ***** error blkprice (1, 2) ***** error blkprice (1, 2, 3) ***** error blkprice (1, 2, 3, 4) 6 tests, 6 passed, 0 known failure, 0 skipped Checking C++ files ... Summary: 292 tests, 292 passed, 0 known failures, 0 skipped dh_installdocs -i -O--buildsystem=octave dh_installchangelogs -i -O--buildsystem=octave dh_octave_changelogs -i -O--buildsystem=octave dh_octave_examples -i -O--buildsystem=octave dh_installsystemduser -i -O--buildsystem=octave dh_perl -i -O--buildsystem=octave dh_link -i -O--buildsystem=octave dh_strip_nondeterminism -i -O--buildsystem=octave dh_compress -i -O--buildsystem=octave dh_fixperms -i -O--buildsystem=octave dh_missing -i -O--buildsystem=octave dh_octave_substvar -i -O--buildsystem=octave dh_installdeb -i -O--buildsystem=octave dh_gencontrol -i -O--buildsystem=octave dpkg-gencontrol: warning: package octave-financial: substitution variable ${octave:Upstream-Description} unused, but is defined dh_md5sums -i -O--buildsystem=octave dh_builddeb -i -O--buildsystem=octave dpkg-deb: building package 'octave-financial' in '../octave-financial_0.5.3-3_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../octave-financial_0.5.3-3_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/octave-financial-hAmR7k /tmp/octave-financial-0.5.3-3dqzhgv6w I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.idLAOPsQxw... I: success in 661.7118 seconds md5: octave-financial_0.5.3-3_all.deb: OK sha1: octave-financial_0.5.3-3_all.deb: OK sha256: octave-financial_0.5.3-3_all.deb: OK Checksums: OK