Skip to content

Commit bf1ae3d

Browse files
committed
Merge master into release/1
--HG-- branch : release
2 parents c49f426 + de3399a commit bf1ae3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+8655
-178
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# release.yml
2+
# Copyright (C) 2020 Kaz Nishimura
3+
#
4+
# Copying and distribution of this file, with or without modification, are
5+
# permitted in any medium without royalty provided the copyright notice and
6+
# this notice are preserved. This file is offered as-is, without any warranty.
7+
---
8+
on:
9+
push:
10+
tags:
11+
- release/*
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- id: set-version
18+
run: |
19+
echo "::set-output name=version::`expr '${{ github.ref }}' : '.*/\(.*\)'`"
20+
- uses: actions/create-release@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
tag_name: ${{ github.ref }}
25+
release_name: Version ${{ steps.set-version.outputs.version }}
26+
body: |
27+
This is ${{ steps.set-version.outputs.version }} of....
28+
draft: true

.gitignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
runtest
1+
**/cppunitx/cppunitx
2+
**/test/runtest
3+
**/libgnu/getopt.h
4+
**/libgnu/stddef.h
5+
**/libgnu/stdlib.h
6+
**/libgnu/sysexits.h
7+
**/libgnu/unistd.h
8+
**/libgnu/sys/types.h
9+
**/libgnu/arg-nonnull.h
10+
**/libgnu/c++defs.h
11+
**/libgnu/warn-on-use.h
12+
libtool
213
Makefile
3-
config.status
414
config.h
5-
libtool
15+
config.status
616
Makefile.in
717
config.h.in
818
configure
@@ -23,10 +33,10 @@ _build
2333
*.a
2434
*.lo
2535
*.o
36+
*.cache
2637
*.tvsconfig
2738
*.local
2839
*.user
29-
*.cache
3040
*.rej
3141
*.orig
3242
*~

.hgignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
syntax: regexp
2-
(^|/)runtest$
2+
(^|/)cppunitx/cppunitx$
3+
(^|/)test/runtest$
4+
(^|/)libgnu/getopt\.h$
5+
(^|/)libgnu/stddef\.h$
6+
(^|/)libgnu/stdlib\.h$
7+
(^|/)libgnu/sysexits\.h$
8+
(^|/)libgnu/unistd\.h$
9+
(^|/)libgnu/sys/types\.h$
10+
(^|/)libgnu/arg-nonnull\.h$
11+
(^|/)libgnu/c\+\+defs\.h$
12+
(^|/)libgnu/warn-on-use\.h$
13+
(^|/)libtool$
314
(^|/)Makefile$
4-
(^|/)config\.status$
515
(^|/)config\.h$
6-
(^|/)libtool$
16+
(^|/)config\.status$
717
(^|/)Makefile\.in$
818
(^|/)config\.h\.in$
919
(^|/)configure$
@@ -24,10 +34,10 @@ syntax: regexp
2434
\.a$
2535
\.lo$
2636
\.o$
37+
\.cache$
2738
\.tvsconfig$
2839
\.local$
2940
\.user$
30-
\.cache$
3141
\.rej$
3242
\.orig$
3343
~$

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
25ee843f907eb7376ad6f1af1aa15d40622062bb release/1-alpha.1
22
9692febc64935c4c6db640dd9c5c1244dec3d43c release/1-alpha.2
3+
60e4429974732831ef81924059dbfc7b824c8c0d release/1-alpha.3

.vscode/launch.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
"request": "launch",
77
"name": "(gdb) Launch",
88
"preLaunchTask": "Build",
9-
"program": "${workspaceFolder}/test/runtest",
9+
"program": "${workspaceFolder}/cppunitx/.libs/cppunitx",
1010
"args": [
11-
"example.la"
11+
"test_example.la"
12+
],
13+
"environment": [
14+
{
15+
"name": "LD_LIBRARY_PATH",
16+
"value": "${workspaceFolder}/libcppunitx/.libs"
17+
}
1218
],
13-
"environment": [],
1419
"cwd": "${workspaceFolder}/test",
1520
"stopAtEntry": false,
1621
"externalConsole": false,

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
ACLOCAL_AMFLAGS = -Im4
44

