Files
sdk/tools/debian_package/test_debian_package.sh
T
Ryan Macnak 72ee5445c3 [build] Install dartaotruntime to /usr/bin in the Debian package.
This removes a discrepancy in what is on PATH when installing the SDK via the Debian package versus unpacking the ZIP and adding dart-sdk/bin to PATH.

Bug: https://github.com/dart-lang/sdk/issues/49293
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try
Change-Id: I57361cc090449dd4fd7a8e4ebbc60ace71af11fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431741
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2025-06-02 15:14:21 -07:00

26 lines
790 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
set -ex
debfile="$1"
checkout=$(pwd)
# api.buildbucket.gitiles_commit.id is not populated in try jobs :(
if [ ! -f $debfile ]; then
echo "warning: $debfile does not exist"
version=$(tools/debian_package/get_version.py)
debfile="out/ReleaseX64/dart_${version}-1_amd64.deb"
fi
function test_image() {
image="$1"
docker run -v $checkout:$checkout -w $checkout -i --rm $image tools/debian_package/test_debian_package_inside_docker.sh $debfile
}
test_image ubuntu:latest
test_image ubuntu:devel
test_image debian:stable
test_image debian:oldstable