I am packaging lmdb to use the zig build system for it to be added to the allyourcodebase organization. In my build script I have a test step which builds and installs the test binaries for lmdb into zig-out/test. For the test to run successfully lmdb required a testdb/ directory .ie (zig-out/test/testdb) to exist when the test binaries are run. So I have created a create_testdb sub step which depends on the test step. For create_testdb to work it must be executed after the test binaries have been installed into zig-out/test (I know I can use makePath so that all parent directories are created if they don't already exist but I want to use makeDir for this case and understand how the dependencies of a step are ordered)
So how do I make sure that create_testdb sub step is run only after all the other sub steps (which install the test binaries) of the top level test step are run. Because currently create_testdb sub step is usually run before the test binaries install steps in the top level test step, which leads to a error.FileNotFound because makeDir expects parent directories to already exist.