File: options-1.test

package info (click to toggle)
nvptx-tools 0.20240810-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,524 kB
  • sloc: ansic: 40,573; sh: 3,546; cpp: 3,334; makefile: 1,679; asm: 417; perl: 302; exp: 79; python: 39
file content (46 lines) | stat: -rw-r--r-- 1,218 bytes parent folder | download
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
Improper use of command-line options.


    invalid option -- '/'

RUN: %target_nm_cmd -/ > %t.stdout 2> %t.stderr; r=$?; [ x"$r" = x1 ]
RUN: test -s %t.stderr
RUN: < %t.stderr grep -qe '^Usage: nvptx-none-nm '
RUN: test -f %t.stdout
RUN: ! test -s %t.stdout


    option requires an argument -- 'f'

RUN: %target_nm_cmd -f > %t.stdout 2> %t.stderr; r=$?; [ x"$r" = x1 ]
RUN: test -s %t.stderr
RUN: < %t.stderr grep -qe '^Usage: nvptx-none-nm '
RUN: test -f %t.stdout
RUN: ! test -s %t.stdout


    unrecognized option '--holp'

RUN: %target_nm_cmd --holp > %t.stdout 2> %t.stderr; r=$?; [ x"$r" = x1 ]
RUN: test -s %t.stderr
RUN: < %t.stderr grep -qe '^Usage: nvptx-none-nm '
RUN: test -f %t.stdout
RUN: ! test -s %t.stdout


    option '--help' doesn't allow an argument

RUN: %target_nm_cmd --help=abc > %t.stdout 2> %t.stderr; r=$?; [ x"$r" = x1 ]
RUN: test -s %t.stderr
RUN: < %t.stderr grep -qe '^Usage: nvptx-none-nm '
RUN: test -f %t.stdout
RUN: ! test -s %t.stdout


    option '--format' requires an argument

RUN: %target_nm_cmd --format > %t.stdout 2> %t.stderr; r=$?; [ x"$r" = x1 ]
RUN: test -s %t.stderr
RUN: < %t.stderr grep -qe '^Usage: nvptx-none-nm '
RUN: test -f %t.stdout
RUN: ! test -s %t.stdout