enable more python tests in cmake; add rule to run python examples with args in bazel

This commit is contained in:
Laurent Perron
2023-07-05 09:06:55 +02:00
parent 56a02116a8
commit 84e1ad7f0c
6 changed files with 97 additions and 7 deletions

21
examples/python/testdata/BUILD.bazel vendored Normal file
View File

@@ -0,0 +1,21 @@
# Copyright 2010-2022 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])
exports_files(
[
"salbp_20_1.alb",
],
)

51
examples/python/testdata/salbp_20_1.alb vendored Normal file
View File

@@ -0,0 +1,51 @@
<number of tasks>
20
<cycle time>
1000
<order strength>
0,268
<task times>
1 142
2 34
3 140
4 214
5 121
6 279
7 50
8 282
9 129
10 175
11 97
12 132
13 107
14 132
15 69
16 169
17 73
18 231
19 120
20 186
<precedence relations>
1,6
2,7
4,8
5,9
6,10
7,11
8,12
10,13
11,13
12,14
12,15
13,16
13,17
13,18
14,20
15,19
<end>