diff --git a/tests/System Abstraction/1/.gitignore b/tests/System Abstraction/1/.gitignore new file mode 100644 index 0000000..f5bdd21 --- /dev/null +++ b/tests/System Abstraction/1/.gitignore @@ -0,0 +1 @@ +run diff --git a/tests/System Abstraction/1/compile.sh b/tests/System Abstraction/1/compile.sh index da1c1dc..7c44037 100755 --- a/tests/System Abstraction/1/compile.sh +++ b/tests/System Abstraction/1/compile.sh @@ -1,2 +1,5 @@ #!/bin/sh -gcc systemAbstractionTest1.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o systemAbstractionTest1 \ No newline at end of file +if [ ! -d run ]; then + mkdir run +fi +gcc systemAbstractionTest1.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o run/systemAbstractionTest1 \ No newline at end of file diff --git a/tests/System Abstraction/1/testfile.txt b/tests/System Abstraction/1/testfile.txt deleted file mode 100644 index 2fe1f90..0000000 --- a/tests/System Abstraction/1/testfile.txt +++ /dev/null @@ -1 +0,0 @@ -Obc \ No newline at end of file diff --git a/tests/System Abstraction/2/.gitignore b/tests/System Abstraction/2/.gitignore new file mode 100644 index 0000000..f5bdd21 --- /dev/null +++ b/tests/System Abstraction/2/.gitignore @@ -0,0 +1 @@ +run diff --git a/tests/System Abstraction/2/compile.sh b/tests/System Abstraction/2/compile.sh index ac0aa75..090d4dd 100755 --- a/tests/System Abstraction/2/compile.sh +++ b/tests/System Abstraction/2/compile.sh @@ -1,2 +1,5 @@ #!/bin/sh -gcc -g openNewFiletest.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o openNewFiletest \ No newline at end of file +if [ ! -d run ]; then + mkdir run +fi +gcc -g openNewFiletest.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o run/openNewFiletest \ No newline at end of file diff --git a/tests/System Abstraction/2/testfile.txt b/tests/System Abstraction/2/testfile.txt deleted file mode 100644 index 2fe1f90..0000000 --- a/tests/System Abstraction/2/testfile.txt +++ /dev/null @@ -1 +0,0 @@ -Obc \ No newline at end of file diff --git a/tests/System Abstraction/2/testfile2.txt b/tests/System Abstraction/2/testfile2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/System Abstraction/3/.gitignore b/tests/System Abstraction/3/.gitignore new file mode 100644 index 0000000..f5bdd21 --- /dev/null +++ b/tests/System Abstraction/3/.gitignore @@ -0,0 +1 @@ +run diff --git a/tests/System Abstraction/3/compile.sh b/tests/System Abstraction/3/compile.sh index 6fd23a2..65bede7 100755 --- a/tests/System Abstraction/3/compile.sh +++ b/tests/System Abstraction/3/compile.sh @@ -1,2 +1,5 @@ #!/bin/sh -gcc -g openTempFiletest.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o openTempFiletest \ No newline at end of file +if [ ! -d run ]; then + mkdir run +fi +gcc -g openTempFiletest.c "../../../System Abstraction/linux/cdb_file.c" "../../../System Abstraction/linux/cdb_memroy.c" -o run/openTempFiletest \ No newline at end of file diff --git a/tests/System Abstraction/3/testfile2.txt b/tests/System Abstraction/3/testfile2.txt deleted file mode 100644 index 2fe1f90..0000000 --- a/tests/System Abstraction/3/testfile2.txt +++ /dev/null @@ -1 +0,0 @@ -Obc \ No newline at end of file