comp.lang.ada
 help / color / mirror / Atom feed
From: R.B. Love <rblove@airmail.net>
Subject: AUnit Examples Fail
Date: Sat, 14 Aug 2010 22:16:03 -0500
Date: 2010-08-14T22:16:03-05:00	[thread overview]
Message-ID: <2010081422160335270-rblove@airmailnet> (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.






             reply	other threads:[~2010-08-15  3:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15  3:16 R.B. Love [this message]
2010-08-15  4:34 ` AUnit Examples Fail Yannick Duchêne (Hibou57)
2010-08-15 12:00   ` Simon Wright
2010-08-15 13:54     ` Yannick Duchêne (Hibou57)
replies disabled

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