| Index: tests/golem/golem_tests.dart
|
| diff --git a/tests/golem/golem_tests.dart b/tests/golem/golem_tests.dart
|
| deleted file mode 100644
|
| index fbf68924ffb30690c8336f780f59390c3ca428c4..0000000000000000000000000000000000000000
|
| --- a/tests/golem/golem_tests.dart
|
| +++ /dev/null
|
| @@ -1,79 +0,0 @@
|
| -// Copyright (c) 2015, the Fletch 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.md file.
|
| -
|
| -// IF YOU BREAK THIS TEST YOU PROBABLY HAVE TO FIX GOLEM AS WELL!
|
| -
|
| -import 'dart:async' show
|
| - Future;
|
| -
|
| -import 'dart:io' show
|
| - Directory,
|
| - Platform,
|
| - Process,
|
| - ProcessResult;
|
| -
|
| -import 'package:expect/expect.dart' show
|
| - Expect;
|
| -
|
| -import 'package:fletchc/src/guess_configuration.dart' show
|
| - executable;
|
| -
|
| -Future<Null> main() async {
|
| - // Locate the files that are needed.
|
| - Uri benchmarkingFiles = executable.resolve('../../tools/benchmarking_files');
|
| - Directory tempDir = Directory.systemTemp.createTempSync('golem_tests');
|
| - Uri tarFile = tempDir.uri.resolve('golem.tar.gz');
|
| - String buildDir = const String.fromEnvironment('test.dart.build-dir');
|
| -
|
| - try {
|
| - // Package up the files similar to what Golem does.
|
| - ProcessResult tarResult = Process.runSync(
|
| - 'tar',
|
| - ['hczf',
|
| - tarFile.toFilePath(),
|
| - '-T',
|
| - benchmarkingFiles.toFilePath(),
|
| - '$buildDir/fletch-vm',
|
| - '$buildDir/dart',
|
| - '$buildDir/natives.json',
|
| - '--exclude',
|
| - '.svn'],
|
| - workingDirectory: executable.resolve('../..').toFilePath(),
|
| - runInShell: true);
|
| - Expect.equals(0, tarResult.exitCode, 'tarball creation failed');
|
| -
|
| - // Unpack the bundle in the temporary directory.
|
| - ProcessResult untarResult = Process.runSync(
|
| - 'tar',
|
| - ['xvzf', 'golem.tar.gz'],
|
| - workingDirectory: tempDir.path,
|
| - runInShell: true);
|
| - Expect.equals(0, untarResult.exitCode, 'tarball extraction failed');
|
| -
|
| - // Build the snapshot in the temporary directory. Use the dart
|
| - // binary in the archive to test that everything needed is in
|
| - // there.
|
| - ProcessResult snapshotResult = Process.runSync(
|
| - '$buildDir/dart',
|
| - ['-Dsnapshot=out.snapshot',
|
| - 'tests/fletchc/run.dart',
|
| - 'benchmarks/DeltaBlue.dart'],
|
| - workingDirectory: tempDir.path,
|
| - runInShell: true);
|
| - Expect.equals(0, snapshotResult.exitCode);
|
| -
|
| - // Run the snapshot in the temporary directory.Use the fletch-vm
|
| - // binary in the archive to test that everything needed is in
|
| - // there.
|
| - ProcessResult runResult = Process.runSync(
|
| - '$buildDir/fletch-vm',
|
| - ['out.snapshot'],
|
| - workingDirectory: tempDir.path,
|
| - runInShell: true);
|
| - Expect.equals(0, snapshotResult.exitCode);
|
| - Expect.isTrue(runResult.stdout.contains('DeltaBlue(RunTime):'));
|
| - } finally {
|
| - tempDir.deleteSync(recursive: true);
|
| - }
|
| -}
|
|
|