comp.lang.ada
 help / color / mirror / Atom feed
* AUnit Examples Fail
@ 2010-08-15  3:16 R.B. Love
  2010-08-15  4:34 ` Yannick Duchêne (Hibou57)
  0 siblings, 1 reply; 4+ messages in thread
From: R.B. Love @ 2010-08-15  3:16 UTC (permalink / raw)


All the talk about AUnit made me think I should be doing automatic unit 
testing.  I grabbed a fresh copy of GPL 2010 Gnat along with the AUnit 
module.   The install of Gnat went fine.   I think  the install of 
AUnit went fine.   I went into the aunit/test directory and the make 
seemed to go well and reported.

Then I go aunit-gpl-2010-src/examples/simple_test and type make.  I get this:

bash-3.2$ make
gprbuild -p -Pharness/harness
object directory 
"/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/harness/obj" 
created
object directory 
"/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/tested_lib/obj" 
created for project testlib
library directory 
"/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/tested_lib/lib" 
created for project testlib
gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 test_math.adb
gcc -c -g -O1 -gnat05 -gnatwa.Xe -gnaty -gnata -gnatf math.adb
gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 math_suite.adb
gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 math-test.adb
math-test.adb:19:07: warning: call to obsolescent procedure "Assert" 
declared at  aunit-assertions.ads:113
math-test.adb:20:07: warning: call to obsolescent procedure "Assert" 
declared at  aunit-assertions.ads:113
gprbuild: *** compilation phase failed
make: *** [all] Error 4


I get the same result in any of the Examples directories.   This was on 
my CentOS machine.  I get the same results when I do this on a Mac.

I was hoping the examples would work out of  the box and serve as well, 
examples.

Thanks for any pointers on how to make this work.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-15 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15  3:16 AUnit Examples Fail R.B. Love
2010-08-15  4:34 ` Yannick Duchêne (Hibou57)
2010-08-15 12:00   ` Simon Wright
2010-08-15 13:54     ` Yannick Duchêne (Hibou57)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox