Browse code

* modernized to new mulle-test

Nat! authored on 11-01-2019 16:18:22 • Nat! committed on 15-01-2019 02:19:01
Showing 37 changed files
1 1
deleted file mode 100644
... ...
@@ -1 +0,0 @@
1
-
2 0
deleted file mode 100644
... ...
@@ -1,64 +0,0 @@
1
-mudo
2
-
3
-cat
4
-chgrp
5
-chmod
6
-chown
7
-cp
8
-date
9
-dd
10
-df
11
-dmesg
12
-echo
13
-false
14
-hostname
15
-kill
16
-ln
17
-login
18
-ls
19
-mkdir
20
-mknod
21
-more
22
-mount
23
-mv
24
-ps
25
-pwd
26
-rm
27
-rmdir
28
-sed
29
-sh
30
-stty
31
-su
32
-sync
33
-true
34
-umount
35
-uname
36
-
37
-awk
38
-basename
39
-base64
40
-bash
41
-clear
42
-command
43
-cut
44
-dirname
45
-ed
46
-egrep
47
-env
48
-expr
49
-find
50
-fgrep
51
-grep
52
-head
53
-less
54
-more
55
-readlink
56
-sleep
57
-sort
58
-stat
59
-tail
60
-test
61
-tr
62
-vi
63
-wc
64
-which
... ...
@@ -1 +1 @@
1
-mulle-aba;tar;no-all-load,no-singlephase,no-singlephase-link;a9eca791-975e-4209-b86a-d21578aa5569;${MULLE_ABA_URL:-https://github.com/mulle-concurrent/mulle-aba/archive/${MULLE_ABA_BRANCH:-latest}.tar.gz};;;;
1
+mulle-aba;tar;no-all-load,no-singlephase;a9eca791-975e-4209-b86a-d21578aa5569;${MULLE_ABA_URL:-https://github.com/mulle-concurrent/mulle-aba/archive/${MULLE_ABA_BRANCH:-latest}.tar.gz};;;;
... ...
@@ -41,6 +41,6 @@ export BUILD_DIR="${MULLE_VIRTUAL_ROOT}/build"
41 41
 #
42 42
 #
43 43
 #
44
-export MULLE_SDE_INSTALLED_VERSION="0.35.0"
44
+export MULLE_SDE_INSTALLED_VERSION="0.35.1"
45 45
 
46 46
 
... ...
@@ -21,6 +21,10 @@ fi
21 21
 if [ -z "${MULLE_HOSTNAME}" ]
22 22
 then
23 23
    MULLE_HOSTNAME="`PATH=/bin:/usr/bin:/sbin:/usr/sbin hostname -s`"
24
+   if [ "t" = '.' ]
25
+   then
26
+      MULLE_HOSTNAME="_terodde"
27
+   fi
24 28
    export MULLE_HOSTNAME
25 29
 fi
26 30
 if [ -z "${MULLE_VIRTUAL_ROOT}" ]
... ...
@@ -29,7 +29,7 @@
29 29
 #   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 30
 #   POSSIBILITY OF SUCH DAMAGE.
31 31
 #
32
-[ "${TRACE}" = "YES" ] && set -x && : "$0" "$@"
32
+[ "${TRACE}" = 'YES' -o "${MULLE_ENV_BASH_COMPLETION_SH_TRACE}" = 'YES' ] && set -x && : "$0" "$@"
33 33
 
34 34
 
35 35
 _mulle_env_style_complete()
... ...
@@ -80,7 +80,7 @@ _mulle_env_complete()
80 80
       tool)
81 81
          case "$prev" in
82 82
             remove)
83
-               list="`mulle-env -e tool list`"
83
+               list="`mulle-env tool list`"
84 84
                COMPREPLY=( $( compgen -W "${list}" -- "$cur" ) )
85 85
             ;;
86 86
 
... ...
@@ -98,7 +98,7 @@ _mulle_env_complete()
98 98
 
