summaryrefslogtreecommitdiff
blob: fd6c0a067ab884c9321f56bf1fdcd7aff6fb15e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
diff -aurN a/galera/SConstruct b/galera/SConstruct
--- a/galera/SConstruct	2013-10-16 10:08:43.057673018 -0400
+++ b/galera/SConstruct	2013-10-16 10:10:04.687494314 -0400
@@ -407,19 +407,20 @@
 # Clone base from default environment
 check_env = env.Clone()
 
-conf = Configure(check_env)
+if tests == 1:
+    conf = Configure(check_env)
 
 # Check header and library
 
-if not conf.CheckHeader('check.h'):
-    print 'Error: check header file not found or not usable'
-    Exit(1)
-
-if not conf.CheckLib('check'):
-    print 'Error: check library not found or not usable'
-    Exit(1)
+    if not conf.CheckHeader('check.h'):
+        print 'Error: check header file not found or not usable'
+        Exit(1)
+
+    if not conf.CheckLib('check'):
+        print 'Error: check library not found or not usable'
+        Exit(1)
 
-conf.Finish()
+    conf.Finish()
 
 # Note: Don't do this, glibc does not like static linking
 # Link unit tests statically
diff -aurN a/galera/SConscript b/galera/SConscript
--- a/galera/SConscript	2013-03-11 02:44:50.000000000 -0400
+++ b/galera/SConscript	2013-05-13 13:13:20.851827437 -0400
@@ -1,2 +1,2 @@
 
-SConscript(['src/SConscript', 'tests/SConscript'])
+SConscript(['src/SConscript'])
diff -aurN a/galerautils/SConscript b/galerautils/SConscript
--- a/galerautils/SConscript	2013-03-11 02:44:50.000000000 -0400
+++ b/galerautils/SConscript	2013-05-13 13:15:37.010071765 -0400
@@ -1,3 +1,3 @@
 # SConscript for building galerautils
 
-SConscript(Split('''src/SConscript tests/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcache/SConscript b/gcache/SConscript
--- a/gcache/SConscript	2013-03-11 02:44:50.000000000 -0400
+++ b/gcache/SConscript	2013-05-13 13:15:55.179837389 -0400
@@ -1,3 +1,3 @@
 # SConscript for building galerautils
 
-SConscript(Split('''src/SConscript tests/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcomm/SConscript b/gcomm/SConscript
--- a/gcomm/SConscript	2013-03-11 02:44:50.000000000 -0400
+++ b/gcomm/SConscript	2013-05-13 13:16:08.979659369 -0400
@@ -1,3 +1,3 @@
 # SCons build script for building gcomm
 
-SConscript(Split('''src/SConscript test/SConscript'''))
+SConscript(Split('''src/SConscript'''))
diff -aurN a/gcs/src/SConscript b/gcs/src/SConscript
--- a/gcs/src/SConscript	2013-03-11 02:44:50.000000000 -0400
+++ b/gcs/src/SConscript	2013-05-13 13:12:53.122184848 -0400
@@ -46,8 +46,6 @@
                      source = 'gcs_test.c',
                      LINK = libgcs_env['CXX'])
 
-SConscript('unit_tests/SConscript')
-
 #
 env.Append(LIBGALERA_OBJS = libgcs_env.SharedObject(libgcs_sources))