Closed
Description
edit: link to #280
$ ./scripts/test.sh
Using os 1.1.1
Using rubyzip 1.3.0
Using arduino_ci 1.3.0
Using bundler 2.1.4
Bundle complete! 1 Gemfile dependency, 4 gems now installed.
Bundled gems are installed into `./vendor/bundle`
. __ ___
_, ,_ _| , . * ._ _ / ` |
(_| [ `(_] (_| | [ ) (_) \__. _|_ v1.3.0
Host OS... windows
Located arduino-cli binary... C:/Users/calvo/arduino-cli.exe
Found libraries directory... C:/Users/calvo/Documents/Arduino/libraries
Environment variable CUSTOM_INIT_SCRIPT... ''
Environment variable USE_SUBDIR... ''
Installing library under test... ✓
WARNING... Installed library named 'Tank Controller' has directory name 'OpenAcidificationProject'
Library installed at... C:/Users/calvo/Documents/Arduino/libraries/Tank_Controller
================================================================================
Beginning the next phase of testing... Unit testing
The set of compilers (1) isn't empty... ✓
Checking g++ version...
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/9.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-9.2.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-static --enable-shared --enable-threads --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libgomp --disable-libvtv --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --disable-build-format-warnings --prefix=/mingw --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --enable-nls --with-pkgversion='MinGW.org GCC Build-2'
Thread model: win32
gcc version 9.2.0 (MinGW.org GCC Build-2)
...Checking g++ version ✓
libasan availability for g++... false
Library conforms to Arduino library specification... 1.0
No tests directory at... C:/Users/calvo/Documents/Arduino/libraries/Tank_Controller/test
Environment variable EXPECT_UNITTESTS is... (NilClass)
Skipping unit tests...
In case that's an error, displaying contents of base directory:
Traceback (most recent call last):
16: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/bin/arduino_ci.rb:23:in `<main>'
15: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/bin/arduino_ci.rb:23:in `load'
14: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:535:in `<top (required)>'
13: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:400:in `perform_unit_tests'
12: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:271:in `handle_expectation_of_files'
11: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:281:in `explain_and_exercise_envvar'
10: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:148:in `inform_multiline'
9: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:109:in `perform_action'
8: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:283:in `block in explain_and_exercise_envvar'
7: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:271:in `block in handle_expectation_of_files'
6: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:199:in `display_files'
5: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:199:in `select'
4: from C:/Users/calvo/Documents/Arduino/OpenAcidificationProject/vendor/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:199:in `each'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/pathname.rb:565:in `find'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/find.rb:43:in `find'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/find.rb:43:in `collect!'
C:/Ruby26-x64/lib/ruby/2.6.0/find.rb:43:in `block in find': No such file or directory - C:/Users/calvo/Documents/Arduino/libraries/Tank_Controller (Errno::ENOENT)
When I add this path, C:/Users/calvo/Documents/Arduino/libraries/Tank_Controller/test
I get this error:
$ ./scripts/test.sh
Using os 1.1.1
Using rubyzip 1.3.0
Using arduino_ci 1.3.0
Using bundler 2.1.4
Bundle complete! 1 Gemfile dependency, 4 gems now installed.
Bundled gems are installed into `./vendor/bundle`
. __ ___
_, ,_ _| , . * ._ _ / ` |
(_| [ `(_] (_| | [ ) (_) \__. _|_ v1.3.0
Host OS... windows
Located arduino-cli binary... C:/Users/calvo/arduino-cli.exe
Found libraries directory... C:/Users/calvo/Documents/Arduino/libraries
Environment variable CUSTOM_INIT_SCRIPT... ''
Environment variable USE_SUBDIR... ''
Installing library under test... ✗
This may indicate a problem with your configuration; halting here
Failures: 1
========== Last backend command (if relevant):
There is already a library 'Tank Controller' in the library directory (C:/Users/calvo/Documents/Arduino/libraries/Tank_Controller). It may need to be removed manually.
========== Backend Stdout:
{
"board_manager": {
"additional_urls": []
},
"daemon": {
"port": "50051"
},
"directories": {
"data": "C:\\Users\\calvo\\AppData\\Local\\Arduino15",
"downloads": "C:\\Users\\calvo\\AppData\\Local\\Arduino15\\staging",
"user": "C:\\Users\\calvo\\Documents\\Arduino"
},
"logging": {
"file": "",
"format": "text",
"level": "info"
},
"telemetry": {
"addr": ":9090",
"enabled": true
}
}
========== Backend Stderr: