2
0
Fork 0
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:
Erik C. Thauvin 2024-08-05 14:52:18 -07:00
parent 0382444c0c
commit c59d61f8c1
Signed by: erik
GPG key ID: 776702A6A2DA330E
3 changed files with 12 additions and 2 deletions

View file

@ -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);

View file

@ -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

View file

@ -0,0 +1,5 @@
--verbose --version #--foo
--module-path "\'foo --bar\' --bar" --list-plugins
--output foo --bind-services
# bar