added test command to makefile
This commit is contained in:
parent
140015f50e
commit
8bef65e543
6 changed files with 19 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
code/*.mod
|
||||||
|
code/*.o
|
||||||
|
code/ex
|
||||||
|
|
@ -8,3 +8,12 @@ make:
|
||||||
- cd ${CI_PROJECT_DIR}
|
- cd ${CI_PROJECT_DIR}
|
||||||
- cd code
|
- cd code
|
||||||
- make clean && make
|
- make clean && make
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- cd ${CI_PROJECT_DIR}
|
||||||
|
- cd code
|
||||||
|
- make test
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,8 @@ ysolve.mod: ysolve.f90 compact.mod
|
||||||
compact.mod: Compact.f90
|
compact.mod: Compact.f90
|
||||||
${compiler} -c ${flags} Compact.f90
|
${compiler} -c ${flags} Compact.f90
|
||||||
|
|
||||||
|
test: ex
|
||||||
|
sh test.sh
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.mod ex
|
rm -f *.o *.mod ex
|
||||||
|
|
|
||||||
4
code/test.sh
Normal file
4
code/test.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
cd sample/4pi-IC1
|
||||||
|
ls
|
||||||
|
../../ex
|
||||||
|
diff sfield.dat sfield.diff
|
||||||
Loading…
Add table
Reference in a new issue