99 99
       environment)
100 100
          case "$prev" in
101
-            get|set)
101
+            get|remove|set)
102 102
                list="`mulle-env -s environment list | sed 's/^\([^=]*\).*/\1/'`"
103 103
                COMPREPLY=( $( compgen -W "${list}" -- "$cur" ) )
104 104
             ;;
... ...
@@ -107,7 +107,7 @@ _mulle_env_complete()
107 107
             ;;
108 108
 
109 109
             --scope)
110
-               list="`mulle-env -s environment scopes`"
110
+               list="`mulle-env -s environment scope`"
111 111
                COMPREPLY=( $( compgen -W "${list}" -- "$cur" ) )
112 112
             ;;
113 113
 
... ...
@@ -118,7 +118,7 @@ _mulle_env_complete()
118 118
                   ;;
119 119
 
120 120
                   *)
121
-                     COMPREPLY=( $( compgen -W "get list set scopes" -- "$cur" ) )
121
+                     COMPREPLY=( $( compgen -W "get list set scope" -- "$cur" ) )
122 122
                   ;;
123 123
                esac
124 124
             ;;
... ...
@@ -1,12 +1,27 @@
1
-
1
+ed
2
+emacs
3
+nano
4
+vi
5
+xargs
6
+curl
2 7
 inotifywait
8
+mulle-create-build-motd
3 9
 ssh
4
-curl
5
-wget
10
+tty
6 11
 uuidgen
12
+wget
13
+zip
14
+ar
15
+as
7 16
 cc
8 17
 clang
18
+diff
9 19
 gcc
10 20
 ld
21
+nm
22
+valgrind
23
+vgdb
24
+valgrind.bin
11 25
 ninja
12 26
 make
27
+mulle-cmake-graphviz-include
... ...
@@ -1 +1 @@
1
-mulle/wild
1
+mulle/relax
... ...
@@ -1,18 +1,32 @@
1
-mudo
2 1
 
2
+awk
3
+base64
4
+basename
5
+bash
3 6
 cat
4 7
 chgrp
5 8
 chmod
6 9
 chown
10
+clear
7 11
 cp
12
+cut
8 13
 date
9 14
 dd
10 15
 df
16
+dirname
11 17
 dmesg
12 18
 echo
19
+egrep
20
+env
21
+expr
13 22
 false
23
+fgrep
24
+find
25
+grep
26
+head
14 27
 hostname
15 28
 kill
29
+less
16 30
 ln
17 31
 login
18 32
 ls
... ...
@@ -20,48 +34,36 @@ mkdir
20 34
 mknod
21 35
 more
22 36
 mount
37
+mudo
23 38
 mv
24 39
 ps
25 40
 pwd
41
+readlink
26 42
 rm
27 43
 rmdir
28 44
 sed
29 45
 sh
30
-stty
31
-su
32
-sync
33
-true
34
-umount
35
-uname
36
-
37
-awk
38
-basename
39
-base64
40
-bash
41
-clear
42
-command
43
-cut
44
-dirname
45
-ed
46
-egrep
47
-env
48
-expr
49
-find
50
-fgrep
51
-grep
52
-head
53
-less
54
-more
55
-readlink
56 46
 sleep
57 47
 sort
58 48
 stat
49
+stty
50
+su
51
+sync
59 52
 tail
53
+tee
60 54
 test
55
+touch
61 56
 tr
62
-vi
57
+true
58
+umount
59
+uname
63 60
 wc
64 61
 which
65 62
 column
66 63
 git
64
+gzip
65
+tar
66
+mulle-sourcetree-to-c
67
+mulle-match-to-cmake
68
+mulle-sourcetree-to-cmake
67 69
 cmake
