summaryrefslogtreecommitdiff
path: root/security/nss/tests/run_niscc.sh
blob: b40567db4c429dcda41de0d4f2265c56b587aa11 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
#!/bin/sh

##############################################################
# do a cvs pull of NSS
##############################################################
cvs_pull()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME
  cd $HOME/..

  #do a CVS checkout of NSS, set your own CVSROOT
  cvs co mozilla/security/nss mozilla/security/coreconf
}

##############################################################
# build NSS after setting make variable NISCC_TEST
##############################################################
build_NSS()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME
  cd $HOME/..

  NISCC_TEST=1; export NISCC_TEST

  cd mozilla/security/coreconf
  gmake import >> $HOME/nisccBuildLog
  gmake >> $HOME/nisccBuildLog

  cd ../nss
  gmake import >> $HOME/nisccBuildLog
  gmake >> $HOME/nisccBuildLog
}


##############################################################
# set build dir, hostname, bin and lib directories
##############################################################
init()
{
  #
  #enable useful core files to be generated in case of crash
  #
  unlimit coredumpsize

  LOCALDIST=/share/builds/sbstools/nsstools/mozilla/dist; export LOCALDIST

  #
  # set appropriate hostname
  #
  DOMSUF=mcom.com
  if [ -z "$HOST" ]
  then
    HOST=`uname -n`
  fi
  HOSTNAME=$HOST.$DOMSUF; export HOSTNAME

  #
  # set bin and lib directory for Solaris and Linux
  #
  case `uname -s` in
  SunOS)
      LOCALDIST_BIN=${LOCALDIST}/SunOS5.8_DBG.OBJ/bin
      LOCALDIST_LIB=${LOCALDIST}/SunOS5.8_DBG.OBJ/lib
      echo $LOCALDIST_BIN
      ;;
  Linux)
      LOCALDIST_BIN=${LOCALDIST}/Linux2.4_x86_glibc_PTH_DBG.OBJ/bin
      LOCALDIST_LIB=${LOCALDIST}/Linux2.4_x86_glibc_PTH_DBG.OBJ/lib
      echo $LOCALDIST_BIN
      ;;
  HP-UX)
      LOCALDIST_BIN=${LOCALDIST}/HP-UXB.11.00_DBG.OBJ/bin
      LOCALDIST_LIB=${LOCALDIST}/HP-UXB.11.00_DBG.OBJ/lib
      echo $LOCALDIST_BIN
      ;;
  esac
  export LOCALDIST_BIN LOCALDIST_LIB

  PATH=/lib:/usr/lib:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/tools/ns/bin:$LOCALDIST_LIB:$LOCALDIST_BIN; export PATH
  LD_LIBRARY_PATH=$LOCALDIST_LIB; export LD_LIBRARY_PATH

  echo "PATH" $PATH
  echo "LD_LIBRARY_PATH" $LD_LIBRARY_PATH

  #run strings command to verify NISCC_TEST was set and built
  echo "strings $LD_LIBRARY_PATH/libssl3.so | grep NISCC_TEST > $HOME/nisccLog 2>&1"
  strings $LD_LIBRARY_PATH/libssl3.so | grep NISCC_TEST > $HOME/nisccLog 2>&1

}
#end of init section


##############################################################
# Setup simple client and server directory
# NOTE: this function is not called in main, these dirs need 
# only be set up once
##############################################################
ssl_setup_dirs_simple()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_client
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_server

#
# Setup simple client directory
#
  rm -rf $CLIENT
  mkdir -p $CLIENT
  echo test > $CLIENT/password-is-test.txt
  certutil -N -d $CLIENT -f $CLIENT/password-is-test.txt
  certutil -A -d $CLIENT -n rootca -i $TEST/rootca.crt -t "C,C,"
  pk12util -i $TEST/client_crt.p12 -d $CLIENT -k $CLIENT/password-is-test.txt \
    -W testtest1
  certutil -L -d $CLIENT 

  echo "GET /stop HTTP/1.0" > $CLIENT/stop.txt
  echo ""                  >> $CLIENT/stop.txt

