mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add CLI tests for RGBASM
This commit is contained in:
1
test/asm/cli/bad-dep-file.err
Normal file
1
test/asm/cli/bad-dep-file.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Dependency files can only be created if a target file is specified with either '-o', '-MQ' or '-MT'
|
||||
1
test/asm/cli/bad-dep-file.flags
Normal file
1
test/asm/cli/bad-dep-file.flags
Normal file
@@ -0,0 +1 @@
|
||||
-M depfile inputfile
|
||||
1
test/asm/cli/invalid-B.err
Normal file
1
test/asm/cli/invalid-B.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-B'
|
||||
1
test/asm/cli/invalid-B.flags
Normal file
1
test/asm/cli/invalid-B.flags
Normal file
@@ -0,0 +1 @@
|
||||
-B nan
|
||||
1
test/asm/cli/invalid-Q.err
Normal file
1
test/asm/cli/invalid-Q.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-Q'
|
||||
1
test/asm/cli/invalid-Q.flags
Normal file
1
test/asm/cli/invalid-Q.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Q invalid
|
||||
1
test/asm/cli/invalid-X.err
Normal file
1
test/asm/cli/invalid-X.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-X'
|
||||
1
test/asm/cli/invalid-X.flags
Normal file
1
test/asm/cli/invalid-X.flags
Normal file
@@ -0,0 +1 @@
|
||||
-X 0c777
|
||||
1
test/asm/cli/invalid-b-digits.err
Normal file
1
test/asm/cli/invalid-b-digits.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Must specify exactly 2 characters for option '-b'
|
||||
1
test/asm/cli/invalid-b-digits.flags
Normal file
1
test/asm/cli/invalid-b-digits.flags
Normal file
@@ -0,0 +1 @@
|
||||
-b 01X
|
||||
1
test/asm/cli/invalid-color.err
Normal file
1
test/asm/cli/invalid-color.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '--color'
|
||||
1
test/asm/cli/invalid-color.flags
Normal file
1
test/asm/cli/invalid-color.flags
Normal file
@@ -0,0 +1 @@
|
||||
--color yes
|
||||
1
test/asm/cli/invalid-g-digits.err
Normal file
1
test/asm/cli/invalid-g-digits.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Must specify exactly 4 characters for option '-g'
|
||||
1
test/asm/cli/invalid-g-digits.flags
Normal file
1
test/asm/cli/invalid-g-digits.flags
Normal file
@@ -0,0 +1 @@
|
||||
-g 0123X
|
||||
1
test/asm/cli/invalid-p.err
Normal file
1
test/asm/cli/invalid-p.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-p'
|
||||
1
test/asm/cli/invalid-p.flags
Normal file
1
test/asm/cli/invalid-p.flags
Normal file
@@ -0,0 +1 @@
|
||||
-p 123abc
|
||||
1
test/asm/cli/invalid-r.err
Normal file
1
test/asm/cli/invalid-r.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-r'
|
||||
1
test/asm/cli/invalid-r.flags
Normal file
1
test/asm/cli/invalid-r.flags
Normal file
@@ -0,0 +1 @@
|
||||
-r nan
|
||||
1
test/asm/cli/invalid-s.err
Normal file
1
test/asm/cli/invalid-s.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Invalid argument for option '-s'
|
||||
1
test/asm/cli/invalid-s.flags
Normal file
1
test/asm/cli/invalid-s.flags
Normal file
@@ -0,0 +1 @@
|
||||
-s invalid
|
||||
17
test/asm/cli/multiple-inputs.err
Normal file
17
test/asm/cli/multiple-inputs.err
Normal file
@@ -0,0 +1,17 @@
|
||||
FATAL: More than one input file specified
|
||||
Usage: rgbasm [-EhVvw] [-B depth] [-b chars] [-D name[=value]] [-g chars]
|
||||
[-I path] [-M depend_file] [-MC] [-MG] [-MP] [-MT target_file]
|
||||
[-MQ target_file] [-o out_file] [-P include_file] [-p pad_value]
|
||||
[-Q precision] [-r depth] [-s features:state_file] [-W warning]
|
||||
[-X max_errors] <file>
|
||||
|
||||
Useful options:
|
||||
-E, --export-all export all labels
|
||||
-M, --dependfile <path> set the output dependency file
|
||||
-o, --output <path> set the output object file
|
||||
-p, --pad-value <value> set the value to use for `DS`
|
||||
-s, --state <features>:<path> set an output state file
|
||||
-V, --version print RGBASM version and exit
|
||||
-W, --warning <warning> enable or disable warnings
|
||||
|
||||
For more help, use "man rgbasm" or go to https://rgbds.gbdev.io/docs/
|
||||
1
test/asm/cli/multiple-inputs.flags
Normal file
1
test/asm/cli/multiple-inputs.flags
Normal file
@@ -0,0 +1 @@
|
||||
one two
|
||||
1
test/asm/cli/out-of-range-Q.err
Normal file
1
test/asm/cli/out-of-range-Q.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Argument for option '-Q' must be between 1 and 31
|
||||
1
test/asm/cli/out-of-range-Q.flags
Normal file
1
test/asm/cli/out-of-range-Q.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Q .999
|
||||
1
test/asm/cli/out-of-range-p.err
Normal file
1
test/asm/cli/out-of-range-p.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Argument for option '-p' must be between 0 and 0xFF
|
||||
1
test/asm/cli/out-of-range-p.flags
Normal file
1
test/asm/cli/out-of-range-p.flags
Normal file
@@ -0,0 +1 @@
|
||||
-p 999
|
||||
1
test/asm/cli/out-of-range-r.err
Normal file
1
test/asm/cli/out-of-range-r.err
Normal file
@@ -0,0 +1 @@
|
||||
FATAL: Argument for option '-r' is out of range
|
||||
1
test/asm/cli/out-of-range-r.flags
Normal file
1
test/asm/cli/out-of-range-r.flags
Normal file
@@ -0,0 +1 @@
|
||||
-r 0x10000000000000000
|
||||
20
test/asm/cli/override-filenames.err
Normal file
20
test/asm/cli/override-filenames.err
Normal file
@@ -0,0 +1,20 @@
|
||||
warning: Overriding dependency file "one"
|
||||
warning: Overriding output file "one"
|
||||
warning: Overriding state file "only"
|
||||
FATAL: No input file specified (pass "-" to read from standard input)
|
||||
Usage: rgbasm [-EhVvw] [-B depth] [-b chars] [-D name[=value]] [-g chars]
|
||||
[-I path] [-M depend_file] [-MC] [-MG] [-MP] [-MT target_file]
|
||||
[-MQ target_file] [-o out_file] [-P include_file] [-p pad_value]
|
||||
[-Q precision] [-r depth] [-s features:state_file] [-W warning]
|
||||
[-X max_errors] <file>
|
||||
|
||||
Useful options:
|
||||
-E, --export-all export all labels
|
||||
-M, --dependfile <path> set the output dependency file
|
||||
-o, --output <path> set the output object file
|
||||
-p, --pad-value <value> set the value to use for `DS`
|
||||
-s, --state <features>:<path> set an output state file
|
||||
-V, --version print RGBASM version and exit
|
||||
-W, --warning <warning> enable or disable warnings
|
||||
|
||||
For more help, use "man rgbasm" or go to https://rgbds.gbdev.io/docs/
|
||||
1
test/asm/cli/override-filenames.flags
Normal file
1
test/asm/cli/override-filenames.flags
Normal file
@@ -0,0 +1 @@
|
||||
-M one -M two -o one -o two -s equ:only -s var:only
|
||||
Reference in New Issue
Block a user