File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
3
+ # for details. All rights reserved. Use of this source code is governed by a
4
+ # BSD-style license that can be found in the LICENSE file.
5
+ set -ex
6
+
7
+ debfile=" $1 "
8
+ checkout=$( pwd)
9
+
10
+ function test_image() {
11
+ image=" $1 "
12
+ docker run -v $checkout :$checkout -w $checkout -i --rm $image tools/debian_package/test_debian_package_inside_docker.sh $debfile
13
+ }
14
+
15
+ test_image ubuntu:latest
16
+ test_image ubuntu:devel
17
+ test_image debian:stable
18
+ test_image debian:oldstable
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
3
+ # for details. All rights reserved. Use of this source code is governed by a
4
+ # BSD-style license that can be found in the LICENSE file.
5
+ set -ex
6
+
7
+ # 'dart' starts absent
8
+ ! dart
9
+
10
+ # Install package
11
+ dpkg -i " $1 "
12
+
13
+ # Write test program
14
+ echo ' main() { print("Hello, world!"); }' > /tmp/hello.dart
15
+
16
+ # Test dart2js
17
+ dart compile js /tmp/hello.dart
18
+
19
+ # Test analyzer
20
+ dart analyze /tmp/hello.dart
21
+
22
+ # Test VM JIT
23
+ dart /tmp/hello.dart
24
+
25
+ # Test VM AOT
26
+ dart compile exe -o /tmp/hello.exe /tmp/hello.dart
27
+ /tmp/hello.exe
28
+
29
+ # Uninstall package
30
+ dpkg -r dart
31
+
32
+ # 'dart' was removed
33
+ ! dart
You can’t perform that action at this time.
0 commit comments