#
# Setup simple server directory
#
  rm -rf $SERVER
  mkdir -p $SERVER
  echo test > $SERVER/password-is-test.txt
  certutil -N -d $SERVER -f $SERVER/password-is-test.txt
  certutil -A -d $SERVER -n rootca -i $TEST/rootca.crt -t "TC,C,"
  pk12util -i $TEST/server_crt.p12 -d $SERVER -k $SERVER/password-is-test.txt \
    -W testtest1
  certutil -L -d $SERVER
}


##############################################################
# Setup resigned client and server directory
# NOTE: this function is not called in main, these dirs need 
# only be set up once
###############################################################
ssl_setup_dirs_resigned()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_client
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_server

#
# Setup resigned client directory
#
  rm -rf $CLIENT
  mkdir -p $CLIENT
  echo test > $CLIENT/password-is-test.txt
  certutil -N -d $CLIENT -f $CLIENT/password-is-test.txt
  certutil -A -d $CLIENT -n rootca -i $TEST/rootca.crt -t "C,C,"
  pk12util -i $TEST/client_crt.p12 -d $CLIENT -k $CLIENT/password-is-test.txt \
    -W testtest1
  certutil -L -d $CLIENT 

  echo "GET /stop HTTP/1.0" > $CLIENT/stop.txt
  echo ""                  >> $CLIENT/stop.txt

#
# Setup resigned server directory
#
  rm -rf $SERVER
  mkdir -p $SERVER
  echo test > $SERVER/password-is-test.txt
  certutil -N -d $SERVER -f $SERVER/password-is-test.txt
  certutil -A -d $SERVER -n rootca -i $TEST/rootca.crt -t "TC,C,"
  pk12util -i $TEST/server_crt.p12 -d $SERVER -k $SERVER/password-is-test.txt \
    -W testtest1
  certutil -L -d $SERVER
}


##############################################################
# NISCC SMIME tests
##############################################################
niscc_smime()
{
  cd /share/builds/sbstools/nsstools/tmp/NISCC_SMIME_testcases

  SMIME_CERT_DB_DIR=envDB; export SMIME_CERT_DB_DIR
  NSS_STRICT_SHUTDOWN=1; export NSS_STRICT_SHUTDOWN
  NSS_DISABLE_ARENA_FREE_LIST=1; export NSS_DISABLE_ARENA_FREE_LIST
  HOME=/share/builds/sbstools/nsstools/tmp/niscc_smime

  cmsutil -D -d $SMIME_CERT_DB_DIR -p testtest1 -b -i p7m-ed-m-files.txt > \
      $HOME/p7m-ed-m-results.txt 2>&1 &
 
  SMIME_CERT_DB_DIR=sigDB; export SMIME_CERT_DB_DIR

  cmsutil -D -d $SMIME_CERT_DB_DIR -c detached.txt -b -i p7m-sd-dt-files.txt > \
      $HOME/p7m-sd-dt-results.txt 2>&1 &

  cmsutil -D -d $SMIME_CERT_DB_DIR -b -i p7m-sd-op-files.txt > \
      $HOME/p7m-sd-op-results.txt 2>&1 &

}
#end of smime section

##############################################################
# set env variables for NISCC SSL tests
##############################################################
niscc_ssl_init()
{
  NSS_STRICT_SHUTDOWN=1; export NSS_STRICT_SHUTDOWN
  NSS_DISABLE_ARENA_FREE_LIST=1; export NSS_DISABLE_ARENA_FREE_LIST
  TEST=/share/builds/sbstools/nsstools/tmp/NISCC_SSL_testcases; export TEST
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME
  cd $HOME
}


##############################################################
# do simple client auth tests
##############################################################
ssl_simple_client_auth()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_server; export SERVER
  PORT=8443; export PORT
  START_AT=1; export START_AT
  STOP_AT=106160; export STOP_AT
  unset NISCC_TEST; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -rr -t 5 -w test > $HOME/nisccLog01 2>&1 &

  NISCC_TEST=$TEST/simple_client; export NISCC_TEST
  strsclnt -d $CLIENT -n client_crt -p $PORT -t 4 -c 106160 -o -N -w test $HOSTNAME > $HOME/nisccLog02 2>&1

  unset NISCC_TEST; export NISCC_TEST
  echo "starting tstclnt to shutdown simple client selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog02 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog02 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog02 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog02 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog02 2>&1
  sleep 10

  find_core
}

