~ubuntu-branches/ubuntu/lucid/nss/lucid

« back to all changes in this revision

Viewing changes to mozilla/security/nss/tests/common/init.sh

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Fabien Tassin, Alexander Sack
  • Date: 2009-01-11 15:06:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111150617-iz4lw05qgy2odorl
Tags: 3.12.2~rc1-0ubuntu1
* New upstream snapshot: 3.12.2 RC1

[ Fabien Tassin <fta@ubuntu.com> ]
* Remove patch applied upstream:
  - drop debian/patches/80_security_tools.patch
  - update debian/patches/series
* Update diverged patches:
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
* Add new symbols to symbols file
  - update debian/libnss3-1d.symbols

[ Alexander Sack <asac@ubuntu.com> ]
* disable soname patch to become binary compatible with upstream
  - update debian/patches/series
* flip links: libnss3.so <- libnss3.so.1d (before: libnss3.so ->
  libnss3.so.1d); same link flipping was done for all other previously
  soname patched libs: libnssutil3.so, libsmime3.so.1d, libssl3.so.1d
  - update debian/libnss3-1d.links
  - update debian/libnss3-1d.symbols
* properly transition links in preinst and postrm; also cover abort-
  cases in the other maintainer scripts
  - add debian/libnss3-1d.postinst
  - add debian/libnss3-1d.postrm
  - add debian/libnss3-1d.preinst
  - add debian/libnss3-1d.prerm
* remove hack from debian/rules that debian uses to recreate
  libsoftokn3.so with a versioned SONAME
  - update debian/rules
* install the unversioned .so binaries
  - update debian/rules
* only install the 4 main libraries into /usr/lib; all the others
  go to pkglibdir
  - update debian/rules
* higher bar for libnspr4 Build-Depend to >= 4.7.3~, which is
  the version where the soname droppage is going to happen
  - update debian/control
* explitily pass libraries to be used for dpkg-gensymbols run of
  dh_makeshlibs
  - update debian/rules
* fix lintian complain about no-shlibs-control-file
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        FIPSPWFILE=${HOSTDIR}/tests.fipspw.$$
115
115
        FIPSBADPWFILE=${HOSTDIR}/tests.fipsbadpw.$$
116
116
        FIPSP12PWFILE=${HOSTDIR}/tests.fipsp12pw.$$
117
 
    
 
117
 
118
118
        echo "fIps140" > ${FIPSPWFILE}
119
119
        echo "fips104" > ${FIPSBADPWFILE}
120
120
        echo "pKcs12fips140" > ${FIPSP12PWFILE}
121
121
 
 
122
        noise
 
123
 
122
124
        P_SERVER_CADIR=${SERVER_CADIR}
123
125
        P_CLIENT_CADIR=${CLIENT_CADIR}
124
126
    
137
139
        export HOSTDIR
138
140
    }
139
141
 
 
142
# Generate noise file
 
143
    noise()
 
144
    {
 
145
        # NOTE: these keys are only suitable for testing, as this whole thing 
 
146
        # bypasses the entropy gathering. Don't use this method to generate 
 
147
        # keys and certs for product use or deployment.
 
148
        ps -efl > ${NOISE_FILE} 2>&1
 
149
        ps aux >> ${NOISE_FILE} 2>&1
 
150
        date >> ${NOISE_FILE} 2>&1
 
151
    }
 
152
 
140
153
# Print selected environment variable (used for backup)
141
154
    env_backup()
142
155
    {
143
156
        echo "HOSTDIR=\"${HOSTDIR}\""
144
157
        echo "TABLE_ARGS="
145
158
        echo "NSS_TEST_DISABLE_CRL=${NSS_TEST_DISABLE_CRL}"
146
 
        echo "NSS_TEST_DISABLE_CIPHERS=${NSS_TEST_DISABLE_CIPHERS}"
147
 
        echo "NSS_TEST_DISABLE_BYPASS=${NSS_TEST_DISABLE_BYPASS}"
148
 
        echo "NSS_TEST_DISABLE_CLIENT_BYPASS=${NSS_TEST_DISABLE_CLIENT_BYPASS}"
149
 
        echo "NSS_TEST_DISABLE_SERVER_BYPASS=${NSS_TEST_DISABLE_SERVER_BYPASS}"
150
 
        echo "NSS_TEST_SERVER_CLIENT_BYPASS=${NSS_TEST_SERVER_CLIENT_BYPASS}"
151
 
        echo "NSS_TEST_DISABLE_FIPS=${NSS_TEST_DISABLE_FIPS}"
 
159
        echo "NSS_SSL_TESTS=\"${NSS_SSL_TESTS}\""
 
160
        echo "NSS_SSL_RUN=\"${NSS_SSL_RUN}\""
152
161
        echo "NSS_DEFAULT_DB_TYPE=${NSS_DEFAULT_DB_TYPE}"
153
162
        echo "export NSS_DEFAULT_DB_TYPE"
154
163
        echo "NSS_ENABLE_PKIX_VERIFY=${NSS_ENABLE_PKIX_VERIFY}"
265
274
    MAKE=gmake
266
275
    $MAKE -v >/dev/null 2>&1 || MAKE=make
267
276
    $MAKE -v >/dev/null 2>&1 || { echo "You are missing make."; exit 5; }
 
277
    MAKE="$MAKE --no-print-directory"
268
278
 
269
279
    DIST=${DIST-${MOZILLA_ROOT}/dist}
270
280
    SECURITY_ROOT=${SECURITY_ROOT-${MOZILLA_ROOT}/security/nss}