# HG changeset patch # User Jeandet Alexis # Date 2016-11-17 10:06:19 # Node ID 0343834a1e0edd86803b311b1e1dbda7d3861df2 # Parent 3005781845dba62acd6a038f6702c8c0ea02fe8a removed dependency to Xonsh for Validation LFR Filters diff --git a/tests/Validation_LFR_Filters/Makefile b/tests/Validation_LFR_Filters/Makefile --- a/tests/Validation_LFR_Filters/Makefile +++ b/tests/Validation_LFR_Filters/Makefile @@ -77,7 +77,7 @@ cp_for_vsim: generate cp ./input.txt simulation/ archivate: - xonsh ./archivate.xsh + python ./archivate.py test-common: | generate ghdl ghdl-run archivate diff --git a/tests/Validation_LFR_Filters_Noise/archivate.py b/tests/Validation_LFR_Filters_Noise/archivate.py new file mode 100755 --- /dev/null +++ b/tests/Validation_LFR_Filters_Noise/archivate.py @@ -0,0 +1,10 @@ +import os +import shutil +import datetime as dt +import glob + +folder=dt.datetime.today().strftime("%Y-%m-%d_%H-%M-%S") +os.mkdir(folder) +shutil.copy("input.txt",folder+"/input.txt") +for file in glob.glob("output_f*.txt"): + shutil.copy(file, folder) diff --git a/tests/Validation_LFR_Filters_Noise/archivate.xsh b/tests/Validation_LFR_Filters_Noise/archivate.xsh deleted file mode 100755 --- a/tests/Validation_LFR_Filters_Noise/archivate.xsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/xonsh - -import datetime as dt - -folder=dt.datetime.today().strftime("%Y-%m-%d_%H-%M-%S") -mkdir @(folder) -cp input.txt output_f*.txt @(folder) diff --git a/tests/Validation_LFR_Filters_Offset/archivate.py b/tests/Validation_LFR_Filters_Offset/archivate.py new file mode 100755 --- /dev/null +++ b/tests/Validation_LFR_Filters_Offset/archivate.py @@ -0,0 +1,10 @@ +import os +import shutil +import datetime as dt +import glob + +folder=dt.datetime.today().strftime("%Y-%m-%d_%H-%M-%S") +os.mkdir(folder) +shutil.copy("input.txt",folder+"/input.txt") +for file in glob.glob("output_f*.txt"): + shutil.copy(file, folder) diff --git a/tests/Validation_LFR_Filters_Offset/archivate.xsh b/tests/Validation_LFR_Filters_Offset/archivate.xsh deleted file mode 100755 --- a/tests/Validation_LFR_Filters_Offset/archivate.xsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/xonsh - -import datetime as dt - -folder=dt.datetime.today().strftime("%Y-%m-%d_%H-%M-%S") -mkdir @(folder) -cp input.txt output_f*.txt @(folder)