
This patch rewrites a test that uses command substitution `$()` and the `stat` command, which are not supported by lit's internal shell. Instead of using this syntax to perform the file size comparison done in this test, a Python script is used instead to perform the same operation. Fixes https://github.com/llvm/llvm-project/issues/102384.
16 lines
447 B
C++
16 lines
447 B
C++
// Ensure that the size of the reduced BMI is not larger than the full BMI
|
|
// in the most simple case.
|
|
|
|
// This test requires linux commands.
|
|
// REQUIRES: system-linux
|
|
|
|
// RUN: rm -fr %t
|
|
// RUN: mkdir %t
|
|
//
|
|
// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -o %t/a.pcm
|
|
// RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %s -o %t/a.reduced.pcm
|
|
//
|
|
// RUN: %python %S/compare-file-size.py %t/a.pcm %t/a.reduced.pcm
|
|
|
|
export module a;
|