source: tests/example_scripts/wiki/id5.ck

Last change on this file was 1bf0f03, checked in by Mei <mei@…>, 11 years ago

1) save a copy before fixup of tests directory

  • Property mode set to 100755
File size: 491 bytes
RevLine 
[1bf0f03]1#!/usr/bin/env bash
[a02c849]2
3# id5.ck
4r1=`grep "id has privkey 1" id5.out 2>/dev/null |wc -l`
5r2=`grep "id1 has privkey 1" id5.out 2>/dev/null |wc -l`
[bec30b5]6r3=`grep "id2 has privkey 1" id5.out 2>/dev/null |wc -l`
7r4=`grep "id3 has privkey 1" id5.out 2>/dev/null |wc -l`
[a02c849]8r5=`grep "id4 has privkey 1" id5.out 2>/dev/null |wc -l`
[bec30b5]9r6=`grep "id5 has privkey 0" id5.out 2>/dev/null |wc -l`
[a02c849]10
[bec30b5]11if [ $r1 -eq 1 -a $r2 -eq 1 -a $r3 -eq 1 -a $r4 -eq 1 -a $r5 -eq 1 -a $r6 -eq 1 ]; then
[1bf0f03]12    exit 0
[a02c849]13else
[1bf0f03]14    exit 1
[a02c849]15fi
16
Note: See TracBrowser for help on using the repository browser.