summaryrefslogtreecommitdiff
path: root/tests/guiopencsgtest.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-11 23:29:45 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-11 23:29:45 (GMT)
commit40cd64042aec8a452283d60cbb676b9242d9a346 (patch)
treefb23c498afc75c03df8f97f7c2eda466d1168c30 /tests/guiopencsgtest.cc
parent79ce1e47d0ff250aed46ddc3058ea4f694900bb0 (diff)
parentd9c4b779421b226d0ad1eed492611eb5ddb843ed (diff)
Merge branch 'master' of github.com:openscad/openscad into resize5
Diffstat (limited to 'tests/guiopencsgtest.cc')
-rw-r--r--tests/guiopencsgtest.cc27
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 );
-}
-
contact: Jan Huwald // Impressum