I'm looking into this, and here's what happens when I do what is described in 
the docs (by copy/paste from the doc to my terminal on OS X Sierra)

TL;DR: There is a major malfunction in running any of the tests: 
In file included from aes.c:29:0:
/Users/dsimmons/test_newt/myproj/repos/apache-mynewt-core/crypto/mbedtls/include/mbedtls/config.h:2522:10:
 error: #include expects "FILENAME" or <FILENAME>
 #include MBEDTLS_USER_CONFIG_FILE

Read on to see (if you're interested) how the docs differ from the actual 
output (tl;dr: They don't :-) )

dsimmons$ newt new myproj
Downloading project skeleton from apache/incubator-mynewt-blinky...
Installing skeleton in myproj...
Project myproj successfully created.
DSimmons-Pro:test_newt dsimmons$ cd myproj/
DSimmons-Pro:myproj dsimmons$ tree
.
├── DISCLAIMER
├── LICENSE
├── NOTICE
├── README.md
├── apps
│   └── blinky
│       ├── pkg.yml
│       └── src
│           └── main.c
├── project.yml
└── targets
    ├── my_blinky_sim
    │   ├── pkg.yml
    │   └── target.yml
    └── unittest
        ├── pkg.yml
        └── target.yml

6 directories, 11 files
dsimmons$ newt install -v
apache-mynewt-core
Downloading repository description for apache-mynewt-core...
 success!
Downloading repository incubator-mynewt-core (branch: master; commit: 
mynewt_1_0_0_b1_tag) at https://github.com/apache/incubator-mynewt-core.git
Cloning into 
'/var/folders/_l/m5h3k18x0x3f6422p12_cpch0000gp/T/newt-repo730366949'...
remote: Counting objects: 45144, done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 45144 (delta 60), reused 0 (delta 0), pack-reused 44981
Receiving objects: 100% (45144/45144), 73.66 MiB | 19.08 MiB/s, done.
Resolving deltas: 100% (26822/26822), done.
Checking connectivity... done.
apache-mynewt-core successfully installed version 0.9.9-none
DSimmons-Pro:myproj dsimmons$ tree -L 2 repos/apache-mynewt-core/
repos/apache-mynewt-core/
├── CODING_STANDARDS.md
├── DISCLAIMER
├── LICENSE
├── NOTICE
├── README.md
├── RELEASE_NOTES.md
├── apps
│   ├── blecent
│   ├── blehci
│   ├── bleprph
│   ├── bleprph_oic
│   ├── bletest
│   ├── bletiny
│   ├── bleuart
│   ├── boot
│   ├── ffs2native
│   ├── ocf_sample
│   ├── slinky
│   ├── slinky_oic
│   ├── spitest
│   ├── splitty
│   ├── test
│   └── timtest
├── boot
│   ├── boot_serial
│   ├── bootutil
│   └── split
├── compiler
│   ├── arm-none-eabi-m0
│   ├── arm-none-eabi-m4
│   ├── gdbmacros
│   └── sim
├── crypto
│   ├── mbedtls
│   └── tinycrypt
├── docs
│   └── doxygen.xml
├── encoding
│   ├── base64
│   ├── cborattr
│   ├── json
│   └── tinycbor
├── fs
│   ├── fcb
│   ├── fs
│   └── nffs
├── hw
│   ├── bsp
│   ├── cmsis-core
│   ├── drivers
│   ├── hal
│   ├── mcu
│   └── scripts
├── kernel
│   └── os
├── libc
│   └── baselibc
├── mgmt
│   ├── imgmgr
│   ├── mgmt
│   ├── newtmgr
│   └── oicmgr
├── net
│   ├── ip
│   ├── nimble
│   ├── oic
│   └── wifi
├── project.yml
├── repository.yml
├── sys
│   ├── config
│   ├── console
│   ├── coredump
│   ├── defs
│   ├── flash_map
│   ├── id
│   ├── log
│   ├── mfg
│   ├── reboot
│   ├── shell
│   ├── stats
│   └── sysinit
├── targets
│   └── unittest
├── test
│   ├── crash_test
│   ├── flash_test
│   ├── runtest
│   ├── testreport
│   └── testutil
├── time
│   └── datetime
└── util
    ├── cbmem
    ├── crc
    └── mem

87 directories, 9 files
DSimmons-Pro:myproj dsimmons$  newt test @apache-mynewt-core/sys/config
Testing package @apache-mynewt-core/sys/config/test-fcb
Compiling bootutil_misc.c
Compiling image_ec.c
Compiling image_rsa.c
Compiling image_validate.c
Compiling loader.c
Archiving bootutil.a
In file included from aes.c:29:0:
/Users/dsimmons/test_newt/myproj/repos/apache-mynewt-core/crypto/mbedtls/include/mbedtls/config.h:2522:10:
 error: #include expects "FILENAME" or <FILENAME>
 #include MBEDTLS_USER_CONFIG_FILE
          ^
Testing package @apache-mynewt-core/sys/config/test-nffs
Compiling bootutil_misc.c
Compiling image_ec.c
Compiling image_rsa.c
Compiling image_validate.c
Compiling loader.c
Archiving bootutil.a
In file included from aes.c:29:0:
/Users/dsimmons/test_newt/myproj/repos/apache-mynewt-core/crypto/mbedtls/include/mbedtls/config.h:2522:10:
 error: #include expects "FILENAME" or <FILENAME>
 #include MBEDTLS_USER_CONFIG_FILE
          ^
Error: Test failure(s):
Passed tests: []
Failed tests: [sys/config/test-fcb sys/config/test-nffs]
DSimmons-Pro:myproj dsimmons$
DSimmons-Pro:myproj dsimmons$

So it looks like the latest version of newt-core has a *slight* bug in it. :-) 
But other than that, everything seems to follow the docs 100% ... At least on 
my system.

I'll test Ubuntu next.

dg

> On Dec 6, 2016, at 12:23 PM, Mohammad Afaneh <[email protected]> wrote:
> 
> Todd,
> 
> What threw me off is that the doc page:
> https://mynewt.apache.org/latest/os/get_started/project_create/ says that I
> should expect to see more folders (such as boot, crypto, compiler..etc).
> Also, when running the "newt test all" or "newt test
> @apache-mynewt-core/sys/config" it says there are no tests:
> 
> Error: No testable packages found
> 
> Error: Package @apache-mynewt-core/sys/config contains no unit tests
> 
> Is there some additional step that I'm missing before getting to this point?
> 
> Thanks.
> 
> On Tue, Dec 6, 2016 at 11:42 AM, todd mitton <[email protected]> wrote:
> 
>> Hi Mohammad,
>> 
>> I don't think there's a problem.  You should only have the apps, repos, and
>> targets directly after a `newt new` and `newt install`.  That's expected.
>> If you look in repos/apache-mynewt-core, you should see all the src for
>> Mynewt.
>> 
>> The 'warning: unable to access '/root/.config/git/attributes': Permission
>> denied' message is just a harmless warning from git.  You only see it with
>> the -v flag.  It just means there's no /root/.config/git/attributes in the
>> container.
>> 
>> -Todd
>> 
>> On Tue, Dec 6, 2016 at 8:24 AM, marko kiiskila <[email protected]> wrote:
>> 
>>> I have a Linux setup running under VmWare, where I have a mynewt
>>> dev environment. This is quite possible.
>>> 
>>> Docker is more of a convenience thing :)
>>> 
>>>> On Dec 5, 2016, at 2:32 AM, Mohammad Afaneh <[email protected]> wrote:
>>>> 
>>>> Thanks, Fabio.
>>>> 
>>>> Yes, I'm aware that I can install on OS X - I just like to keep things
>>>> isolated in a VM when trying out new projects and frameworks.
>>>> 
>>>> I guess I'll resort to setting up on my native OS if I don't succeed in
>>>> getting it working.
>>>> 
>>>> - Mohammad
>>>> 
>>>> On Mon, Dec 5, 2016 at 5:05 AM, Fabio Utzig <[email protected]> wrote:
>>>> 
>>>>> On Sun, Dec 4, 2016, at 10:55 PM, Mohammad Afaneh wrote:
>>>>>> Thanks, Chris.
>>>>>> 
>>>>>> I'm running:
>>>>>> - OS X 10.12.1 (macOS Sierra)
>>>>> 
>>>>> Hi Mohammad,
>>>>> 
>>>>> Not sure you are aware but you can build newt/mynewt on OS X too. I'm
>>>>> myself using Sierra for development. You just need to install some
>>>>> dependencies like go and gcc-arm-embedded. Easily done with homebrew:
>>>>> 
>>>>> $ brew install go
>>>>> $ brew cask install gcc-arm-embedded
>>>>> 
>>>>> Cheers,
>>>>> Fabio Utzig
>>>>> 
>>> 
>>> 
>> 

--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin 
<http://linkedin.com/in/davidgsimmons> • Twitter 
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.  
* If you cannot read the PGP.sig attachment, please go to 
 * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
 * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!

There are only 2 hard things in computer science: Cache invalidation, naming 
things, and off-by-one errors.


Reply via email to