Commit Graph

319 Commits

Author SHA1 Message Date
zagrodzki
7631ae4158 Merge pull request #42 from nkovacs/ignore-binaries
Ignore rawread and usbid/regen binaries
2017-03-26 18:46:22 +02:00
Nikola Kovacs
f19e934f9f Ignore rawread and usbid/regen binaries 2017-03-26 18:40:51 +02:00
Sebastian Zagrodzki
926e8d0ea6 point to master branch for coverage, duh... 2017-03-26 18:37:57 +02:00
zagrodzki
0d18ae2f82 Merge pull request #45 from kylelemons/coveralls
Remove coveralls token entirely, it's not required for public repositories apparently...
2017-03-26 18:34:31 +02:00
Sebastian Zagrodzki
57244bb162 Remove coveralls token entirely, is supposed to "just work" for public
repositories.
2017-03-26 18:28:51 +02:00
Sebastian Zagrodzki
927ef57ca7 Gah. Of course it doesn't work, since the exit status from test is 1.
Replace "&&" with an "if".
2017-03-26 18:16:12 +02:00
zagrodzki
e1279ed840 Merge pull request #44 from kylelemons/coverage
If the coveralls token is not set, don't try to push the coverage report.
2017-03-26 18:08:41 +02:00
Sebastian Zagrodzki
90a47eb448 If the coveralls token is not set, don't try to push the coverage report. 2017-03-26 17:58:30 +02:00
zagrodzki
03533e78ed Merge pull request #43 from kylelemons/libusb_wrappers_tests
Update an inaccurate comment
2017-03-26 17:56:24 +02:00
Sebastian Zagrodzki
0a7fc9fb53 Merge branch 'master' of https://github.com/kylelemons/gousb into libusb_wrappers_tests 2017-03-26 17:46:12 +02:00
Sebastian Zagrodzki
1f977a94aa Update the comment - there's no way to create a new pointer to struct
libusb_device, since the struct is not defined in libusb headers (only
name is declared), as such the compiler doesn't know the size of the
struct to allocate.
2017-03-26 17:44:25 +02:00
zagrodzki
2bc8acd1c7 Merge pull request #41 from kylelemons/libusb_wrappers_tests
More tests
2017-03-23 18:15:31 +01:00
Sebastian Zagrodzki
4c5589cffb Moar comments. 2017-03-23 18:07:55 +01:00
Sebastian Zagrodzki
1008e7c3c0 Merge branch 'master' into libusb_wrappers_tests 2017-03-22 19:16:29 +01:00
zagrodzki
79b30d4535 Merge pull request #40 from kylelemons/coverage
Add test coverage reporting based on Coveralls
2017-03-22 19:13:57 +01:00
Sebastian Zagrodzki
fc41761879 Remove the alloc test that used real libusb allocation. 2017-03-10 09:25:57 -05:00
Sebastian Zagrodzki
e0cfdc52dd updated USB IDs 2017-03-10 09:09:34 -05:00
Sebastian Zagrodzki
ea2a438ec0 ignore libusb.go, as explicitly not covered due to poor C code
testability.
2017-03-10 09:00:37 -05:00
Sebastian Zagrodzki
81f2998055 Merge branch 'coverage' into libusb_wrappers_tests 2017-03-10 08:55:45 -05:00
Sebastian Zagrodzki
389ae4e2b3 EndpointInfo tests 2017-03-10 08:48:21 -05:00
Sebastian Zagrodzki
a221bef905 ensure the vid/pid match 2017-03-10 08:36:00 -05:00
Sebastian Zagrodzki
ff7995c159 Add endpoint open test 2017-03-10 08:35:50 -05:00
Sebastian Zagrodzki
991e1b6cc6 completed interface, no more references to real usb from fake. 2017-03-10 08:33:14 -05:00
Sebastian Zagrodzki
4add66ae0e move things around, to keep list of the devices at the beginning. 2017-03-10 07:39:51 -05:00
Sebastian Zagrodzki
d392ad305d Tests for OpenVidPid 2017-03-10 07:38:54 -05:00
Sebastian Zagrodzki
4b17678362 remove a call to libusb_open_device_with_vid_pid, as it's just a
convenience wrapper. Reimplement the same trivial wrapper in Go.
2017-03-10 07:22:04 -05:00
Sebastian Zagrodzki
5608fa49e7 remove superfluous imports 2017-03-10 07:09:12 -05:00
Sebastian Zagrodzki
a787d0a1d1 Modify the test for device list, drop noop/multiple contexts. 2017-03-10 07:08:35 -05:00
Sebastian Zagrodzki
c918a7e503 Skip the test, until rewritten. 2017-03-10 07:08:00 -05:00
Sebastian Zagrodzki
8af7ddc71b add two device descriptors 2017-03-10 07:07:44 -05:00
Sebastian Zagrodzki
c2776f302f Merge branch 'master' into libusb_wrappers_tests 2017-03-10 07:01:29 -05:00
zagrodzki
b5abadf3f0 Merge pull request #39 from kylelemons/libusb_wrappers
Libusb wrappers
2017-03-10 06:52:56 -05:00
Sebastian Zagrodzki
feddade9bf add coverage badge 2017-03-09 19:32:46 -05:00
Sebastian Zagrodzki
3b0b2f1a6b consistent skip message 2017-03-09 12:56:46 -05:00
Sebastian Zagrodzki
dcc298126a "-v" for the tests 2017-03-09 12:52:54 -05:00
Sebastian Zagrodzki
aaec52a9c3 more tests failing on travis 2017-03-09 12:43:08 -05:00
Sebastian Zagrodzki
a675c1b487 more tests failing on travis 2017-03-09 12:41:25 -05:00
Sebastian Zagrodzki
76721213eb Skip descriptor test on Travis. 2017-03-09 12:34:49 -05:00
Sebastian Zagrodzki
40d328967b Run all tests. I'll mark the always-failing tests as skipped. 2017-03-09 12:31:14 -05:00
Sebastian Zagrodzki
d6f93e15ab always create the tmp file 2017-03-09 12:28:58 -05:00
Sebastian Zagrodzki
9f8cb55a00 yet another way to escape... 2017-03-09 12:26:29 -05:00
Sebastian Zagrodzki
da066a3744 different escaping 2017-03-09 12:20:34 -05:00
Sebastian Zagrodzki
13a23edf37 go does not support coverage when testing multiple packages. 2017-03-09 12:17:50 -05:00
Sebastian Zagrodzki
5af7134a36 move the coveralls token to env 2017-03-09 12:09:05 -05:00
Sebastian Zagrodzki
fb2d1452c7 Add coveralls support to travis. 2017-03-09 12:03:45 -05:00
Sebastian Zagrodzki
0099228bc3 started adding fakelibusb functions for testing device.go 2017-03-06 11:38:03 +01:00
Sebastian Zagrodzki
810a98e9fa Revert "Run benchmarks for tests as well."
This reverts commit 7c55d36758.
2017-03-01 11:13:22 +01:00
Sebastian Zagrodzki
2c956c55d8 Revert "Gah. s/bench.run/test.bench/"
This reverts commit 42e4e1a37d.
2017-03-01 11:13:16 +01:00
Sebastian Zagrodzki
42e4e1a37d Gah. s/bench.run/test.bench/ 2017-03-01 11:04:41 +01:00
Sebastian Zagrodzki
7c55d36758 Run benchmarks for tests as well. 2017-03-01 10:58:34 +01:00