BAS: Misc changes to test files
This commit is contained in:
parent
58878c6ec9
commit
4f1d02e5cf
@ -9,7 +9,11 @@ config EXAMPLES_BASTEST
|
||||
depends on INTERPRETERS_BAS
|
||||
select FS_ROMFS
|
||||
---help---
|
||||
Mount the ROMFS file system containing the BAS test files at /mnt/romfs.
|
||||
Mount the ROMFS file system containing the BAS test files at
|
||||
/mnt/romfs.
|
||||
|
||||
The logic in certain tests (test33.bas and test36.bas will also fail
|
||||
if there is no writable file system mount at /tmp.
|
||||
|
||||
if EXAMPLES_BASTEST
|
||||
|
||||
@ -17,16 +21,18 @@ config EXAMPLES_BASTEST_DEVMINOR
|
||||
int "ROMFS Minor Device Number"
|
||||
default 0
|
||||
---help---
|
||||
The minor device number of the ROMFS block. For example, the N in /dev/ramN.
|
||||
Used for registering the RAM block driver that will hold the ROMFS file system
|
||||
containing the BASIC files to be tested. Default: 0
|
||||
The minor device number of the ROMFS block. For example, the N in
|
||||
/dev/ramN. Used for registering the RAM block driver that will hold
|
||||
the ROMFS file system containing the BASIC files to be tested.
|
||||
Default: 0
|
||||
|
||||
config EXAMPLES_BASTEST_DEVPATH
|
||||
string "ROMFS Device Path"
|
||||
default "/dev/ram0"
|
||||
---help---
|
||||
The path to the ROMFS block driver device. This must match EXAMPLES_BASTEST_DEVMINOR.
|
||||
Used for registering the RAM block driver that will hold the ROMFS file system
|
||||
containing the BASIC files to be tested. Default: "/dev/ram0"
|
||||
The path to the ROMFS block driver device. This must match
|
||||
EXAMPLES_BASTEST_DEVMINOR. Used for registering the RAM block driver
|
||||
that will hold the ROMFS file system containing the BASIC files to
|
||||
be tested. Default: "/dev/ram0"
|
||||
|
||||
endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,10 @@
|
||||
open "test.out" for binary as 1
|
||||
open "/tmp/test.out" for binary as 1
|
||||
put 1,1,"xy"
|
||||
put 1,3,"z!"
|
||||
put 1,10,1/3
|
||||
put 1,20,9999
|
||||
close 1
|
||||
open "test.out" for binary as 1
|
||||
open "/tmp/test.out" for binary as 1
|
||||
s$=" "
|
||||
get 1,1,s$
|
||||
get 1,10,x
|
||||
@ -13,5 +13,5 @@ close
|
||||
print s$
|
||||
print x
|
||||
print n%
|
||||
kill "test.out"
|
||||
kill "/tmp/test.out"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
on error goto 10
|
||||
print "opening file"
|
||||
open "test.out" for output lock write as #1
|
||||
open "/tmp/test.out" for output lock write as #1
|
||||
print "open succeeded"
|
||||
if command$<>"enough" then shell "sh ./test/runbas test.bas enough"
|
||||
end
|
||||
|
1
examples/bastest/tests/test37.dat
Normal file
1
examples/bastest/tests/test37.dat
Normal file
@ -0,0 +1 @@
|
||||
abc
|
Loading…
Reference in New Issue
Block a user