-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add undocumented options for
sinol-make
(#123)
* Proper order of options in config * Add `sinol_undocumented_time_tool` * Add `sinol_undocumented_test_limits` * Add package for tests * Add tests for `undocumented_time_tool` * Fix `undocumented_time_tool` option * Add test for `undocumented_test_limits` option * Refactor * Update src/sinol_make/helpers/package_util.py Co-authored-by: Tomasz Nowak <[email protected]> * Error handling * Fix tests --------- Co-authored-by: Tomasz Nowak <[email protected]>
- Loading branch information
1 parent
8adc34e
commit 8fdcd8b
Showing
13 changed files
with
176 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
title: Package with undocumented sinol-make options | ||
sinol_task_id: und | ||
|
||
sinol_undocumented_time_tool: time | ||
sinol_undocumented_test_limits: true | ||
|
||
memory_limit: 20480 | ||
time_limit: 1000 | ||
time_limits: | ||
1a: 5000 | ||
|
||
sinol_expected_scores: | ||
und.cpp: | ||
expected: {1: OK} | ||
points: 100 | ||
und1.cpp: | ||
expected: {1: OK} | ||
points: 100 |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <bits/stdc++.h> | ||
|
||
using namespace std; | ||
|
||
int main() { | ||
int a, b; | ||
cin >> a >> b; | ||
cout << a + b; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <bits/stdc++.h> | ||
#include <chrono> | ||
|
||
using namespace std; | ||
using namespace std::chrono_literals; | ||
|
||
int main() { | ||
int a, b; | ||
cin >> a >> b; | ||
if (a == 1 && b == 1) { | ||
this_thread::sleep_for(3s); | ||
} | ||
cout << a + b << endl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <bits/stdc++.h> | ||
|
||
using namespace std; | ||
|
||
int main() { | ||
ofstream f("und1a.in"); | ||
f << "1 1\n"; | ||
f.close(); | ||
|
||
f.open("und1b.in"); | ||
f << "2 2\n"; | ||
f.close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters