1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

feature #203: Tests now works with the AuthManager

This commit is contained in:
Ruben S. Montero 2010-07-09 09:39:37 +02:00
parent fea2b21e4b
commit 41b676e2c6
6 changed files with 19 additions and 7 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2002-2009, Distributed Systems Architecture Group, Universidad #
# Complutense de Madrid (dsa-research.org) #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
@ -18,8 +19,7 @@
require 'pp'
require 'digest/md5'
require 'ftools'
require 'fileutils'
###########################################
# Code to test compilation/linkning flags #
@ -207,7 +207,7 @@ def gen_test_file(kind)
#fname="xmlrpc_test.cc"
full_path=dir+"/"+fname
File.makedirs(dir)
FileUtils::mkdir_p(dir)
f=open(full_path, "w")
f.write(TestCode[kind])
f.close

View File

@ -78,7 +78,7 @@ elif [ "$VAL_CALL" = "yes" ] ; then
CALLER="valgrind --tool=callgrind"
fi
TESTS=`find $TWD_DIR -name test -type d`
TESTS=`find $TWD_DIR -name test -type d | grep -v ruby`
for i in $TESTS ; do
cd $BASE_DIR

View File

@ -51,6 +51,7 @@ main_env.Append(LIBPATH=[
cwd + '/src/mad',
cwd + '/src/vnm',
cwd + '/src/um',
cwd + '/src/authm',
cwd + '/src/image',
'/usr/include/openssl/',
])
@ -59,11 +60,12 @@ main_env.Append(LIBS=[
'nebula_image',
'nebula_um',
'nebula_vm',
'nebula_mad',
'nebula_hm',
'nebula_vnm',
'nebula_authm',
'nebula_template',
'nebula_pool',
'nebula_mad',
'nebula_common',
'nebula_log',
'nebula_core',

View File

@ -41,10 +41,12 @@ main_env.Append(CPPPATH=[
# Library dirs
main_env.Append(LIBPATH=[
cwd + '/src/common',
cwd + '/src/mad',
cwd + '/src/log',
cwd + '/src/nebula',
cwd + '/src/pool',
cwd + '/src/sql',
cwd + '/src/authm',
cwd + '/src/um',
'/usr/include/openssl/',
])
@ -53,7 +55,9 @@ main_env.Append(LIBS=[
'nebula_um',
'nebula_pool',
'nebula_log',
'nebula_authm',
'nebula_common',
'nebula_mad',
'nebula_core',
'nebula_sql',
'cppunit',

View File

@ -48,6 +48,7 @@ main_env.Append(LIBPATH=[
cwd + '/src/template',
cwd + '/src/vm',
cwd + '/src/hm',
cwd + '/src/authm',
cwd + '/src/mad',
cwd + '/src/vnm',
cwd + '/src/um',
@ -58,12 +59,13 @@ main_env.Append(LIBPATH=[
main_env.Append(LIBS=[
'nebula_um',
'nebula_vm',
'nebula_mad',
'nebula_hm',
'nebula_vnm',
'nebula_authm',
'nebula_template',
'nebula_pool',
'nebula_image',
'nebula_mad',
'nebula_common',
'nebula_log',
'nebula_core',

View File

@ -40,7 +40,9 @@ main_env.Append(CPPPATH=[
# Library dirs
main_env.Append(LIBPATH=[
cwd + '/src/authm',
cwd + '/src/common',
cwd + '/src/mad',
cwd + '/src/nebula',
cwd + '/src/sql',
cwd + '/src/log',
@ -54,9 +56,11 @@ main_env.Append(LIBS=[
'nebula_log',
'nebula_um',
'nebula_vnm',
'nebula_authm',
'nebula_template',
'nebula_pool',
'nebula_common',
'nebula_mad',
'nebula_core',
'nebula_sql',
'cppunit',