[OpenAFS-devel] Testing (and a call for volunteers)

Jason Edgecombe jason@rampaginggeek.com
Sun, 16 Sep 2012 14:34:40 -0400


On 09/16/2012 01:04 PM, Simon Wilkinson wrote:
>> I'm interested. How do I start?
> Take a look at the vos-t.c code in vlserver. This spins up a vlserver, makes a few simple entries in the database, and then checks that vos reads those entries correctly. It was written to prove an error with vos (hence the test name) where it would segmentation fault with a particular database entry.
>
> It should be possible to copy this into a vlserver-t.c, and exercise all of the ubik_VL interfaces - make sure that you can create entries, remove them, and so on. Even just creating the framework so that others can add individual tests are useful.
>
>> I was looking into the tests and "make check" fails with the error:
> This is fallout from the libtool changes - sorry. The fix is http://gerrit.openafs.org/8125
the tests/volser folder compiles now, but vos tests 3-6 fail.

I'm still getting compile errors on make check:

make[2]: Entering directory 
`/home/jwedgeco/openafs/openafs-git/openafs/tests/opr'
gcc  -L/home/jwedgeco/openafs/openafs-git/openafs/lib 
-L/home/jwedgeco/openafs/openafs-git/openafs/lib  -O      -O 
-I/home/jwedgeco/openafs/openafs-git/openafs/src/config 
-I/home/jwedgeco/openafs/openafs-git/openafs/include -I. -I. -I./../..  
-o uuid-t uuid-t.o ../tap/libtap.a ../tap/libtap.a 
/home/jwedgeco/openafs/openafs-git/openafs/lib/libopr.a -lafshcrypto 
-lresolv
/usr/bin/ld: warning: librokenafs.so.1, needed by 
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so, not 
found (try using -rpath or -rpath-link)
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `issuid'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `rk_strlcpy'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `rk_cloexec'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `net_read'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `rk_cloexec_file'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `rk_emalloc'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `rk_socket'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `ct_memcmp'
/home/jwedgeco/openafs/openafs-git/openafs/lib/libafshcrypto.so: 
undefined reference to `net_write'
collect2: ld returned 1 exit status
make[2]: *** [uuid-t] Error 1
make[2]: Leaving directory 
`/home/jwedgeco/openafs/openafs-git/openafs/tests/opr'
make[1]: *** [check] Error 1
make[1]: Leaving directory 
`/home/jwedgeco/openafs/openafs-git/openafs/tests'
make: *** [check] Error 2