5-
EXTRA_DIST = README.md
5+
EXTRA_DIST = README.md m4/gnulib-cache.m4
66

7-
SUBDIRS = libcppunitx test doc
7+
SUBDIRS = libgnu libcppunitx cppunitx test doc
88

99
dist-hook:: $(distdir)/SHA256SUMS
1010
if test -n "$$GPG_USERNAME"; then \

azure-pipelines.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
# this notice are preserved. This file is offered as-is, without any warranty.
77
---
88
variables:
9-
package.distName: cppunitx-1-alpha.3
9+
package.distName: cppunitx-1-alpha.4
10+
uploadRepository: kazssym/cppunitx
1011
trigger:
1112
- master
1213
- release/*
13-
- feature/*
1414
stages:
1515
- stage: Default
1616
jobs:
@@ -45,10 +45,10 @@ stages:
4545
condition: succeededOrFailed()
4646
- bash: |
4747
make dist || exit $?
48-
mkdir -p dist
49-
mv -f '$(package.distName)'.* dist/
48+
mkdir -p _dist
49+
mv -f '$(package.distName)'.* _dist/
5050
displayName: Make source archive
51-
- publish: dist
51+
- publish: _dist
5252
artifact: dist
5353
- stage: Test
5454
jobs:
@@ -71,13 +71,14 @@ stages:
7171
- download: current
7272
artifact: dist
7373
- bash: |
74-
gzip -dc '$(Pipeline.Workspace)/dist/$(package.distName).tar.gz' | \
74+
gzip -dc '$(Agent.BuildDirectory)/dist/$(package.distName).tar.gz' | \
7575
tar -x
7676
displayName: Unpack
7777
- bash: |
7878
$CC --version
7979
$CXX --version
8080
./configure --prefix='$(Build.BinariesDirectory)'
81+
echo "##vso[task.uploadfile]`pwd`/config.log"
8182
displayName: Configure
8283
workingDirectory: $(package.distName)
8384
- bash: |
@@ -90,7 +91,7 @@ stages:
9091
workingDirectory: $(package.distName)
9192
- stage: Release
9293
dependsOn: Default
93-
condition: >-
94+
condition:
9495
and(succeeded(),
9596
startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
9697
jobs:
@@ -100,12 +101,10 @@ stages:
100101
vmImage: ubuntu-latest
101102
variables:
102103
- group: bitbucket
103-
- name: repository
104-
value: kazssym/cppunitx
105104
steps:
106105
- download: current
107106
artifact: dist
108107
- bash: |
109108
sh ./upload.sh -u '$(bitbucket.username):$(bitbucket.password)' \
110-
-r '$(repository)' '$(Pipeline.Workspace)'/dist/*
109+
-r '$(uploadRepository)' '$(Agent.BuildDirectory)'/dist/*
111110
displayName: Upload

build-aux/snippet/_Noreturn.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#if !defined _Noreturn && __STDC_VERSION__ < 201112
2+
# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
3+
|| 0x5110 <= __SUNPRO_C)
4+
# define _Noreturn __attribute__ ((__noreturn__))
5+
# elif 1200 <= _MSC_VER
6+
# define _Noreturn __declspec (noreturn)
7+
# else
8+
# define _Noreturn
9+
# endif
10+
#endif

build-aux/snippet/arg-nonnull.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* A C macro for declaring that specific arguments must not be NULL.
2+
Copyright (C) 2009-2014 Free Software Foundation, Inc.
3+
4+
This program is free software: you can redistribute it and/or modify it
5+
under the terms of the GNU General Public License as published
6+
by the Free Software Foundation; either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>. */
16+
17+
/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
18+
that the values passed as arguments n, ..., m must be non-NULL pointers.
19+
n = 1 stands for the first argument, n = 2 for the second argument etc. */
20+
#ifndef _GL_ARG_NONNULL
21+
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
22+
# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
23+
# else
24+
# define _GL_ARG_NONNULL(params)
25+
# endif
26+
#endif

0 commit comments

Comments
 (0)