File: cli

package info (click to toggle)
libtasn1-6 4.21.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,344 kB
  • sloc: ansic: 31,948; sh: 8,253; yacc: 651; makefile: 554; xml: 48
file content (34 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

asn1Coding --version
asn1Decoding --version
asn1Parser --version
echo "PASS: --version"

asn1Coding --help
asn1Decoding --help
asn1Parser --help
echo "PASS: --help"

asn1Coding --version|(! grep '()')
asn1Decoding --version|(! grep '()')
asn1Parser --version|(! grep '()')
echo "PASS: nonempty --with-packager-version"

man -P cat asn1Coding
man -P cat asn1Decoding
man -P cat asn1Parser
echo "PASS: man"

srcdir=tests/ ASN1PKIX=tests/pkix.asn ASN1DECODING=asn1Decoding tests/decoding.sh
echo "PASS: decoding.sh"

srcdir=tests ASN1CODING=asn1Coding tests/coding.sh
echo "PASS: coding.sh"

srcdir=tests PARSER=asn1Parser tests/parser.sh
echo "PASS: parser.sh"

exit 0