#26606 success

Note

octaspirestringt: add two functions and unit tests

afae38foctaspire

Owner
~octaspire
Created
2 months ago
Updated
2 months ago
Build manifest
view manifest »

Tasks

view log »
setup view log »
build-devel view log »
test-devel view log »
build-release view log »
test-release view log »
go to bottom »
setup
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[#26606] 2019/02/06 20:47:33 Booting image freebsd (default) on port 22345
[#26606] 2019/02/06 20:47:38 Waiting for guest to settle
[#26606] 2019/02/06 20:49:25 Sending tasks
[#26606] 2019/02/06 20:49:37 Sending build environment
[#26606] 2019/02/06 20:49:37 Cloning repositories
Cloning into 'core'...
+ cd core
+ git checkout -q afae38f1f80bda4f9b9d68205606251172080534
[#26606] 2019/02/06 20:50:04 Installing packages
Could not create directory '/home/builds/.ssh'.
Warning: Permanently added '[localhost]:22345' (ECDSA) to the list of known hosts.
Updating FreeBSD repository catalogue...
Fetching meta.txz: . done
Fetching packagesite.txz: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 32373 packages processed.
All repositories are up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (22 candidates): .......... done
Processing candidates (22 candidates): .......... done
The following 22 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	sudo: 1.8.25p1 -> 1.8.27
	readline: 7.0.3_1 -> 7.0.5
	perl5: 5.26.2 -> 5.28.1
	pcre: 8.42 -> 8.42_1
	p5-IO-Socket-SSL: 2.059 -> 2.060
	p5-Error: 0.17026 -> 0.17027
	libnghttp2: 1.33.0 -> 1.35.1
	libffi: 3.2.1_2 -> 3.2.1_3
	git: 2.19.1 -> 2.20.1
	gettext-runtime: 0.19.8.1_1 -> 0.19.8.1_2
	ca_root_nss: 3.40 -> 3.42.1
	bash: 4.4.23 -> 4.4.23_1

Installed packages to be REINSTALLED:
	p5-Socket6-0.29 (direct dependency changed: perl5)
	p5-Net-SSLeay-1.85 (direct dependency changed: perl5)
	p5-Mozilla-CA-20180117 (direct dependency changed: perl5)
	p5-IO-Socket-INET6-2.72_1 (direct dependency changed: perl5)
	p5-HTML-Tagset-3.20_1 (direct dependency changed: perl5)
	p5-HTML-Parser-3.72 (direct dependency changed: perl5)
	p5-GSSAPI-0.28_1 (direct dependency changed: perl5)
	p5-Digest-HMAC-1.03_1 (direct dependency changed: perl5)
	p5-CGI-4.40 (direct dependency changed: perl5)
	p5-Authen-SASL-2.16_1 (direct dependency changed: perl5)

Number of packages to be upgraded: 12
Number of packages to be reinstalled: 10

The process will require 7 MiB more space.
24 MiB to be downloaded.
[1/22] Fetching sudo-1.8.27.txz: .......... done
[2/22] Fetching readline-7.0.5.txz: .......... done
[3/22] Fetching perl5-5.28.1.txz: .......... done
[4/22] Fetching pcre-8.42_1.txz: .......... done
[5/22] Fetching p5-Socket6-0.29.txz: ... done
[6/22] Fetching p5-Net-SSLeay-1.85.txz: .......... done
[7/22] Fetching p5-Mozilla-CA-20180117.txz: .......... done
[8/22] Fetching p5-IO-Socket-SSL-2.060.txz: .......... done
[9/22] Fetching p5-IO-Socket-INET6-2.72_1.txz: .. done
[10/22] Fetching p5-HTML-Tagset-3.20_1.txz: .. done
[11/22] Fetching p5-HTML-Parser-3.72.txz: .......... done
[12/22] Fetching p5-GSSAPI-0.28_1.txz: ...... done
[13/22] Fetching p5-Error-0.17027.txz: .... done
[14/22] Fetching p5-Digest-HMAC-1.03_1.txz: .. done
[15/22] Fetching p5-CGI-4.40.txz: .......... done
[16/22] Fetching p5-Authen-SASL-2.16_1.txz: ...... done
[17/22] Fetching libnghttp2-1.35.1.txz: .......... done
[18/22] Fetching libffi-3.2.1_3.txz: ..... done
[19/22] Fetching git-2.20.1.txz: .......... done
[20/22] Fetching gettext-runtime-0.19.8.1_2.txz: .......... done
[21/22] Fetching ca_root_nss-3.42.1.txz: .......... done
[22/22] Fetching bash-4.4.23_1.txz: .......... done
Checking integrity... done (0 conflicting)
[1/22] Upgrading perl5 from 5.26.2 to 5.28.1...
[1/22] Extracting perl5-5.28.1: .......... done
[2/22] Reinstalling p5-Socket6-0.29...
[2/22] Extracting p5-Socket6-0.29: ....... done
[3/22] Reinstalling p5-HTML-Tagset-3.20_1...
[3/22] Extracting p5-HTML-Tagset-3.20_1: ....... done
[4/22] Upgrading readline from 7.0.3_1 to 7.0.5...
[4/22] Extracting readline-7.0.5: .......... done
[5/22] Reinstalling p5-Net-SSLeay-1.85...
[5/22] Extracting p5-Net-SSLeay-1.85: .......... done
[6/22] Reinstalling p5-Mozilla-CA-20180117...
[6/22] Extracting p5-Mozilla-CA-20180117: ........ done
[7/22] Reinstalling p5-IO-Socket-INET6-2.72_1...
[7/22] Extracting p5-IO-Socket-INET6-2.72_1: ....... done
[8/22] Reinstalling p5-HTML-Parser-3.72...
[8/22] Extracting p5-HTML-Parser-3.72: .......... done
[9/22] Reinstalling p5-GSSAPI-0.28_1...
[9/22] Extracting p5-GSSAPI-0.28_1: .......... done
[10/22] Reinstalling p5-Digest-HMAC-1.03_1...
[10/22] Extracting p5-Digest-HMAC-1.03_1: .......... done
[11/22] Upgrading libnghttp2 from 1.33.0 to 1.35.1...
[11/22] Extracting libnghttp2-1.35.1: .......... done
[12/22] Upgrading libffi from 3.2.1_2 to 3.2.1_3...
[12/22] Extracting libffi-3.2.1_3: .......... done
[13/22] Upgrading gettext-runtime from 0.19.8.1_1 to 0.19.8.1_2...
[13/22] Extracting gettext-runtime-0.19.8.1_2: .......... done
[14/22] Upgrading ca_root_nss from 3.40 to 3.42.1...
[14/22] Extracting ca_root_nss-3.42.1: ........ done
[15/22] Upgrading pcre from 8.42 to 8.42_1...
[15/22] Extracting pcre-8.42_1: .......... done
[16/22] Upgrading p5-IO-Socket-SSL from 2.059 to 2.060...
[16/22] Extracting p5-IO-Socket-SSL-2.060: .......... done
[17/22] Upgrading p5-Error from 0.17026 to 0.17027...
[17/22] Extracting p5-Error-0.17027: ......... done
[18/22] Reinstalling p5-CGI-4.40...
[18/22] Extracting p5-CGI-4.40: .......... done
[19/22] Reinstalling p5-Authen-SASL-2.16_1...
[19/22] Extracting p5-Authen-SASL-2.16_1: .......... done
[20/22] Upgrading sudo from 1.8.25p1 to 1.8.27...
[20/22] Extracting sudo-1.8.27: .......... done
You may need to manually remove /usr/local/etc/sudoers if it is no longer needed.
[21/22] Upgrading git from 2.19.1 to 2.20.1...
===> Creating groups.
Using existing group 'git_daemon'.
===> Creating users
Using existing user 'git_daemon'.
[21/22] Extracting git-2.20.1: .......... done
[22/22] Upgrading bash from 4.4.23 to 4.4.23_1...
[22/22] Extracting bash-4.4.23_1: .......... done
Message from perl5-5.28.1:

The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
Message from ca_root_nss-3.42.1:

********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************
Message from git-2.20.1:

------------------------------------------------------------------------
*************************** GITWEB *************************************
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.
*************************** GITWEB *************************************

*************************** CONTRIB ************************************
If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
*************************** CONTRIB ************************************
------------------------------------------------------------------------
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gmake: 4.2.1_3

Number of packages to be installed: 1

The process will require 2 MiB more space.
380 KiB to be downloaded.
[1/1] Fetching gmake-4.2.1_3.txz: .......... done
Checking integrity... done (0 conflicting)
[1/1] Installing gmake-4.2.1_3...
[1/1] Extracting gmake-4.2.1_3: .......... done
[#26606] 2019/02/06 20:54:09 Running task setup
[#26606] 2019/02/06 20:54:11 Running task build-devel
[#26606] 2019/02/06 20:54:22 Running task test-devel
[#26606] 2019/02/06 20:54:39 Running task build-release
[#26606] 2019/02/06 20:54:54 Running task test-release
setup
1
2
3
4
+ cd core
+ gmake submodules-init
Initializing submodules...
Done.
build-devel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
+ cd core
+ gmake all
CC  dev/test/test.c
CC  dev/test/test_helpers.c
CC  dev/test/test_input.c
CC  dev/test/test_list.c
CC  dev/test/test_map.c
CC  dev/test/test_memory.c
CC  dev/test/test_pair.c
CC  dev/test/test_queue.c
CC  dev/test/test_stdio.c
CC  dev/test/test_string.c
CC  dev/test/test_utf8.c
CC  dev/test/test_vector.c
CC  dev/test/test_semver.c
CC  dev/external/jenkins_one_at_a_time.c
LD  octaspire-core-unit-test-runner
test-devel
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
+ cd core
+ ./octaspire-core-unit-test-runner --write-test-files
  ___     _                _            ___             
 / _ \ __| |_ __ _ ____ __(_)_ _ ___   / __|___ _ _ ___ 
| (_) / _|  _/ _` (_-< '_ \ | '_/ -_) | (__/ _ \ '_/ -_)
 \___/\__|\__\__,_/__/ .__/_|_| \___|  \___\___/_| \___|
  Amalgamated version|_|stand-alone unit test runner    

  Octaspire Core version 0.119.0

  This is stand-alone unit test runner for the amalgamated version of
  Octaspire Core. Some of the unit tests test reading of files from
  the filesystem. The full source distribution has these files in
  the 'test/resource' directory. But because this amalgamated
  distribution can have only one file, to be able to run all
  the tests succesfully something must be done. What do you
  want to do? Select 'a', 'b', 'c' or any other key:

  a) Let this program to write those files to disk to the current working
     directory. All existing files with the same name will be OVERWRITTEN.
     The files to be written are of form 'octaspire_XYZ_test', where XYZ
     is the name of the test.

  b) Let those tests to fail on missing files, or succeed if the files are
     already present in the current working directory.

  c) Abort and quit this program.

  > Option 'a' given with command line argument.
Writing test files to current working directory...
  Wrote empty file 'octaspire_helpers_path_to_buffer_failure_on_empty_file_test'
  Wrote file 'octaspire_helpers_path_to_buffer_test'
  Wrote file 'octaspire_input_new_from_path_test'
  Wrote file 'octaspire_stdio_fread_test'
Done.

* Suite octaspire_helpers_suite:
......................................
38 tests - 38 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_utf8_suite:
......................................................................
70 tests - 70 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_memory_suite:
......
6 tests - 6 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_stdio_suite:
....
4 tests - 4 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_input_suite:
.................
17 tests - 17 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_vector_suite:
........................................................................
..................
90 tests - 90 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_list_suite:
.....................
21 tests - 21 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_queue_suite:
...................
19 tests - 19 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_string_suite:
........................................................................
........................
96 tests - 96 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_pair_suite:
.........................
25 tests - 25 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_map_suite:
...............
15 tests - 15 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_semver_suite:
.....................................................
53 tests - 53 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

Total: 454 tests (5 ticks, 0.039 sec), 87578 assertions
Pass: 454, fail: 0, skip: 0.
+ gmake test
Building for FreeBSD...
Done.
  ___     _                _            ___             
 / _ \ __| |_ __ _ ____ __(_)_ _ ___   / __|___ _ _ ___ 
| (_) / _|  _/ _` (_-< '_ \ | '_/ -_) | (__/ _ \ '_/ -_)
 \___/\__|\__\__,_/__/ .__/_|_| \___|  \___\___/_| \___|
  Amalgamated version|_|stand-alone unit test runner    

  Octaspire Core version 0.119.0

  This is stand-alone unit test runner for the amalgamated version of
  Octaspire Core. Some of the unit tests test reading of files from
  the filesystem. The full source distribution has these files in
  the 'test/resource' directory. But because this amalgamated
  distribution can have only one file, to be able to run all
  the tests succesfully something must be done. What do you
  want to do? Select 'a', 'b', 'c' or any other key:

  a) Let this program to write those files to disk to the current working
     directory. All existing files with the same name will be OVERWRITTEN.
     The files to be written are of form 'octaspire_XYZ_test', where XYZ
     is the name of the test.

  b) Let those tests to fail on missing files, or succeed if the files are
     already present in the current working directory.

  c) Abort and quit this program.

  > Option 'a' given with command line argument.
Writing test files to current working directory...
  Wrote empty file 'octaspire_helpers_path_to_buffer_failure_on_empty_file_test'
  Wrote file 'octaspire_helpers_path_to_buffer_test'
  Wrote file 'octaspire_input_new_from_path_test'
  Wrote file 'octaspire_stdio_fread_test'
Done.

* Suite octaspire_helpers_suite:
......................................
38 tests - 38 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_utf8_suite:
......................................................................
70 tests - 70 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_memory_suite:
......
6 tests - 6 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_stdio_suite:
....
4 tests - 4 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_input_suite:
.................
17 tests - 17 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_vector_suite:
........................................................................
..................
90 tests - 90 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_list_suite:
.....................
21 tests - 21 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_queue_suite:
...................
19 tests - 19 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_string_suite:
........................................................................
........................
96 tests - 96 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_semver_suite:
.....................................................
53 tests - 53 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_pair_suite:
.........................
25 tests - 25 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_map_suite:
...............
15 tests - 15 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

Total: 454 tests (5 ticks, 0.039 sec), 87578 assertions
Pass: 454, fail: 0, skip: 0.
build-release
1
2
3
4
5
6
7
8
9
10
+ cd core/release
Building stand alone unit test runner...+ sh how-to-build/FreeBSD.sh

clang -O2 -std=c99 -Wall -Wextra -DOCTASPIRE_CORE_AMALGAMATED_UNIT_TEST_IMPLEMENTATION -DGREATEST_ENABLE_ANSI_COLORS -I . octaspire-core-amalgamated.c -lm -o octaspire-core-unit-test-runner 
RUN WITH ./octaspire-core-unit-test-runner

Building example...
clang -O2 -std=c99 -Wall -Wextra -I . examples/example.c -lm -o example 
RUN WITH ./example

test-release
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
77
78
79
80
81
82
83
84
85
86
87
88
89
+ cd core/release
+ ./octaspire-core-unit-test-runner --write-test-files
  ___     _                _            ___             
 / _ \ __| |_ __ _ ____ __(_)_ _ ___   / __|___ _ _ ___ 
| (_) / _|  _/ _` (_-< '_ \ | '_/ -_) | (__/ _ \ '_/ -_)
 \___/\__|\__\__,_/__/ .__/_|_| \___|  \___\___/_| \___|
  Amalgamated version|_|stand-alone unit test runner    

  Octaspire Core version 0.119.0

  This is stand-alone unit test runner for the amalgamated version of
  Octaspire Core. Some of the unit tests test reading of files from
  the filesystem. The full source distribution has these files in
  the 'test/resource' directory. But because this amalgamated
  distribution can have only one file, to be able to run all
  the tests succesfully something must be done. What do you
  want to do? Select 'a', 'b', 'c' or any other key:

  a) Let this program to write those files to disk to the current working
     directory. All existing files with the same name will be OVERWRITTEN.
     The files to be written are of form 'octaspire_XYZ_test', where XYZ
     is the name of the test.

  b) Let those tests to fail on missing files, or succeed if the files are
     already present in the current working directory.

  c) Abort and quit this program.

  > Option 'a' given with command line argument.
Writing test files to current working directory...
  Wrote empty file 'octaspire_helpers_path_to_buffer_failure_on_empty_file_test'
  Wrote file 'octaspire_helpers_path_to_buffer_test'
  Wrote file 'octaspire_input_new_from_path_test'
  Wrote file 'octaspire_stdio_fread_test'
Done.

* Suite octaspire_helpers_suite:
......................................
38 tests - 38 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_utf8_suite:
......................................................................
70 tests - 70 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_memory_suite:
......
6 tests - 6 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_stdio_suite:
....
4 tests - 4 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_input_suite:
.................
17 tests - 17 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_vector_suite:
........................................................................
..................
90 tests - 90 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_list_suite:
.....................
21 tests - 21 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_queue_suite:
...................
19 tests - 19 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_string_suite:
........................................................................
........................
96 tests - 96 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_semver_suite:
.....................................................
53 tests - 53 passed, 0 failed, 0 skipped (1 ticks, 0.008 sec)

* Suite octaspire_pair_suite:
.........................
25 tests - 25 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

* Suite octaspire_map_suite:
...............
15 tests - 15 passed, 0 failed, 0 skipped (0 ticks, 0.000 sec)

Total: 454 tests (4 ticks, 0.031 sec), 87578 assertions
Pass: 454, fail: 0, skip: 0.
Build complete: success 2 months ago (took 7 minutes)