Adding upstream version 0.7.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f170ee46ad
commit
79ead63b61
35 changed files with 2904 additions and 0 deletions
15
tests/Makefile
Normal file
15
tests/Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Copyright 2021 The golang.design Initiative Authors.
|
||||
# All rights reserved. Use of this source code is governed
|
||||
# by a MIT license that can be found in the LICENSE file.
|
||||
#
|
||||
# Written by Changkun Ou <changkun.de>
|
||||
|
||||
all: test
|
||||
|
||||
test:
|
||||
go test -v -count=1 -covermode=atomic ..
|
||||
|
||||
test-docker:
|
||||
docker build -t golang-design/x/clipboard ..
|
||||
docker run --rm --name cb golang-design/x/clipboard
|
||||
docker rmi golang-design/x/clipboard
|
11
tests/test-docker.sh
Executable file
11
tests/test-docker.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
# Copyright 2021 The golang.design Initiative Authors.
|
||||
# All rights reserved. Use of this source code is governed
|
||||
# by a MIT license that can be found in the LICENSE file.
|
||||
#
|
||||
# Written by Changkun Ou <changkun.de>
|
||||
|
||||
# require apt-get install xvfb
|
||||
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||
export DISPLAY=:99.0
|
||||
|
||||
go test -v -covermode=atomic ./...
|
BIN
tests/testdata/android.png
vendored
Normal file
BIN
tests/testdata/android.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 107 KiB |
BIN
tests/testdata/clipboard.png
vendored
Normal file
BIN
tests/testdata/clipboard.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
tests/testdata/darwin.png
vendored
Normal file
BIN
tests/testdata/darwin.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
BIN
tests/testdata/ios.png
vendored
Normal file
BIN
tests/testdata/ios.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
tests/testdata/linux.png
vendored
Normal file
BIN
tests/testdata/linux.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
tests/testdata/windows.png
vendored
Normal file
BIN
tests/testdata/windows.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue