From c26761ec410c351a38499023b7cafd3adb9b9a54 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Thu, 4 Jan 2024 11:37:05 -0800 Subject: [PATCH] snapshots of llvm build artifacts --- tests/snapshot/.gitattributes | 1 + tests/snapshot/.gitignore | 2 ++ tests/snapshot/README.md | 34 ++++++++++++++++++++++++++++++++++ tests/snapshot/snapshot.zip | 3 +++ 4 files changed, 40 insertions(+) create mode 100644 tests/snapshot/.gitattributes create mode 100644 tests/snapshot/.gitignore create mode 100644 tests/snapshot/README.md create mode 100644 tests/snapshot/snapshot.zip diff --git a/tests/snapshot/.gitattributes b/tests/snapshot/.gitattributes new file mode 100644 index 0000000..d0485a7 --- /dev/null +++ b/tests/snapshot/.gitattributes @@ -0,0 +1 @@ +snapshot.zip filter=lfs diff=lfs merge=lfs -text diff --git a/tests/snapshot/.gitignore b/tests/snapshot/.gitignore new file mode 100644 index 0000000..b5eef6b --- /dev/null +++ b/tests/snapshot/.gitignore @@ -0,0 +1,2 @@ +llvm-cmake/ +llvm-gn/ diff --git a/tests/snapshot/README.md b/tests/snapshot/README.md new file mode 100644 index 0000000..72b9a5f --- /dev/null +++ b/tests/snapshot/README.md @@ -0,0 +1,34 @@ +# Snapshot tests + +This directory contains real-world outputs from tools that generate Ninja files. + +Because these outputs are large, they aren't checked in to the Ninja tree. +Instead there is a `snapshot.zip` stored with Git LFS. Unpack it with + +``` +$ unzip snapshot.zip +``` + +## Test data + +### llvm-cmake + +`llvm-cmake/` contains LLVM build files generated by CMake. + +https://llvm.org/docs/GettingStarted.html (note they have a CMake-specific page +that has instructions that don't work(?!)) + +``` +$ cmake -G Ninja -B build -S llvm -DCMAKE_BUILD_TYPE=Release +``` + +### llvm-gn + +`llvm-gn/` contains LLVM build files generated by the GN build system. + +Read llvm/utils/gn/README.rst in LLVM checkout for more, but in brief. + +``` +$ llvm/utils/gn/get.py +$ llvm/utils/gn/gn.py gen out/gn +``` diff --git a/tests/snapshot/snapshot.zip b/tests/snapshot/snapshot.zip new file mode 100644 index 0000000..56874a1 --- /dev/null +++ b/tests/snapshot/snapshot.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6eaebc8e3724cfe96a4fe7733784cb3496f67143819ad213d329a072c7ade6c +size 3596661