You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/03/06 13:41:15 UTC

[mynewt-nimble] branch master updated: Add unittest target

This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new e14ce24  Add unittest target
e14ce24 is described below

commit e14ce24db3c1aecda7627dbf1ca2f8793968d329
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Fri Mar 6 09:58:08 2020 -0300

    Add unittest target
    
    A recent newt change removed final-atom support
    (https://github.com/apache/mynewt-newt/pull/381); this has a side-effect
    that results in the "unittest" target not being found if is not located
    in the repo where tests are being run (it does not search for "unittest"
    inside @apache-mynewt-core anymore). So add the same "unittest" target
    that already exists in @apache-mynewt-core repo here.
    
    Signed-off-by: Fabio Utzig <ut...@apache.org>
---
 targets/unittest/pkg.yml    | 27 +++++++++++++++++++++++++++
 targets/unittest/target.yml | 23 +++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/targets/unittest/pkg.yml b/targets/unittest/pkg.yml
new file mode 100644
index 0000000..b25bf78
--- /dev/null
+++ b/targets/unittest/pkg.yml
@@ -0,0 +1,27 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+### Package: targets/unittest
+pkg.name: "targets/unittest"
+pkg.type: "target"
+pkg.description: "Used for unit tests by the \"newt test\" command."
+pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
+
+pkg.deps: "@apache-mynewt-core/sys/sysinit"
diff --git a/targets/unittest/target.yml b/targets/unittest/target.yml
new file mode 100644
index 0000000..e10a8ac
--- /dev/null
+++ b/targets/unittest/target.yml
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+### Target: targets/unittest
+target.bsp: "@apache-mynewt-core/hw/bsp/native"
+target.build_profile: "debug"
+target.compiler: "@apache-mynewt-core/compiler/sim"