
{"id":8047,"date":"2013-01-08T21:17:27","date_gmt":"2013-01-08T21:17:27","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8047"},"modified":"2013-01-08T21:17:27","modified_gmt":"2013-01-08T21:17:27","slug":"unit-testing-trueprint","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/01\/08\/unit-testing-trueprint\/","title":{"rendered":"UNIT TESTING   trueprint"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$ls\nacconfig.h  bootstrap  config.cache  config.log     configure.in  INSTALL      Makefile.in  replace  stamp-h1.in\naclocal.m4  ChangeLog  config.h      config.status  COPYING\t  Makefile     NEWS\t    src      stamp-h2.in\nAUTHORS     config     config.h.in   configure\t    doc\t\t  Makefile.am  README\t    stamp-h  tests\n$make check\nMakefile:122: warning: overriding commands for target `config.h'\nMakefile:103: warning: ignoring old commands for target `config.h'\nMakefile:132: warning: overriding commands for target `config.h.in'\nMakefile:113: warning: ignoring old commands for target `config.h.in'\nMaking check in replace\nmake[1]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/replace'\nrm -f libreplace.a\nar cru libreplace.a\nranlib libreplace.a\nmake[1]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/replace'\nMaking check in src\nmake[1]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/src'\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c debug.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c index.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_verilog.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_perl.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c postscript.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c diffs.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c input.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c language.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_pike.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c print_prompt.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c expand_str.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_c.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c main.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_report.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c printers_fl.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c getopt.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_cxx.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c openpipe.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_sh.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c getopt1.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_java.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c options.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c utils.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c headers.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_text.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c lang_pascal.c\ngcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I..   -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2 -c output.c\ngcc -DPRINTERS_FILE=\"\/usr\/local\/lib\/printers\" -g -O2  -o trueprint  debug.o index.o lang_verilog.o lang_perl.o postscript.o diffs.o input.o language.o lang_pike.o print_prompt.o expand_str.o lang_c.o main.o lang_report.o printers_fl.o getopt.o lang_cxx.o openpipe.o lang_sh.o getopt1.o lang_java.o options.o utils.o headers.o lang_text.o lang_pascal.o output.o\nmake[1]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/src'\nMaking check in doc\nmake[1]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/doc'\nmake[1]: Nothing to be done for `check'.\nmake[1]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/doc'\nMaking check in tests\nmake[1]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/tests'\nmake  check-TESTS\nmake[2]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/tests'\ntop_builddir = ..\nsrcdir = .\n1 Single C source file... passed\n2 Two C source files... passed\n3 Text file followed by C source file... passed\n4 Diff of two files... passed\n5 Diff of two files with long options... passed\n6 Another diff of two files... passed\n7 Another diff of two files with long options... passed\n8 Diffs using a prefix... passed\n9 Diffs using a prefix with long options... passed\n10 Very long source line... passed\n11 Set interline gap &amp; pointsize &amp; page length -g -p -l... passed\n12 Set interline gap &amp; pointsize &amp; page length with long options... passed\n13 Change date &amp; time in headers -X... passed\n14 Change date &amp; time in headers with long options... passed\n15 Use login name in headers -X %l... passed\n16 Use login name in headers --left-header=%l... passed\n17 Print message over page -m... passed\n18 Print message over page --message... passed\n19 Use current filename for message string -m %n... passed\n20 Use current filename for message string --message %n... passed\n21 Use landscape mode -ol... passed\n22 Use landscape mode with long option... passed\n23 Print 2-on-1 -2... passed\n24 Print 2-on-1 --two-up... passed\n25 Print 4-on-1 -4... passed\n26 Print 4-on-1 --four-up... passed\n27 Long lines &amp; page width -w... passed\n28 Long lines &amp; page width --line-wrap... passed\n29 Turn off intelligent linewrap -Wn... passed\n30 Turn off intelligent linewrap with long options... passed\n31 Exclude braces depth count for C, line number count -in -nn... passed\n32 Exclude braces depth count for C, line number count with long options... passed\n33 Print double-sided -S2... passed\n34 Print double-sided --double-sided... passed\n35 Suppress everything -C -F -f -B... passed\n36 Suppress everything using long options... passed\n37 Set tabsize wierdly -T5... passed\n38 Set tabsize wierdly using long option... passed\n39 Set headers\/footers... passed\n40 Set headers\/footers using long options... passed\n41 Indent for holepunch --I... passed\n42 Indent for holepunch using long options... passed\n43 Suppress headers --K... passed\n44 Suppress headers using long options... passed\n45 Suppress footers --k... passed\n46 Suppress footers using long options... passed\n47 Stdin for default... passed\n48 - for stdin... passed\n49 No new sheet for new filepassed\n49 out of 49 tests passed\nTo complete the test, print a file using trueprint\nPASS: Run\n==================\nAll 1 tests passed\n==================\nmake[2]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/tests'\nmake[1]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3\/tests'\nmake[1]: Entering directory `\/home\/jeffrin\/unit.test\/trueprint-5.3'\nMakefile:122: warning: overriding commands for target `config.h'\nMakefile:103: warning: ignoring old commands for target `config.h'\nMakefile:132: warning: overriding commands for target `config.h.in'\nMakefile:113: warning: ignoring old commands for target `config.h.in'\ncd . \n\t  &amp;&amp; CONFIG_FILES= CONFIG_HEADERS=config.h \n\t     \/bin\/sh .\/config.status\ncreating config.h\nconfig.h is unchanged\ncd . \n\t  &amp;&amp; CONFIG_FILES= CONFIG_HEADERS=config.h \n\t     \/bin\/sh .\/config.status\ncreating config.h\nconfig.h is unchanged\nmake[1]: Leaving directory `\/home\/jeffrin\/unit.test\/trueprint-5.3'\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $ls acconfig.h bootstrap config.cache config.log configure.in INSTALL Makefile.in replace stamp-h1.in aclocal.m4 ChangeLog config.h config.status COPYING Makefile NEWS src stamp-h2.in AUTHORS config config.h.in configure doc Makefile.am README stamp-h tests $make check Makefile:122: warning: overriding commands for target `config.h&#8217; Makefile:103: warning: ignoring old commands for target `config.h&#8217; Makefile:132: warning: overriding commands for target `config.h.in&#8217; Makefile:113: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/01\/08\/unit-testing-trueprint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;UNIT TESTING   trueprint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8047"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8047"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8047\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}