##############################################################
# do simple server auth tests
##############################################################
ssl_simple_server_auth()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_server; export SERVER
  PORT=8444; export PORT
  START_AT=1; export START_AT
  STOP_AT=106167; export STOP_AT
  NISCC_TEST=$TEST/simple_server; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -t 5 -w test > $HOME/nisccLog03 2>&1 &

  unset NISCC_TEST; export NISCC_TEST
  strsclnt -d $CLIENT -p $PORT -t 4 -c 106167 -o -N $HOSTNAME > $HOME/nisccLog04 2>&1 

  echo "starting tstclnt to shutdown simple server selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog04 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog04 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog04 2>&1 
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog04 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog04 2>&1
  sleep 10

  find_core
}

##############################################################
# do simple rootCA tests
##############################################################
ssl_simple_rootca()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/simple_server; export SERVER
  PORT=8445; export PORT
  START_AT=1; export START_AT
  STOP_AT=106190; export STOP_AT
  NISCC_TEST=$TEST/simple_rootca; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -t 5 -w test > $HOME/nisccLog05 2>&1 &

  unset NISCC_TEST; export NISCC_TEST
  strsclnt -d $CLIENT -p $PORT -t 4 -c 106190 -o -N $HOSTNAME> $HOME/nisccLog06 2>&1

  echo "starting tstclnt to shutdown simple rootca selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog06 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog06 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog06 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog06 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog06 2>&1
  sleep 10

  find_core
}

##############################################################
# do resigned client auth tests
##############################################################
ssl_resigned_client_auth()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_server; export SERVER
  PORT=8446; export PORT
  START_AT=0; export START_AT
  STOP_AT=99981; export STOP_AT
  unset NISCC_TEST; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -rr -t 5 -w test > $HOME/nisccLog07 2>&1 &

  NISCC_TEST=$TEST/resigned_client; export NISCC_TEST
  strsclnt -d $CLIENT -n client_crt -p $PORT -t 4 -c 99982 -o -N -w test $HOSTNAME > $HOME/nisccLog08 2>&1 

  unset NISCC_TEST; export NISCC_TEST
  echo "starting tstclnt to shutdown resigned client selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog08 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog08 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog08 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog08 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog08 2>&1
  sleep 10

  find_core
}

##############################################################
# do resigned server auth tests
##############################################################
ssl_resigned_server_auth()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_server; export SERVER
  PORT=8447; export PORT
  START_AT=0; export START_AT
  STOP_AT=100068; export STOP_AT
  NISCC_TEST=$TEST/resigned_server; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -t 5 -w test > $HOME/nisccLog09 2>&1 &

  unset NISCC_TEST; export NISCC_TEST
  strsclnt -d $CLIENT -p $PORT -t 4 -c 100069 -o -N $HOSTNAME> $HOME/nisccLog10 2>&1 

  echo "starting tstclnt to shutdown resigned server selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog10 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog10 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog10 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog10 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog10 2>&1
  sleep 10

  find_core
}

##############################################################
# do resigned rootCA tests
##############################################################
ssl_resigned_rootca()
{
  CLIENT=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_client; export CLIENT
  SERVER=/share/builds/sbstools/nsstools/tmp/niscc_ssl/resigned_server; export SERVER
  PORT=8448; export PORT
  START_AT=0; export START_AT
  STOP_AT=99959; export STOP_AT
  NISCC_TEST=$TEST/resigned_rootca; export NISCC_TEST
  selfserv -p $PORT -d $SERVER -n server_crt -t 5 -w test > $HOME/nisccLog11 2>&1 &

  unset NISCC_TEST; export NISCC_TEST
  strsclnt -d $CLIENT -p $PORT -t 4 -c 99960 -o -N $HOSTNAME> $HOME/nisccLog12 2>&1 

  echo "starting tstclnt to shutdown resigned rootca selfserv process"
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog12 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog12 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog12 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog12 2>&1
  tstclnt -h $HOSTNAME -p $PORT -d $CLIENT -n client_crt -o -f -w test < $CLIENT/stop.txt >> nisccLog12 2>&1
  sleep 10

  find_core
}

