From 120be846949bf1dc2cd36184627e3451426125ef Mon Sep 17 00:00:00 2001 From: Gbkng Date: Tue, 18 Jun 2024 00:34:24 +0200 Subject: [PATCH] refactor tools --- tools/README.md | 0 tools/check_consistency.sh | 10 +++++----- ...my_findNodesToDup.py => find-nodes-to-duplicate.py} | 0 {src/INTERP_KERNELTest => tools}/perf_test.py | 0 {src/INTERP_KERNELTest => tools}/perf_test.sh | 0 tools/{mc_suppr_valgrind => valgrind-suppression.txt} | 0 6 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 tools/README.md rename tools/{my_findNodesToDup.py => find-nodes-to-duplicate.py} (100%) rename {src/INTERP_KERNELTest => tools}/perf_test.py (100%) rename {src/INTERP_KERNELTest => tools}/perf_test.sh (100%) rename tools/{mc_suppr_valgrind => valgrind-suppression.txt} (100%) diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/tools/check_consistency.sh b/tools/check_consistency.sh index c59374507..5a105fe3b 100755 --- a/tools/check_consistency.sh +++ b/tools/check_consistency.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Check that the ICoCo headers used in MEDCoupling are well synchronized with the official ICoCo version @@ -11,11 +11,11 @@ rm -rf tmp_compare git clone https://github.com/cea-trust-platform/icoco-coupling.git -lst="ICoCo_DeclSpec.hxx ICoCoField.h ICoCoField.hxx ICoCoMEDDoubleField.h ICoCoMEDDoubleField.hxx ICoCoMEDIntField.h ICoCoMEDIntField.hxx" +list="ICoCo_DeclSpec.hxx ICoCoField.h ICoCoField.hxx ICoCoMEDDoubleField.h ICoCoMEDDoubleField.hxx ICoCoMEDIntField.h ICoCoMEDIntField.hxx" mkdir tmp_compare cd tmp_compare -for f in $lst; do +for f in $list; do tail -n+4 ../icoco-coupling/include/$f > "${f}_github" tail -n+20 ../../$f > "${f}_mc" diff "${f}_github" "${f}_mc" @@ -26,6 +26,6 @@ for f in $lst; do done cd .. -rm -rf icoco-coupling -rm -rf tmp_compare +rm -r icoco-coupling +rm -r tmp_compare diff --git a/tools/my_findNodesToDup.py b/tools/find-nodes-to-duplicate.py similarity index 100% rename from tools/my_findNodesToDup.py rename to tools/find-nodes-to-duplicate.py diff --git a/src/INTERP_KERNELTest/perf_test.py b/tools/perf_test.py similarity index 100% rename from src/INTERP_KERNELTest/perf_test.py rename to tools/perf_test.py diff --git a/src/INTERP_KERNELTest/perf_test.sh b/tools/perf_test.sh similarity index 100% rename from src/INTERP_KERNELTest/perf_test.sh rename to tools/perf_test.sh diff --git a/tools/mc_suppr_valgrind b/tools/valgrind-suppression.txt similarity index 100% rename from tools/mc_suppr_valgrind rename to tools/valgrind-suppression.txt -- 2.39.2