From patchwork Fri May 26 15:58:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Moore X-Patchwork-Id: 9750721 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8D1B60249 for ; Fri, 26 May 2017 16:00:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C96B72624A for ; Fri, 26 May 2017 16:00:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE4EA28408; Fri, 26 May 2017 16:00:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (smtp.nsa.gov [8.44.101.8]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE1192624A for ; Fri, 26 May 2017 15:59:59 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.38,398,1491264000"; d="scan'208";a="7497769" IronPort-PHdr: =?us-ascii?q?9a23=3AjbiSQhBRhcuIc4OpizugUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSPr6psmwAkXT6L1XgUPTWs2DsrQf2rWQ6P6rCDZIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSijewZbF/IA+4oAjQucUbhZVuIbstxxXUpXdFZ/?= =?us-ascii?q?5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnM?= =?us-ascii?q?VhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1hi?= =?us-ascii?q?gHLTo5+3zJhMJ2gqxQvRatqwViz4LIZY2YMud1cKHActMAXWdPQ8ZfWTJPDI2/?= =?us-ascii?q?YYQAAPYOM+lAr4T/ulcDowWxBRK3CePzyDJFnGP60bEg3ukjFwzNwQwuH8gJsH?= =?us-ascii?q?TRtNj7Lr0dUf2xzKLVyjvDaPRW2S3j54PVdR0hufSMXbV3ccrL10YiDBnFgUuN?= =?us-ascii?q?pozlJTyVyv4BvHSc7+plTO+ijXMspQJpojW328shhYbEipgVx1zZ7yl13ok4Kc?= =?us-ascii?q?OiREJmedKoDodcuiWAO4drTM4uXXtktDs5x7AIo5K3YisHxZI6zBDFcfOHaZKH?= =?us-ascii?q?4hf7WeaUJjd3mWxqdaqkhxa37Uig0ur8VtSo0FpSripKjN3MtncV2hzP8MeHUP?= =?us-ascii?q?p9/lq62TqVywDS6v1LIUAzlabBLZ4u3qUwmYYJvUTGHy/2nF36jK6Qdko65uil?= =?us-ascii?q?8/nrb7rpq5OGN4J4lxvyProhl8ChG+g0LxACX22B9uS90L3j81f5QLJPjvAuia?= =?us-ascii?q?nWrpTaJcUdpq6kDA5Zy50s6xGiDzegzNsXg2IHIUlZeBOHk4fpO1bOLOr+Dfek?= =?us-ascii?q?mVugijhrx/fYPrH5GJXCMmDDkKv9fbZ680Ncyg0zzdZF6JJICrEOOvTzV1TztN?= =?us-ascii?q?zfCB85Nha7w/37CNpjzIMeQniDAqiDMKPdqVWI/P4gI/GQZI8JvzbwM/ol5/z0?= =?us-ascii?q?gnAlml8dZq6p3Z0WaHCmBflmLUGZYWfjg9gaDGcKuBY+TPHwhF2FSz5TaG64X7?= =?us-ascii?q?gg6TEjFIKmEYDDS5ijgbyA2Ce7G4NZZnpdB1CCD3jnaoKEW+0WZyKKOM9hlT4E?= =?us-ascii?q?Wqa9RI89zx2usxX6y7V/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S2Op8FD2tTN4QTfLz9r7jkVaTL23CllJXyq1OU54tyiCPBH0u9r2p6s16l?= =?us-ascii?q?02Mm3+u96XkmuuJq9XFdXlJNOAOSk0uE4XjJopS9yrwoAbHNqwLcwf8H5gc/Te?= =?us-ascii?q?7HmrnDVZo6ddgIre4N+a9enLHXW6iK2asbqNzihCynckpVE/9sygNvbW6t2IQv?= =?us-ascii?q?So0n0cTyJhtArBQRG1sL3br1YbOUCR1kfEhpAKNMlD3XYkzkHm+PQjQNUr+QVf?= =?us-ascii?q?F4fPfekNqizoNTvv31mff8w4WTWE3ztQBFL1HkFyGLIg12LooMLJiXDQ9kUzSY?= =?us-ascii?q?lxbEzmiwZ4D4c5KUIx8FgY2DcDEQwWZB+HC7GnGFrqIpEZVUgZbhSHxqK1dr0w?= =?us-ascii?q?3U1pzbOl/PXTYvBkB6oRKvZdiRaDnEBBFZIKraIeQLx9e1hH9K7UvwTiEJboX/?= =?us-ascii?q?znlXo2KP20TdtX8dgDuHs+/gm/RxSh6ZBZ77YYkpyIdbBLYYLKvM9i60dr/zkP?= =?us-ascii?q?djZCgBJnlRO2TfgcpPz/4tjcqJeo9vyuW7gpR+oN8Rg7GX9zgIbxgFAsoNHXy/?= =?us-ascii?q?1TSpbPhoTl7QBBOXiKt5jG0xNkM+oBN5qrfKp893UAPyUeKGgBPcCIZPkg4y9g?= =?us-ascii?q?KzHT511eAswSZdMXJtfNmRtOhk3vRr5T6tLRGkWEBIdra8Ao8233xSg68ZQiVO?= =?us-ascii?q?bg9Di2JZfY41FWIfxDiCRslNTfpOka2vfSDDYY4WOZahdv2C+CzYeCC+ro9+WW?= =?us-ascii?q?1N7UT08GHjIxU4pFODWC+xaoSfaumZr1VQOU7svzgJMge0KKWny+grgKsqZWHe?= =?us-ascii?q?5HkCX70SBUFprpiPKNr9qs9GxXu0VCEIZ06x3FBKpfMYtgNBT9l8mkXE58CTXj?= =?us-ascii?q?eMDacRououmWxvwW7+V4KUT+eZcRIggYxLLi9XpVUgxuRab5vlmFRuIRf8JqRu?= =?us-ascii?q?7LoH5T6IJgLbIPPVeGqZzlqzdHslY2DxEzZL83tDxaeVHEnBdJVKbspL4Algwc?= =?us-ascii?q?XMZ7uU9LGWKwPngy6CbHVaRRkameFf0U8jSVTqwVUEVoMzhzQw202JVwYbSpme?= =?us-ascii?q?1IsmJckiN7vvcqzyRsRAGgti30u6INxTUg9am5tDUfo3NFSP6TkyPVCVpezfQK?= =?us-ascii?q?irwcB2zl6Vymb3kJdJHy76V/JcT86Ykh5GwyYRc9cC0IU+SgDzr9jq2SDYyJrt?= =?us-ascii?q?1cmASBuMPQYr+vNSISLKgyyQr/R3hh1QjThBlo8G8MQjSu8tAkIIG9NN0+xiqv?= =?us-ascii?q?H2jbdUoD7rlPsMTvqV4BVPE2Zk95wGV/zsiHQTUARM7PG2c1lggkbmFEcJNf6R?= =?us-ascii?q?AEDKQohzeIvrVc/g4KejvUFZ6l+obIl8fSxXY9Vctqxn7RpqCdmpMq0Xhllsho?= =?us-ascii?q?7i6PpHsSdPLXU8t2Dnj1yIhf1fT0Z++xveAfVItm1LOhXecHMsmi+mu225JqV1?= =?us-ascii?q?SnxrsEHFq5N+kDyandUyu/T22XR/iLeXCWnzklKk7y+QWoLlovZchRsUA9NPfC?= =?us-ascii?q?i4VHlw3lVrN0WjmQpUHFw2M+K+8acBg2uIi/cQwQUOERf/ScJfQpwPAmEFsMaH?= =?us-ascii?q?vJEjFsC+64tl6tmIZ7Nm5l4UX9ZuTt6R7pP8eIGhkDCo7atZ9x+fq1Rm6bPn9g?= =?us-ascii?q?1hJyNlFu9+jDD1QxqvNcc5GJkNjemdt71e8Fd+9zPiAmu98Tm4dj6YyK38eQdR?= =?us-ascii?q?He0Iz+JdbPoviXG/ff1VglenlGUroFZgP4/4s7PsYjW73SAbRWow8RBa07QJw9?= =?us-ascii?q?LWf+6rt4LARpcg7efL60mNXlpvqXZptIoH/b9lUwLCPCtBAY0vy0SRZ0b4u2h3?= =?us-ascii?q?XzP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lcBAQEBAQEBAQIBA?= =?us-ascii?q?mgogjMkgkkCIFkDCQIXCAUCIgQCAgMBQykFiFOBUqs7giYmAotfgQuFVIIUil6?= =?us-ascii?q?CYAEEiUeGYo16niMQF4ZTApROWIEKMCEIGxWHZFqJCQEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 26 May 2017 15:59:58 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4QFxwO7005752; Fri, 26 May 2017 11:59:58 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id v4QFwwnM247955 for ; Fri, 26 May 2017 11:58:58 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4QFwwE6005397 for ; Fri, 26 May 2017 11:58:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1BaCgAfUChZhxy3hNFdHAEBBAEBCgEBgywmaIEKg2+Gf4QMkFGNHIsNHIkUVwECAQEBAQECEwEBAQoLCQgohXGBBgUCJgJJKYhYgVKbMJALgiaMB4ELhVSCFIpegmAFiUeGYo16niMQhmoClE6BYTAhCBsVhHkMVIILJDaJCQEBAQ X-IPAS-Result: A1BaCgAfUChZhxy3hNFdHAEBBAEBCgEBgywmaIEKg2+Gf4QMkFGNHIsNHIkUVwECAQEBAQECEwEBAQoLCQgohXGBBgUCJgJJKYhYgVKbMJALgiaMB4ELhVSCFIpegmAFiUeGYo16niMQhmoClE6BYTAhCBsVhHkMVIILJDaJCQEBAQ X-IronPort-AV: E=Sophos;i="5.38,398,1491278400"; d="scan'208";a="6068039" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 26 May 2017 11:58:57 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3AolZJXhXtVtVo7WL+0mbgyyyAR3nV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYYhKAt8tkgFKBZ4jH8fUM07OQ6PG/Hzdeqsfb+Fk5M7V0Hycfjs?= =?us-ascii?q?sXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6?= =?us-ascii?q?KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG0oAnLuMQbgIRuJ6IvxhDUvnZGZu?= =?us-ascii?q?NayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnD?= =?us-ascii?q?VhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0ji?= =?us-ascii?q?oMKjg0+3zVhMNtlqJWuA+vqRxhzYDaY4+aOvVxcb/Sc94BWWpMXNxcWzBdDo6m?= =?us-ascii?q?bYYCCfcKM+ZCr4n6olsDtQGwChOxBOPr1zRGgXj23aog0+s/DArL2xQgH9cJsH?= =?us-ascii?q?TTttX6KrwfUfqrw6bVzTXMde9W1S3h54jPdxAsuPeBVq9zf8rJ0UQjCR/Jg1GK?= =?us-ascii?q?pYD4MT6ZyP4Bv3WY4uduT+6jlW0qpgdsqTa13MgskJPGhocNx1DE6yp5xIE1KM?= =?us-ascii?q?W9SE90fNKoCoFQuD+HOIt2WMwiX3tktzo9yr0DoZK7fS4Kx4o7xxPHdfCLb4yF?= =?us-ascii?q?7gj+WOufPzt0nm9pdbGxihqo70StyfXwVsyu31ZLqipFnMPMtncI1xHL8siHT/?= =?us-ascii?q?x9/kC72TmRzA3T8P9LLl00laXBN54t2KI/lp0WsUjbBC/5hF32jLOKdkUj4uWo?= =?us-ascii?q?8ProYrHnpp+aKo91hRrzMrgum8OjAeQ4NRICX26A+eumzrHj8kr5QKsZxsExx7?= =?us-ascii?q?LUtJHcONQzur+yAwgT1J0qrRm4EWSIytMdyEEOMVYNXRWAlYWhb0nLJ/fiAN+l?= =?us-ascii?q?jlismSstzPfDaO6ySq7RJ2TOxe+yNY127FRRnVI+?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0FzEAC3TyhZhxy3hNFdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgwEmaIEKg2+Gf4QMkFGNHIsNHIkUVwEBAQEBAQEBAgECEAEBAQo?= =?us-ascii?q?LCQgoL4IzIoJtgQYFAiYCSSmIWIFSmzCQC4ImjAeBC4VUghSKXoJgBYlHhmKNe?= =?us-ascii?q?p4jEIZqApROgWIwIQgbFYR5DFSCCyQ2iQkBAQE?= X-IPAS-Result: =?us-ascii?q?A0FzEAC3TyhZhxy3hNFdHAEBBAEBCgEBFwEBBAEBCgEBgwE?= =?us-ascii?q?maIEKg2+Gf4QMkFGNHIsNHIkUVwEBAQEBAQEBAgECEAEBAQoLCQgoL4IzIoJtg?= =?us-ascii?q?QYFAiYCSSmIWIFSmzCQC4ImjAeBC4VUghSKXoJgBYlHhmKNep4jEIZqApROgWI?= =?us-ascii?q?wIQgbFYR5DFSCCyQ2iQkBAQE?= X-IronPort-AV: E=Sophos;i="5.38,398,1491264000"; d="scan'208";a="6146361" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from mx1.redhat.com ([209.132.183.28]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2017 15:58:56 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7E0E2B0A72 for ; Fri, 26 May 2017 15:58:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B7E0E2B0A72 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=pmoore@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B7E0E2B0A72 Received: from [127.0.0.1] (ovpn-125-205.rdu2.redhat.com [10.10.125.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 780CB17B6E; Fri, 26 May 2017 15:58:55 +0000 (UTC) Subject: [RFC PATCH] tools: add perltidy to the syntax checker/fixer From: Paul Moore To: selinux@tycho.nsa.gov Date: Fri, 26 May 2017 11:58:55 -0400 Message-ID: <149581433492.13821.14132385005185399089.stgit@sifl> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 26 May 2017 15:58:55 +0000 (UTC) X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP From: Paul Moore Signed-off-by: Paul Moore --- tools/check-syntax | 86 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 20 deletions(-) diff --git a/tools/check-syntax b/tools/check-syntax index 72cb06b..ee83c03 100755 --- a/tools/check-syntax +++ b/tools/check-syntax @@ -13,6 +13,9 @@ CHK_C_LIST="$(find tests/ -name "*.c") $(find tests/ -name "*.h")" CHK_C_EXCLUDE="" +CHK_PERL_LIST="$(find tests/ -name "*.pl") $(find tests/ -name "test")" +CHK_PERL_EXCLUDE="" + #### # functions @@ -66,50 +69,92 @@ function tool_c_style() { } # -# Check the formatting on a C source/header file +# Generate a properly formatted Perl source file # # Arguments: -# 1 File to check +# 1 Source file # -function tool_c_style_check() { - [[ -z "$1" || ! -r "$1" ]] && return +function tool_perl_style() { + perltidy < "$1" +} - tool_c_style "$1" | diff -pu --label="$1.orig" "$1" --label="$1" - +# +# Check the formatting on a file +# +# Arguments: +# 1 Language +# 2 File to check +# +function style_check() { + [[ -z "$1" ]] && return + [[ -z "$2" || ! -r "$2" ]] && return + + case "$1" in + c|C) + tool_c_style "$2" | \ + diff -pu --label="$2.orig" "$2" --label="$2" - + ;; + perl|Perl) + tool_perl_style "$2" | \ + diff -pu --label="$2.orig" "$2" --label="$2" - + ;; + esac } # -# Fix the formatting on a C source/header file +# Fix the formatting on a file # # Arguments: -# 1 File to fix +# 1 Language +# 2 File to check # -function tool_c_style_fix() { - [[ -z "$1" || ! -r "$1" ]] && return +function style_fix() { + [[ -z "$1" ]] && return + [[ -z "$2" || ! -w "$2" ]] && return - tmp="$(mktemp --tmpdir=$(dirname "$1"))" - tool_c_style "$1" > "$tmp" - mv "$tmp" "$1" + tmp="$(mktemp --tmpdir=$(dirname "$2"))" + case "$1" in + c|C) + tool_c_style "$2" > "$tmp" + ;; + perl|Perl) + tool_perl_style "$2" > "$tmp" + ;; + esac + mv "$tmp" "$2" } # -# Perform all known syntax checks for the configured C sources/headers +# Perform all known syntax checks for the configured files # -function check_c() { +function check() { for i in $CHK_C_LIST; do echo "$CHK_C_EXCLUDE" | grep -q "$i" && continue echo "Differences for $i" - tool_c_style_check "$i" + style_check c "$i" + done + + for i in $CHK_PERL_LIST; do + echo "$CHK_PERL_EXCLUDE" | grep -q "$i" && continue + echo "Differences for $i" + style_check perl "$i" done } # -# Perform all known syntax fixes for the configured C sources/headers +# Perform all known syntax fixes for the configured files # -function fix_c() { +function fix() { for i in $CHK_C_LIST; do echo "$CHK_C_EXCLUDE" | grep -q "$i" && continue echo "Fixing $i" - tool_c_style_fix "$i" + style_fix c "$i" + done + + for i in $CHK_PERL_LIST; do + echo "$CHK_PERL_EXCLUDE" | grep -q "$i" && continue + echo "Fixing $i" + style_fix perl "$i" done } @@ -117,6 +162,7 @@ function fix_c() { # main verify_deps astyle +verify_deps perltidy opt_fix=0 @@ -136,9 +182,9 @@ done echo "=============== $(date) ===============" echo "Code Syntax Check Results (\"check-syntax $*\")" if [[ $opt_fix -eq 1 ]]; then - fix_c + fix else - check_c + check fi echo "============================================================"