llvm-project/clang/test/Modules/reduced-bmi-size.cppm
Connie Zhu 4caf0196c0
[clang][test] Rewrote test using command substitution to work with lit internal shell syntax (#105902)
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.
2024-08-29 14:54:40 -07:00

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;