added test command to makefile

This commit is contained in:
Yeongdo Park 2019-03-15 15:04:24 -04:00
parent 140015f50e
commit 8bef65e543
6 changed files with 19 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
code/*.mod
code/*.o
code/ex

View file

@ -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

View file

@ -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
View file

@ -0,0 +1,4 @@
cd sample/4pi-IC1
ls
../../ex
diff sfield.dat sfield.diff