gettc 1.7.5 → 1.7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/core/lib/version.rb +1 -1
- data/dist/config.yml +1 -1
- data/dist/template/bin/runner.sh +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e01bbfadb3be038f55f3b5ca259e4cffa277dbfc
|
4
|
+
data.tar.gz: e947d46ef440c2d1618b9e34a7ec34a17878fe13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 570470898814fab6e7eba93b64108d0756b2cf396f19098aafd881da6e6c39b321be8585da6f62183fe1c37b6c7466053f7e732d2d3f1a8ef2c847dbacc2ee6e
|
7
|
+
data.tar.gz: 53f01753b2c6abfb8646a8c016943c58fb64e425316a25cc68f489b9f3f50df13a815c23c69fcf33cd8af5e42b68d0410a0c8a51ee4787ee7cdd57184830f23d
|
data/core/lib/version.rb
CHANGED
data/dist/config.yml
CHANGED
data/dist/template/bin/runner.sh
CHANGED
@@ -13,7 +13,7 @@ command_exists () {
|
|
13
13
|
|
14
14
|
timeit () {
|
15
15
|
if command_exists /usr/bin/time ; then
|
16
|
-
/usr/bin/time -o /dev/null echo "
|
16
|
+
/usr/bin/time -o /dev/null echo "Testing availability of the time command" &>/dev/null
|
17
17
|
if [ $? -eq 0 ]; then
|
18
18
|
/usr/bin/time -o $ostream "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
|
19
19
|
return
|
@@ -46,17 +46,17 @@ view_file () {
|
|
46
46
|
}
|
47
47
|
|
48
48
|
report_case () {
|
49
|
-
write '
|
49
|
+
write ' Input: '
|
50
50
|
view_file "$data_d/$test_case.in"
|
51
|
-
write '
|
51
|
+
write ' Expected: '
|
52
52
|
view_file "$data_d/$test_case.out"
|
53
|
-
write '
|
53
|
+
write ' Received: '
|
54
54
|
view_file "$output_d/$test_case.out"
|
55
55
|
}
|
56
56
|
|
57
57
|
init () {
|
58
|
-
export
|
59
|
-
export
|
58
|
+
export TIME="Time: %es - Memory: %MK"
|
59
|
+
export TIMEFORMAT=%3lR
|
60
60
|
|
61
61
|
if [ ! -d "$output_d" ]; then
|
62
62
|
mkdir "$output_d"
|
@@ -94,34 +94,34 @@ main () {
|
|
94
94
|
test_case=`basename "$input"`
|
95
95
|
test_case=${test_case%.in}
|
96
96
|
|
97
|
-
write "
|
97
|
+
write "Check $test_case ... "
|
98
98
|
timeit "$solver" "$data_d/$test_case.in" "$output_d/$test_case.out"
|
99
99
|
"$checker" "$data_d/$test_case.out" "$output_d/$test_case.out" > $ostream
|
100
100
|
retcode=$?
|
101
101
|
|
102
102
|
if [ $retcode -eq 0 ]; then
|
103
|
-
puts '
|
103
|
+
puts 'Passed'
|
104
104
|
|
105
105
|
elif [ $retcode -eq 1 ]; then
|
106
106
|
fails=$(( fails + 1 ))
|
107
107
|
failstr="$failstr $test_case"
|
108
|
-
puts '
|
108
|
+
puts 'Failed'
|
109
109
|
report_case "$test_case"
|
110
110
|
|
111
111
|
else
|
112
112
|
errors=$(( errors + 1 ))
|
113
113
|
errorstr="$errorstr $test_case"
|
114
|
-
puts '
|
114
|
+
puts 'Error'
|
115
115
|
report_case "$test_case"
|
116
116
|
fi
|
117
117
|
fi
|
118
118
|
done
|
119
119
|
echo "$cases cases checked, $fails failed, $errors errored"
|
120
120
|
if [ $fails -gt 0 ]; then
|
121
|
-
echo "
|
121
|
+
echo "Failed cases:${failstr}"
|
122
122
|
fi
|
123
123
|
if [ $errors -gt 0 ]; then
|
124
|
-
echo "
|
124
|
+
echo "Errored cases:${errorstr}"
|
125
125
|
fi
|
126
126
|
|
127
127
|
}
|