From 05eb291ed41ca512bb277668879a0cd7700dfa53 Mon Sep 17 00:00:00 2001 From: q-posev Date: Tue, 22 Jun 2021 17:57:34 +0200 Subject: [PATCH] rename TREXIO files to execute tests in parallel --- tests/io_dset_float_hdf5.c | 2 +- tests/io_dset_float_text.c | 2 +- tests/io_dset_int_hdf5.c | 2 +- tests/io_dset_int_text.c | 4 ++-- tests/io_dset_str_hdf5.c | 2 +- tests/io_dset_str_text.c | 2 +- tests/io_num_hdf5.c | 2 +- tests/io_num_text.c | 2 +- tests/io_str_hdf5.c | 2 +- tests/io_str_text.c | 2 +- tests/open_hdf5.c | 2 +- tests/open_text.c | 2 +- tests/overwrite_all_hdf5.c | 2 +- tests/overwrite_all_text.c | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/io_dset_float_hdf5.c b/tests/io_dset_float_hdf5.c index 2a95e69..d645808 100644 --- a/tests/io_dset_float_hdf5.c +++ b/tests/io_dset_float_hdf5.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_dset_f.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset (const char* file_name, const back_end_t backend) { diff --git a/tests/io_dset_float_text.c b/tests/io_dset_float_text.c index aaf83b9..4e21d25 100644 --- a/tests/io_dset_float_text.c +++ b/tests/io_dset_float_text.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_dset_f.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset (const char* file_name, const back_end_t backend) { diff --git a/tests/io_dset_int_hdf5.c b/tests/io_dset_int_hdf5.c index 51135e1..63d9db1 100644 --- a/tests/io_dset_int_hdf5.c +++ b/tests/io_dset_int_hdf5.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_dset_i.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset (const char* file_name, const back_end_t backend) { diff --git a/tests/io_dset_int_text.c b/tests/io_dset_int_text.c index ad8c9a7..60f5558 100644 --- a/tests/io_dset_int_text.c +++ b/tests/io_dset_int_text.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_dset_i.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset (const char* file_name, const back_end_t backend) { @@ -125,7 +125,7 @@ int main(void) { test_has_dset (TREXIO_FILE, TEST_BACKEND); test_read_dset (TREXIO_FILE, TEST_BACKEND); - //rc = system(RM_COMMAND); + rc = system(RM_COMMAND); assert (rc == 0); return 0; diff --git a/tests/io_dset_str_hdf5.c b/tests/io_dset_str_hdf5.c index 7d6f1f6..cb97f42 100644 --- a/tests/io_dset_str_hdf5.c +++ b/tests/io_dset_str_hdf5.c @@ -5,7 +5,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_dset_s.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset_str (const char* file_name, const back_end_t backend) { diff --git a/tests/io_dset_str_text.c b/tests/io_dset_str_text.c index 34d0b3d..1d8e7dd 100644 --- a/tests/io_dset_str_text.c +++ b/tests/io_dset_str_text.c @@ -5,7 +5,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_dset_s.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_dset_str (const char* file_name, const back_end_t backend) { diff --git a/tests/io_num_hdf5.c b/tests/io_num_hdf5.c index 7eaf77b..2983a45 100644 --- a/tests/io_num_hdf5.c +++ b/tests/io_num_hdf5.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_num.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_num (const char* file_name, const back_end_t backend) { diff --git a/tests/io_num_text.c b/tests/io_num_text.c index 74db023..f8907fb 100644 --- a/tests/io_num_text.c +++ b/tests/io_num_text.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_num.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_num (const char* file_name, const back_end_t backend) { diff --git a/tests/io_str_hdf5.c b/tests/io_str_hdf5.c index 78be976..251b5e3 100644 --- a/tests/io_str_hdf5.c +++ b/tests/io_str_hdf5.c @@ -5,7 +5,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_str.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_str (const char* file_name, const back_end_t backend) { diff --git a/tests/io_str_text.c b/tests/io_str_text.c index b87cfcf..d74e7d2 100644 --- a/tests/io_str_text.c +++ b/tests/io_str_text.c @@ -5,7 +5,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_str.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write_str (const char* file_name, const back_end_t backend) { diff --git a/tests/open_hdf5.c b/tests/open_hdf5.c index 4049903..88ef17f 100644 --- a/tests/open_hdf5.c +++ b/tests/open_hdf5.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_open.h5" #define TREXIO_VOID "non_existing_" TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE diff --git a/tests/open_text.c b/tests/open_text.c index 5a8e89a..4b16311 100644 --- a/tests/open_text.c +++ b/tests/open_text.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_open.dir" #define TREXIO_VOID "non_existing_" TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE diff --git a/tests/overwrite_all_hdf5.c b/tests/overwrite_all_hdf5.c index 33aaede..ae0bad7 100644 --- a/tests/overwrite_all_hdf5.c +++ b/tests/overwrite_all_hdf5.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_HDF5 -#define TREXIO_FILE "test.h5" +#define TREXIO_FILE "test_over.h5" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write (const char* file_name, const back_end_t backend) { diff --git a/tests/overwrite_all_text.c b/tests/overwrite_all_text.c index ca26e55..4e5ef42 100644 --- a/tests/overwrite_all_text.c +++ b/tests/overwrite_all_text.c @@ -4,7 +4,7 @@ #include #define TEST_BACKEND TREXIO_TEXT -#define TREXIO_FILE "test.dir" +#define TREXIO_FILE "test_over.dir" #define RM_COMMAND "rm -rf " TREXIO_FILE static int test_write (const char* file_name, const back_end_t backend) {