UNPKG

2.29 kBXMLView Raw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Check that the marking driver is working.
4 The student's submission is the mark we want.
5 This exercise is used to test codegradxlib.js
6-->
7<fw4ex version='1.0'
8 xml:lang='fr'
9 lang='fr' >
10 <exercise>
11
12 <identification
13 name='org.example.fw4ex.grading.check'
14 nickname='intern3'
15 date='2013-04-17T09:25:00Z' >
16 <summary> Test de bon fonctionnement </summary>
17 <tags>
18 <tag name='Paracamplus'/>
19 <tag name='intern'/>
20 </tags>
21 <authorship>
22 <author>
23 <firstname>Christian</firstname>
24 <lastname>Queinnec</lastname>
25 <email>christian.queinnec@paracamplus.com</email>
26 </author>
27 </authorship>
28 </identification>
29
30 <conditions cost='0' costunit='euro'>
31 <description>
32 Cet exercice est interne à Paracamplus.
33 </description>
34 </conditions>
35
36 <content>
37 <question name='one' totalMark='100'>
38 <expectations>
39 <file basename='mark.txt'>
40 <initial height='1' width='2'/>
41 </file>
42 </expectations>
43 <stem>
44 Verification de bon fonctionnement. La copie soumise consiste
45 en la note que l'on veut obtenir.
46 </stem>
47 </question>
48 </content>
49
50 <autochecking>
51 <submission
52 name='null'
53 expectedMark='0' >
54 <content>
55 <file basename='nothing' content='' />
56 </content>
57 </submission>
58 <submission
59 name='half'
60 expectedMark='45' >
61 <content>
62 <file basename='mark.txt' content='45' />
63 </content>
64 </submission>
65 <submission
66 name='perfect'
67 expectedMark='100' >
68 <content>
69 <file basename='mark.txt' content='100' />
70 </content>
71 </submission>
72 </autochecking>
73
74 <grading>
75 <machine nickname='debian 4.0r3 (etch)' version='1'/>
76 <limit predefined='cpu time' value='1' unit='second'/>
77 <question name='one'>
78 <script><![CDATA[
79source $FW4EX_LIB_DIR/basicLib.sh
80source $FW4EX_LIB_DIR/moreLib.sh
81
82fw4ex_check_existence mark.txt
83fw4ex_win `cat mark.txt`
84
85]]>
86 </script>
87 </question>
88 </grading>
89
90 </exercise>
91</fw4ex>