###############################################################
# find core file and email if found, move core file to save it
###############################################################
find_core()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME
  for w in `find $HOME -name "core" -print`
  do
      mv $w $w.`date +%H%M%S`
  done
}


###############################################################
# email the test logfile, and if core found, notify of failure
###############################################################
mail_testLog()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME
  find $HOME -name "core*" -print >> $HOME/crashLog
  SIZE=`cat $HOME/crashLog | wc -l`
  if [ "$SIZE" -gt 0 ]
  then
      cat $HOME/crashLog >> $HOME/nisccLogSummary
      /bin/mail -s "WEEKLY NISCC TESTS FAILED: check end of logfile" \
        nss-qa-report@mcom.com < $HOME/nisccLogSummary
  else
      /bin/mail -s "PASSED: weekly NISCC tests completed" \
        nss-qa-report@mcom.com < $HOME/nisccLogSummary
  fi
}

###############################################################
# append all logs to primary log
# NOTE: this results in a huge log,fills up available space
# and is decommissioned
###############################################################
append_all_logs()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME

  cat $HOME/NISCC_SMIME_testcases/p7m-ed-m-results.txt >> $HOME/nisccLog
  cat $HOME/NISCC_SMIME_testcases/p7m-sd-dt-results.txt >> $HOME/nisccLog
  cat $HOME/NISCC_SMIME_testcases/p7m-sd-op-results.txt >> $HOME/nisccLog

  cat $HOME/nisccLog01 >> $HOME/nisccLog
  cat $HOME/nisccLog02 >> $HOME/nisccLog
  cat $HOME/nisccLog03 >> $HOME/nisccLog
  cat $HOME/nisccLog04 >> $HOME/nisccLog
  cat $HOME/nisccLog05 >> $HOME/nisccLog
  cat $HOME/nisccLog06 >> $HOME/nisccLog
  cat $HOME/nisccLog07 >> $HOME/nisccLog
  cat $HOME/nisccLog08 >> $HOME/nisccLog
  cat $HOME/nisccLog09 >> $HOME/nisccLog
  cat $HOME/nisccLog10 >> $HOME/nisccLog
  cat $HOME/nisccLog11 >> $HOME/nisccLog
  cat $HOME/nisccLog12 >> $HOME/nisccLog
}

###############################################################
# summarise all logs
###############################################################
log_summary()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME

  for a in $HOME/nisccLog[0-9]*
      do echo ================================== $a
      grep -v using $a | sort | uniq -c | sort -b -n +0 -1
      done | tee $HOME/nisccLogSummary

  for a in $HOME/niscc_smime/p7m-*-results.txt
      do echo ================================== $a
      grep -v using $a | sort | uniq -c | sort -b -n +0 -1
      done | tee -a $HOME/nisccLogSummary
}


###############################################################
# move the old mozilla and log files to save them, delete extra
# log files
###############################################################
move_files()
{
  HOME=/share/builds/sbstools/nsstools/tmp; export HOME

  cd $HOME
  mv -f ../mozilla ../mozilla.old
  mv nisccLogSummary nisccLogSummary.old
  mv crashLog crashLog.old
  mv nisccBuildLog nisccBuildLog.old

  rm -f nisccLog01 nisccLog02 nisccLog03 nisccLog04 nisccLog05 nisccLog06 \
      nisccLog07 nisccLog08 nisccLog09 nisccLog10 nisccLog11 nisccLog12
  rm -f niscc_smime/p7m-ed-m-results.txt \
      niscc_smime/p7m-sd-dt-results.txt \
      niscc_smime/p7m-sd-op-results.txt
}

############################## main ##############################
cvs_pull
build_NSS
init
niscc_smime; find_core
niscc_ssl_init
  ssl_simple_client_auth
  ssl_simple_server_auth
  ssl_simple_rootca
  ssl_resigned_client_auth
  ssl_resigned_server_auth
  ssl_resigned_rootca
log_summary
mail_testLog
move_files