diff options
author | Marius Kintel <marius@kintel.net> | 2013-03-09 16:05:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-03-09 16:05:29 (GMT) |
commit | e868b4a5a178ceb6b340e16151b0f82ec322fc9a (patch) | |
tree | 49ed68a853999c832265b4dda856107b59f2dd5b /tests/guiopencsgtest.cc | |
parent | b308ec270d69ef2981b4c89a55f3549aecc9b603 (diff) | |
parent | a7ee238a51fbf0dc6b24b2cbfec0a3f82407175c (diff) |
Merge pull request #299 from openscad/testdriver-fix
Testdriver fix
Diffstat (limited to 'tests/guiopencsgtest.cc')
-rw-r--r-- | tests/guiopencsgtest.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/guiopencsgtest.cc b/tests/guiopencsgtest.cc deleted file mode 100644 index 75e6abd..0000000 --- a/tests/guiopencsgtest.cc +++ /dev/null @@ -1,27 +0,0 @@ -// Wrapper around openscad gui binary, so it can act like a 'test' - -#include <unistd.h> -#include <stdio.h> -#ifndef BINPATH -#error please define BINPATH=/some/path/openscad when compiling -#endif -#define PREQUOTE(x) #x -#define QUOTE(x) PREQUOTE(x) -int main( int argc, char * argv[] ) -{ - fprintf(stderr,"%s: wrapper for OpenSCAD at %s\n", argv[0], QUOTE( BINPATH ) ); - if ( argc != 3 ) { - fprintf(stderr,"%s: bad number of arguments: %i\n", argv[0], argc); - return 1; - } - char *newargs[6]; - char *scadfilename = argv[1]; - char *pngfilename = argv[2]; - newargs[0] = const_cast<char *>(QUOTE( BINPATH )); - newargs[1] = scadfilename; - newargs[2] = const_cast<char *>("-o"); - newargs[3] = pngfilename; - newargs[4] = NULL; - return execv( newargs[0], newargs ); -} - |