... ...
@@ -1 +1 @@
1
-2.0.0
1
+2.0.1
... ...
@@ -1 +1 @@
1
-0.9.7
1
+0.9.8
... ...
@@ -1 +1 @@
1
-0.9.7
1
+0.9.8
... ...
@@ -1 +1 @@
1
-0.9.7
1
+0.9.8
... ...
@@ -1 +1 @@
1
-0.14.0
1
+0.14.1
... ...
@@ -1 +1 @@
1
-0.14.0
1
+0.14.1
... ...
@@ -1 +1 @@
1
-0.14.0
1
+0.14.1
... ...
@@ -1 +1 @@
1
-0.14.0
1
+0.14.1
... ...
@@ -5,6 +5,7 @@ if( MULLE_TRACE_INCLUDE)
5 5
    message( STATUS "# Include \"${CMAKE_CURRENT_LIST_FILE}\"" )
6 6
 endif()
7 7
 
8
+# sourcetree: MULLE_ABA;no-all-load,no-singlephase;
8 9
 if( NOT MULLE_ABA_LIBRARY)
9 10
    find_library( MULLE_ABA_LIBRARY NAMES ${CMAKE_STATIC_LIBRARY_PREFIX}mulle-aba${CMAKE_STATIC_LIBRARY_SUFFIX} mulle-aba)
10 11
    message( STATUS "MULLE_ABA_LIBRARY is ${MULLE_ABA_LIBRARY}")
... ...
@@ -9,7 +9,7 @@ set( INCLUDE_DIRS
9 9
 src
10 10
 src/hashmap
11 11
 src/pointerarray
12
-) 
12
+)
13 13
 
14 14
 set( PRIVATE_HEADERS
15 15
 src/include-private.h
... ...
@@ -21,5 +21,5 @@ src/include.h
21 21
 src/mulle-concurrent.h
22 22
 src/mulle-concurrent-types.h
23 23
 src/pointerarray/mulle-concurrent-pointerarray.h
24
-) 
24
+)
25 25
 
... ...
@@ -23,15 +23,23 @@ if( NOT __ALL_LOAD_C_CMAKE__)
23 23
          set( BEGIN_ALL_LOAD)
24 24
          set( END_ALL_LOAD)
25 25
       else()
26
-         set( BEGIN_ALL_LOAD "-Wl,--whole-archive")
27
-         set( END_ALL_LOAD "-Wl,--no-whole-archive")
26
+         set( BEGIN_ALL_LOAD "-Wl,--whole-archive -Wl,--no-as-needed")
27
+         set( END_ALL_LOAD "-Wl,--as-needed -Wl,--no-whole-archive")
28 28
          set( FORCE_LOAD_PREFIX)
29 29
       endif()
30 30
    endif()
31 31
 
32
+   #
33
+   # for APPLE we mention the library twice, that's because it happens to
34
+   # be a shared library for some reason, that cmake still picks it up
35
+   # to generate an RPATH
36
+   #
32 37
    function( CreateForceAllLoadList listname outputname)
33 38
       set( list ${BEGIN_ALL_LOAD})
34 39
       foreach( library ${${listname}})
40
+         if( APPLE)
41
+            list( APPEND list "${library}")
42
+         endif()
35 43
          list( APPEND list "${FORCE_LOAD_PREFIX}${library}")
36 44
       endforeach()
37 45
       list( APPEND list ${END_ALL_LOAD})
... ...
@@ -5,9 +5,13 @@ if( NOT __COMPILER_FLAGS_C_CMAKE__)
5 5
       message( STATUS "# Include \"${CMAKE_CURRENT_LIST_FILE}\"" )
6 6
    endif()
7 7
 
8
-   string( TOUPPER "${CMAKE_BUILD_TYPE}" TMP_CONFIGURATION_NAME)
9
-   add_definitions( "-D${TMP_CONFIGURATION_NAME}" )
8
+   if( CMAKE_BUILD_TYPE)
9
+      string( TOUPPER "${CMAKE_BUILD_TYPE}" TMP_CONFIGURATION_NAME)
10
+   else()
11
+      set( TMP_CONFIGURATION_NAME "DEBUG")
12
+   endif()
10 13
 
