(testsuite) Add some java classpath tests.
This commit is contained in:
parent
f62a4ad7b2
commit
050fb91d40
0
test/fixtures/java/a/b$c.class
vendored
Normal file
0
test/fixtures/java/a/b$c.class
vendored
Normal file
0
test/fixtures/java/a/b.class
vendored
Normal file
0
test/fixtures/java/a/b.class
vendored
Normal file
2
test/fixtures/java/a/c/README.txt
vendored
Normal file
2
test/fixtures/java/a/c/README.txt
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
When CLASSPATH is set to the fixtures/java/a dir, we do *not* expect
|
||||||
|
*.class in subdirs to be included in completions, see Debian bug #496828.
|
0
test/fixtures/java/a/c/d.class
vendored
Normal file
0
test/fixtures/java/a/c/d.class
vendored
Normal file
0
test/fixtures/java/a/d.txt
vendored
Normal file
0
test/fixtures/java/a/d.txt
vendored
Normal file
BIN
test/fixtures/java/bashcomp.jar
vendored
Normal file
BIN
test/fixtures/java/bashcomp.jar
vendored
Normal file
Binary file not shown.
@ -1,4 +1,5 @@
|
|||||||
proc setup {} {
|
proc setup {} {
|
||||||
|
assert_bash_exec {CLASSPATH=$TESTDIR/fixtures/java/a:$TESTDIR/fixtures/java/bashcomp.jar}
|
||||||
save_env
|
save_env
|
||||||
}; # setup()
|
}; # setup()
|
||||||
|
|
||||||
@ -17,4 +18,23 @@ assert_complete_any "java -"
|
|||||||
sync_after_int
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete "b bashcomp.jarred toplevel" "java "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete "bashcomp.jarred toplevel" \
|
||||||
|
"java -cp $TESTDIR/fixtures/java/bashcomp.jar "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
assert_no_complete "java -cp \"\" "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
teardown
|
teardown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user