summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-10-16 03:59:54 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-10-16 03:59:54 (GMT)
commite79ee827185e19daac8f4d2385cce44098374d64 (patch)
treef252577c49f4ecd586cb6f9977b0d77667d61a1b /tests/csgtestcore.cc
parent786dc3de411074a4b90fc51397c10539c45272f7 (diff)
fix text tests for windows + enable framebuffer tests
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r--tests/csgtestcore.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index 11ff695..e87558d 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -69,12 +69,13 @@ AbstractNode *find_root_tag(AbstractNode *n)
int csgtestcore(int argc, char *argv[], test_type_e test_type)
{
- if (argc < 2) {
- fprintf(stderr, "Usage: %s <file.scad>\n", argv[0]);
+ if (argc != 3) {
+ fprintf(stderr, "Usage: %s <file.scad> <output.png>\n", argv[0]);
exit(1);
}
std::string filename(argv[1]);
+ std::string outfile(argv[2]);
initialize_builtin_functions();
initialize_builtin_modules();
@@ -244,7 +245,7 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
csgInfo.glview->paintGL();
- csgInfo.glview->save("/dev/stdout");
+ csgInfo.glview->save(outfile.c_str());
destroy_builtin_functions();
destroy_builtin_modules();
contact: Jan Huwald // Impressum