You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/08/28 14:48:36 UTC

[GitHub] [nuttx-apps] pkarashchenko commented on a diff in pull request #2005: Adaptation of memtester

pkarashchenko commented on code in PR #2005:
URL: https://github.com/apache/nuttx-apps/pull/2005#discussion_r1307523891


##########
testing/memtester/.gitignore:
##########
@@ -0,0 +1 @@
+/memtester

Review Comment:
   ```suggestion
   /memtester
   
   ```



##########
testing/memtester/Kconfig:
##########
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2020 Xiaomi Corporation
+#
+# Licensed 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.
+#

Review Comment:
   Usually we have something like
   ```
   #
   # For a description of the syntax of this configuration file,
   # see the file kconfig-language.txt in the NuttX tools repository.
   #
   ```
   in `Kconfig` files. I'll check if we put copyright notice in `Kconfig` files



##########
testing/memtester/Make.defs:
##########
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2020 Xiaomi Corporation
+#
+# Licensed 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.
+#
+
+ifneq ($(CONFIG_UTILS_MEMTESTER),)
+CONFIGURED_APPS += $(APPDIR)/testing/memtester
+endif

Review Comment:
   ```suggestion
   endif
   
   ```



##########
testing/memtester/Makefile:
##########
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2020 Xiaomi Corporation
+#
+# Licensed 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.
+#

Review Comment:
   Can we align this with other similar files in code tree? Example
   ```
   ############################################################################
   # apps/testing/ostest/Makefile
   #
   # 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.
   #
   ############################################################################
   ```



##########
testing/memtester/Make.defs:
##########
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2020 Xiaomi Corporation
+#
+# Licensed 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.
+#

Review Comment:
   Can we align this with style in other files? Example:
   ```
   ############################################################################
   # arch/arm/src/samv7/Make.defs
   #
   # 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.
   #
   ############################################################################
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org