<div dir="ltr"><div>Hi everyone:</div><div>I'm Weiwen Chen from Fudan University and I'm working on adding `robocopy.exe` into wine. I stage my work on my <a href="https://github.com/ofey404/wine/tree/robocopy" target="_blank">github fork</a>.<br></div><div><br></div><div>This program accepts complex command line arguments, so I'm trying to implement my own `getopt` function which accepts dos-style flags(beginning with slash, like `/x`).</div><div><br></div><div>The dummy code is under <a href="https://github.com/ofey404/wine/tree/robocopy/programs/robocopy" target="_blank">programs/robocopy</a> directory. And I want to add some unittest of `getopt_long()`, in <a href="https://github.com/ofey404/wine/blob/fe4a71850b023eefadab5ce357ce4671c1fffc72/programs/robocopy/tests/getopt.c#L21" target="_blank">robocopy/tests/getopt.c</a>. I try to import my source code of `getopt.c` relatively into unit test file, but I failed with error message like this:</div><div><br></div><div><span style="color:rgb(61,133,198)">../wine-git/programs/robocopy/tests/getopt.c:20: error: #include directive with relative path not allowed</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">How can I include my source file correctly into the test? Maybe I should configure something in the `configure` script, but I don't know how to do it.<br></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">I've read some of the builtin programs, but they seldom have a separate `test/` directory, and I don't find examples of unit tests.</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Wish you all the best</span></div><div><span style="color:rgb(0,0,0)">Weiwen Chen<br></span></div></div>