14
+   add_definitions( "-D${TMP_CONFIGURATION_NAME}" )
11 15
    if( NOT TMP_CONFIGURATION_NAME STREQUAL "DEBUG")
12 16
       add_definitions( "-DNDEBUG" )
13 17
    endif()
... ...
@@ -149,6 +149,18 @@ if( NOT __ENVIRONMENT__CMAKE__)
149 149
       set( LINK_PHASE ON)
150 150
    endif()
151 151
 
152
+   #
153
+   # https://stackoverflow.com/questions/32469953/why-is-cmake-designed-so-that-it-removes-runtime-path-when-installing/32470070#32470070
154
+   # MULLE_NO_CMAKE_INSTALL_RPATH can be used to kill this codepath
155
+   #
156
+   if( NOT MULLE_NO_CMAKE_INSTALL_RPATH)
157
+      if( APPLE)
158
+         set( CMAKE_INSTALL_RPATH "@rpath/../lib")
159
+      else()
160
+         set( CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
161
+      endif()
162
+   endif()
163
+
152 164
    include( EnvironmentAux OPTIONAL)
153 165
 
154 166
 endif()
... ...
@@ -35,7 +35,6 @@ set_property( TARGET "_1_${EXECUTABLE_NAME}" PROPERTY CXX_STANDARD 11)
35 35
 
36 36
 
37 37
 if( LINK_PHASE)
38
-
39 38
    add_executable( "${EXECUTABLE_NAME}"
40 39
       ${ALL_OBJECT_FILES}
41 40
       ${PROJECT_HEADERS}
... ...
@@ -28,10 +28,12 @@ add_library( "${FRAMEWORK_NAME}" SHARED
28 28
 include( FrameworkAux OPTIONAL)
29 29
 
30 30
 if( NOT FRAMEWORK_LIBRARY_LIST)
31
-   ${DEPENDENCY_LIBRARIES}
32
-   ${OPTIONAL_DEPENDENCY_LIBRARIES}
33
-   ${OS_SPECIFIC_LIBRARIES}
34
-)
31
+  set( FRAMEWORK_LIBRARY_LIST
32
+    ${DEPENDENCY_LIBRARIES}
33
+    ${OPTIONAL_DEPENDENCY_LIBRARIES}
34
+    ${OS_SPECIFIC_LIBRARIES}
35
+  )
36
+endif()
35 37
 
36 38
 set( SHARED_LIBRARY_LIST ${FRAMEWORK_LIBRARY_LIST})
37 39
 
... ...
@@ -1,12 +1,17 @@
1 1
 /*
2 2
    This file will be regenerated by `mulle-sde update|monitor`.
3 3
    Edits will be lost.
4
-   Suppress this file with MULLE_SDE_INCLUDE_PRIVATE_FILENAME NONE|DISABLE.
4
+   Suppress this file with MULLE_SOURCETREE_TO_C_PRIVATEINCLUDE_FILE NONE|DISABLE.
5
+*/
6
+/*
7
+   This file will be regenerated by `mulle-sde update|monitor`.
8
+   Edits will be lost.
9
+   Suppress this file with MULLE_SOURCETREE_TO_C_IMPORT_FILE NONE|DISABLE.
5 10
 */
6
-
7 11
 #ifndef _mulle_concurrent_include_private_h__
8 12
 #define _mulle_concurrent_include_private_h__
9 13
 
10 14
 /* no headers */
11 15
 
12 16
 #endif
17
+
... ...
@@ -1,7 +1,12 @@
1 1
 /*
2
-*   This file will be regenerated by `mulle-sde update|monitor`.
3
-* Edits will be lost.
4
-* Suppress this file with MULLE_SDE_INCLUDE_FILENAME NONE|DISABLE.
2
+   This file will be regenerated by `mulle-sde update|monitor`.
3
+   Edits will be lost.
4
+   Suppress this file with MULLE_SOURCETREE_TO_C_INCLUDE_FILE NONE|DISABLE.
5
+*/
6
+/*
7
+   This file will be regenerated by `mulle-sde update|monitor`.
8
+   Edits will be lost.
9
+   Suppress this file with MULLE_SOURCETREE_TO_C_INCLUDE_FILE NONE|DISABLE.
5 10
 */
6 11
 
7 12
 #ifndef _mulle_concurrent_include_h__
... ...
@@ -10,3 +15,4 @@
10 15
 # include <mulle-aba/mulle-aba.h>   // mulle-aba
11 16
 
12 17
 #endif
18
+
... ...
@@ -174,8 +174,8 @@ static struct _mulle_concurrent_hashvaluepair  *
174 174
 //     other : the read value
175 175
 //
176 176
 static void   *_mulle_concurrent_hashmapstorage_register( struct _mulle_concurrent_hashmapstorage *p,
177
-                                                               intptr_t hash,
178
-                                                               void *value)
177
+                                                          intptr_t hash,
178
+                                                          void *value)
179 179
 {
180 180
    struct _mulle_concurrent_hashvaluepair   *entry;
181 181
    void                                     *found;
... ...
@@ -332,7 +332,7 @@ static int   _mulle_concurrent_hashmapstorage_put( struct _mulle_concurrent_hash
332 332
 }
333 333
 
334 334
 
335
-static int   
335
+static int
336 336
 	_mulle_concurrent_hashmapstorage_remove( struct _mulle_concurrent_hashmapstorage *p,
337 337
                                             intptr_t hash,
338 338
                                             void *value)
... ...
@@ -4,9 +4,3 @@
4 4
 export MULLE_FETCH_SEARCH_PATH="${MULLE_VIRTUAL_ROOT}/../.."
5 5
 
6 6
 
7
-#
8
-#
9
-#
10
-export MULLE_TEST_SERIAL="YES"
11
-
12
-
13 7
deleted file mode 100644
... ...
@@ -1 +0,0 @@
1
-mulle/wild
... ...
@@ -1,2 +1,5 @@
1
-mulle-concurrent;tar;no-all-load,no-import,only-standalone;2A6E2715-E908-44E9-9244-60DC7068F791;${MULLE_CONCURRENT_URL:-https://github.com/nat/mulle-concurrent/archive/${MULLE_CONCURRENT_BRANCH:-latest}.tar.gz};;;;
2
-mulle-testallocator;tar;no-all-load,no-import;F83CBEEF-FDD6-4EFC-99C8-1BC5AA04823D;${MULLE_TESTALLOCATOR_URL:-https://github.com/mulle-core/mulle-testallocator/archive/${MULLE_TESTALLOCATOR_BRANCH:-latest}.tar.gz};;;;
1
+mulle-testallocator;tar;no-all-load,no-import,no-singlephase,no-static-link,only-os-darwin;EFA28AE8-FC43-456F-B56F-281623FCE0EF;${MULLE_TESTALLOCATOR_URL:-https://github.com/mulle-core/mulle-testallocator/archive/${MULLE_TESTALLOCATOR_BRANCH:-latest}.tar.gz};;;;
2
+mulle-concurrent;tar;no-all-load,no-import,only-standalone;3EA9AD1D-4EC4-433F-A960-4D865BA3B131;${MULLE_CONCURRENT_URL:-https://github.com/mulle-concurrent/mulle-concurrent/archive/${MULLE_CONCURRENT_BRANCH:-latest}.tar.gz};;;;
3
+mulle-testallocator#1;tar;no-import,no-os-darwin,no-singlephase,no-static-link;452D58F1-4B99-4BC8-9534-BCD1CE552B9D;${MULLE_TESTALLOCATOR_URL:-https://github.com/mulle-core/mulle-testallocator/archive/${MULLE_TESTALLOCATOR_BRANCH:-latest}.tar.gz};;;;
4
+mulle-allocator;tar;no-all-load,no-import,no-singlephase,no-static-link;8C48C359-BB9B-4585-B87F-BF9DE8D0BE1E;${MULLE_ALLOCATOR_URL:-https://github.com/mulle-c/mulle-allocator/archive/${MULLE_ALLOCATOR_BRANCH:-latest}.tar.gz};;;;
5
+mulle-stacktrace;tar;no-all-load,no-import,no-singlephase;0A7E5B74-24C8-4AD4-AFFC-23AD51B0997F;${MULLE_STACKTRACE_URL:-https://github.com/mulle-core/mulle-stacktrace/archive/${MULLE_STACKTRACE_BRANCH:-latest}.tar.gz};;;;
3 6
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-#
2
-#
3
-#
4
-export MULLE_SDE_INSTALLED_VERSION="0.32.0"
5
-
6
-
... ...
@@ -18,6 +18,15 @@ then
18 18
                   PATH=/bin:/usr/bin tr 'A-Z' 'a-z'`"
19 19
    export MULLE_UNAME
20 20
 fi
21
+if [ -z "${MULLE_HOSTNAME}" ]
22
+then
23
+   MULLE_HOSTNAME="`PATH=/bin:/usr/bin:/sbin:/usr/sbin hostname -s`"
24
+   if [ "t" = '.' ]
25
+   then
26
+      MULLE_HOSTNAME="_terodde"
27
+   fi
28
+   export MULLE_HOSTNAME
29
+fi
21 30
 if [ -z "${MULLE_VIRTUAL_ROOT}" ]
22 31
 then
23 32
    MULLE_VIRTUAL_ROOT="`PATH=/bin:/usr/bin pwd -P`"
... ...
@@ -95,12 +104,14 @@ case "${MULLE_SHELL_MODE}" in
95 104
                cat "${MULLE_VIRTUAL_ROOT}/.mulle/share/env/motd"
96 105
             fi
97 106
          fi
98
-      else
99
-         unset NO_MOTD
100 107
       fi
101 108
    ;;
102 109
 esac
103 110
 
111
+# remove some uglies
112
+unset NO_MOTD
113
+unset TRACE
114
+
104 115
 #######
105 116
 ### mulle startup
106 117
 #######
... ...
@@ -80,7 +80,7 @@ _mulle_env_complete()
80 80
       tool)
81 81
          case "$prev" in
82 82
             remove)
83
-               list="`mulle-env -e tool list`"
83
+               list="`mulle-env tool list`"
84 84
                COMPREPLY=( $( compgen -W "${list}" -- "$cur" ) )
85 85
             ;;
86 86
 
... ...
@@ -1 +1,6 @@
1
-
1
+ed
2
+emacs
3
+nano
4
+tar
5
+vi
6
+xargs
... ...
@@ -8,7 +8,6 @@ chgrp
8 8
 chmod
9 9
 chown
10 10
 clear
11
-command
12 11
 cp
13 12
 cut
14 13
 date
... ...
@@ -17,7 +16,6 @@ df
17 16
 dirname
18 17
 dmesg
19 18
 echo
20
-ed
21 19
 egrep
22 20
 env
23 21
 expr
... ...
@@ -52,12 +50,13 @@ stty
52 50
 su
53 51
 sync
54 52
 tail
53
+tee
55 54
 test
55
+touch
56 56
 tr
57 57
 true
58 58
 umount
59 59
 uname
60 60
 uuidgen
61
-vi
62 61
 wc
63 62
 which
... ...
@@ -1 +1 @@
1
-2.0.0
1
+2.0.1
... ...
@@ -1 +1 @@
1
-Mi 12 Dez 2018 12:25:39 CET
1
+Do 10 Jan 2019 00:48:11 CET