[jbig2-cvs] rev 406 - trunk

giles at ghostscript.com giles at ghostscript.com
Tue May 17 17:42:25 PDT 2005


Author: giles
Date: 2005-05-17 17:42:24 -0700 (Tue, 17 May 2005)
New Revision: 406

Modified:
   trunk/SConstruct
Log:
Attempt to hook the self tests into the scons build. This is supposed
to work with the development version, but does not.


Modified: trunk/SConstruct
===================================================================
--- trunk/SConstruct	2005-05-11 07:14:25 UTC (rev 405)
+++ trunk/SConstruct	2005-05-18 00:42:24 UTC (rev 406)
@@ -29,3 +29,10 @@
         os_types.h config_types.h config_win32.h""")
 
 env.Program('jbig2dec', jbig2dec_sources, LIBS=['jbig2dec'], LIBPATH='.')
+
+# self tests
+test = env.Copy(CPPDEFINES = ['TEST', 'HAVE_STDINT_H'])
+test_sha1 = test.Program(test.Object('test_sha1', 'sha1.c'))
+test_alias = test.Alias('test', [test_sha1, 'test_jbig2dec.py', 'jbig2dec'])
+test.Command(test_alias, [], ["./test_jbig2dec.py", "./test_sha1"])
+test.AlwaysBuild('test')



More information about the jbig2-cvs mailing list