mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 00:07:12 -07:00
Added command file and test for Windows
This commit is contained in:
parent
0382444c0c
commit
c59d61f8c1
3 changed files with 12 additions and 2 deletions
|
@ -78,7 +78,12 @@ public class TestJlinkOperation {
|
|||
@Test
|
||||
void testCmdFiles() {
|
||||
System.setOut(new PrintStream(outputStreamCaptor));
|
||||
var jlink = new JlinkOperation().cmdFiles("src/test/resources/jlink/options_jlink.txt");
|
||||
final JlinkOperation jlink;
|
||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
||||
jlink = new JlinkOperation().cmdFiles("src/test/resources/jlink/options_jlink_win.txt");
|
||||
} else {
|
||||
jlink = new JlinkOperation().cmdFiles("src/test/resources/jlink/options_jlink.txt");
|
||||
}
|
||||
assertDoesNotThrow(jlink::execute);
|
||||
var out = outputStreamCaptor.toString();
|
||||
assertTrue(out.contains("List of available plugins:"), out);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--verbose --version #--foo
|
||||
--module-path "\'foo\' \"bar\" --bar" --list-plugins
|
||||
--module-path "\'foo --bar\' \"bar --foo\" --bar" --list-plugins
|
||||
--output foo --bind-services
|
||||
|
||||
# bar
|
5
src/test/resources/jlink/options_jlink_win.txt
Normal file
5
src/test/resources/jlink/options_jlink_win.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
--verbose --version #--foo
|
||||
--module-path "\'foo --bar\' --bar" --list-plugins
|
||||
--output foo --bind-services
|
||||
|
||||
# bar
|
Loading…
Add table
Add a link
Reference in a new issue