rev 406 - trunk
[email protected] Tue, 17 May 2005 17:42:25 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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""")
=20
env.Program('jbig2dec', jbig2dec_sources, LIBS=3D['jbig2dec'], LIBPATH=3D=
'.')
+
+# self tests
+test =3D env.Copy(CPPDEFINES =3D ['TEST', 'HAVE_STDINT_H'])
+test_sha1 =3D test.Program(test.Object('test_sha1', 'sha1.c'))
+test_alias =3D test.Alias('test', [test_sha1, 'test_jbig2dec.py', 'jbig2=
dec'])
+test.Command(test_alias, [], ["./test_jbig2dec.py", "./test_sha1"])
+test.AlwaysBuild('test')