1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00

rename TREXIO files to execute tests in parallel

This commit is contained in:
q-posev 2021-06-22 17:57:34 +02:00
parent 7293bae058
commit 05eb291ed4
14 changed files with 15 additions and 15 deletions

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_dset_f.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset (const char* file_name, const back_end_t backend) { static int test_write_dset (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_dset_f.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset (const char* file_name, const back_end_t backend) { static int test_write_dset (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_dset_i.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset (const char* file_name, const back_end_t backend) { static int test_write_dset (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_dset_i.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset (const char* file_name, const back_end_t backend) { 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_has_dset (TREXIO_FILE, TEST_BACKEND);
test_read_dset (TREXIO_FILE, TEST_BACKEND); test_read_dset (TREXIO_FILE, TEST_BACKEND);
//rc = system(RM_COMMAND); rc = system(RM_COMMAND);
assert (rc == 0); assert (rc == 0);
return 0; return 0;

View File

@ -5,7 +5,7 @@
#include <string.h> #include <string.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_dset_s.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset_str (const char* file_name, const back_end_t backend) { static int test_write_dset_str (const char* file_name, const back_end_t backend) {

View File

@ -5,7 +5,7 @@
#include <string.h> #include <string.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_dset_s.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_dset_str (const char* file_name, const back_end_t backend) { static int test_write_dset_str (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_num.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_num (const char* file_name, const back_end_t backend) { static int test_write_num (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_num.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_num (const char* file_name, const back_end_t backend) { static int test_write_num (const char* file_name, const back_end_t backend) {

View File

@ -5,7 +5,7 @@
#include <string.h> #include <string.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_str.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_str (const char* file_name, const back_end_t backend) { static int test_write_str (const char* file_name, const back_end_t backend) {

View File

@ -5,7 +5,7 @@
#include <string.h> #include <string.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_str.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write_str (const char* file_name, const back_end_t backend) { static int test_write_str (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_open.h5"
#define TREXIO_VOID "non_existing_" TREXIO_FILE #define TREXIO_VOID "non_existing_" TREXIO_FILE
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_open.dir"
#define TREXIO_VOID "non_existing_" TREXIO_FILE #define TREXIO_VOID "non_existing_" TREXIO_FILE
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_HDF5 #define TEST_BACKEND TREXIO_HDF5
#define TREXIO_FILE "test.h5" #define TREXIO_FILE "test_over.h5"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write (const char* file_name, const back_end_t backend) { static int test_write (const char* file_name, const back_end_t backend) {

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#define TEST_BACKEND TREXIO_TEXT #define TEST_BACKEND TREXIO_TEXT
#define TREXIO_FILE "test.dir" #define TREXIO_FILE "test_over.dir"
#define RM_COMMAND "rm -rf " TREXIO_FILE #define RM_COMMAND "rm -rf " TREXIO_FILE
static int test_write (const char* file_name, const back_end_t backend) { static int test_write (const char* file_name, const back_end_t backend) {