File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change
1
+ # # Fortran
2
+
3
+ * .mod
4
+ * .o
5
+ fibonacci
6
+ fibonacci-tests
7
+ result * .xml
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ FRUITS=fruit_util.o fruit.o
26
26
fibonacci : $(OBJS ) fibonacci_program.o
27
27
$(FORTRAN ) $(FLAGS ) $^ -o $@
28
28
29
- tests : $(FRUITS ) $(OBJS ) $(TESTS )
29
+ fibonacci- tests : $(FRUITS ) $(OBJS ) $(TESTS )
30
30
$(FORTRAN ) $(FLAGS ) $^ -o $@
31
31
32
32
% .o : $(SRCDIR ) /% .f90
@@ -39,7 +39,7 @@ tests : $(FRUITS) $(OBJS) $(TESTS)
39
39
$(FORTRAN ) $(FLAGS ) -c $< -o $@
40
40
41
41
.PHONY : test
42
- test : tests
42
+ test : fibonacci- tests
43
43
./$<
44
44
45
45
.PHONY : all
@@ -48,7 +48,7 @@ all : fibonacci test
48
48
.PHONY : clean
49
49
clean :
50
50
rm -f fibonacci
51
- rm -f tests
51
+ rm -f fibonacci- tests
52
52
rm -f result* .xml
53
53
rm -f * .mod
54
54
rm -f * .o
Original file line number Diff line number Diff line change 1
- FORTRAN , FRUIT and Make
1
+ Fortran , FRUIT and Make
2
2
=======================
3
3
4
4
Prerequisites
5
5
-------------
6
6
7
7
** gfortran** :
8
8
9
- To check if gfortran is installed already:
9
+ To check if ` gfortran ` is installed already:
10
10
11
11
```
12
12
$ gfortran -v
13
13
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
14
14
```
15
15
16
- ** FRUIT - FORTRAN test framework** :
16
+ ** FRUIT test framework** :
17
17
18
18
This is provided.
19
19
@@ -35,7 +35,8 @@ $ make fibonacci
35
35
Run:
36
36
37
37
```
38
- $ ./fibonacci 20
38
+ $ ./fibonacci 30
39
+ fibonacci( 30 ) = 832040
39
40
```
40
41
41
42
Compile and run tests and view XML xUnit-style test report:
You can’t perform that action at this time.
0 commit comments