Skip to content
Snippets Groups Projects
Commit 3cf3083c authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist: Committed by Matthew Webster
Browse files

TEST: Just creating an OptionParser is not enough, as the OptionParser class

is entirely defined in options.h, and the linker may optimise out
libfsl-utils. The usage function is in options.cc though
parent 2230c5c4
No related branches found
No related tags found
1 merge request!57TEST: Test fslStartup logic
Pipeline #19481 skipped
...@@ -27,7 +27,7 @@ def run(cmd, ompthreads=None, blasthreads=None, fslskipglobal=None): ...@@ -27,7 +27,7 @@ def run(cmd, ompthreads=None, blasthreads=None, fslskipglobal=None):
print(f' exit code: {result.returncode}') print(f' exit code: {result.returncode}')
print(f' stdout: {result.stdout.strip()}') print(f' stdout: {result.stdout.strip()}')
return result.stdout.strip() return result.stdout.strip().split('\n')[-1]
def main(): def main():
......
...@@ -19,6 +19,7 @@ int main(int argc, char *argv[]) { ...@@ -19,6 +19,7 @@ int main(int argc, char *argv[]) {
// Use something from libfsl-utils.so // Use something from libfsl-utils.so
// to ensure that it gets linked. // to ensure that it gets linked.
Utilities::OptionParser opts("test", "test"); Utilities::OptionParser opts("test", "test");
opts.usage();
int omp_threads; int omp_threads;
int blas_threads; int blas_threads;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment