[analyzer] SATest: Add a set of initial projects for testing
authorValeriy Savchenko <vsavchenko@apple.com>
Thu, 4 Jun 2020 15:40:39 +0000 (18:40 +0300)
committerValeriy Savchenko <vsavchenko@apple.com>
Thu, 25 Jun 2020 09:28:22 +0000 (12:28 +0300)
Differential Revision: https://reviews.llvm.org/D81592

23 files changed:
.gitignore
clang/utils/analyzer/.dockerignore [new file with mode: 0644]
clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/projects.json [new file with mode: 0644]
clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd [new file with mode: 0644]
clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh [new file with mode: 0755]
clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd [new file with mode: 0644]

index eff6268..43ff479 100644 (file)
@@ -55,3 +55,8 @@ autoconf/autom4te.cache
 .vs
 # clangd index
 .clangd
+# static analyzer regression testing project files
+/clang/utils/analyzer/projects/*/CachedSource
+/clang/utils/analyzer/projects/*/PatchedSource
+/clang/utils/analyzer/projects/*/ScanBuildResults
+/clang/utils/analyzer/projects/*/RefScanBuildResults
\ No newline at end of file
diff --git a/clang/utils/analyzer/.dockerignore b/clang/utils/analyzer/.dockerignore
new file mode 100644 (file)
index 0000000..2322248
--- /dev/null
@@ -0,0 +1 @@
+./projects
diff --git a/clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd b/clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..6678fe6
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd b/clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..6678fe6
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd b/clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..6678fe6
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd b/clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..6678fe6
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/projects.json b/clang/utils/analyzer/projects/projects.json
new file mode 100644 (file)
index 0000000..235e036
--- /dev/null
@@ -0,0 +1,72 @@
+[
+  {
+    "name": "cxxopts",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/jarro2783/cxxopts.git",
+    "commit": "794c975"
+  },
+  {
+    "name": "box2d",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/erincatto/box2d.git",
+    "commit": "1025f9a"
+  },
+  {
+    "name": "tinyexpr",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/codeplea/tinyexpr.git",
+    "commit": "ffb0d41"
+  },
+  {
+    "name": "symengine",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/symengine/symengine.git",
+    "commit": "4f669d59"
+  },
+  {
+    "name": "termbox",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/nsf/termbox.git",
+    "commit": "0df1355"
+  },
+  {
+    "name": "tinyvm",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/jakogut/tinyvm.git",
+    "commit": "10c25d8"
+  },
+  {
+    "name": "tinyspline",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/msteinbeck/tinyspline.git",
+    "commit": "f8b1ab7"
+  },
+  {
+    "name": "oatpp",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/oatpp/oatpp.git",
+    "commit": "d3e60fb"
+  },
+  {
+    "name": "libsoundio",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/andrewrk/libsoundio.git",
+    "commit": "b810bf2"
+  },
+  {
+    "name": "zstd",
+    "mode": 1,
+    "source": "git",
+    "origin": "https://github.com/facebook/zstd.git",
+    "commit": "2af4e073"
+  }
+]
diff --git a/clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd b/clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..aaf6bca
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_COTIRE=OFF -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..3d0f215
--- /dev/null
@@ -0,0 +1,2 @@
+./waf clean
+exit 0
diff --git a/clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd b/clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..1b8c416
--- /dev/null
@@ -0,0 +1,2 @@
+./waf configure
+./waf
diff --git a/clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..efcd16e
--- /dev/null
@@ -0,0 +1 @@
+make clean
diff --git a/clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..8f58e6d
--- /dev/null
@@ -0,0 +1 @@
+make
diff --git a/clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..e14c423
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build
diff --git a/clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..6678fe6
--- /dev/null
@@ -0,0 +1,2 @@
+cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
+cmake --build build
diff --git a/clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..efcd16e
--- /dev/null
@@ -0,0 +1 @@
+make clean
diff --git a/clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..8f58e6d
--- /dev/null
@@ -0,0 +1 @@
+make
diff --git a/clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh
new file mode 100755 (executable)
index 0000000..2f4ec2f
--- /dev/null
@@ -0,0 +1 @@
+rm -rf ./build_analyzer
diff --git a/clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd b/clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd
new file mode 100644 (file)
index 0000000..5253ac0
--- /dev/null
@@ -0,0 +1,2 @@
+cmake ./build/cmake -DCMAKE_BUILD_TYPE=Debug -Bbuild_analyzer -GNinja
+cmake --build build_analyzer