[PATCH] D28533: [llvm-config] Add minimal sanity tests for path options

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 23:09:36 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL297807: [llvm-config] Add minimal sanity tests for path options (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D28533?vs=83868&id=91825#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D28533

Files:
  llvm/trunk/test/tools/llvm-config/paths.test


Index: llvm/trunk/test/tools/llvm-config/paths.test
===================================================================
--- llvm/trunk/test/tools/llvm-config/paths.test
+++ llvm/trunk/test/tools/llvm-config/paths.test
@@ -0,0 +1,21 @@
+# Check directory options for obvious issues.
+
+RUN: llvm-config --bindir 2>&1 | FileCheck --check-prefix=CHECK-BINDIR %s
+CHECK-BINDIR: {{.*}}{{/|\\}}bin
+CHECK-BINDIR-NOT: error:
+CHECK-BINDIR-NOT: warning
+
+RUN: llvm-config --includedir 2>&1 | FileCheck --check-prefix=CHECK-INCLUDEDIR %s
+CHECK-INCLUDEDIR: {{.*}}{{/|\\}}include
+CHECK-INCLUDEDIR-NOT: error:
+CHECK-INCLUDEDIR-NOT: warning
+
+RUN: llvm-config --libdir 2>&1 | FileCheck --check-prefix=CHECK-LIBDIR %s
+CHECK-LIBDIR: {{.*}}{{/|\\}}lib{{.*}}
+CHECK-LIBDIR-NOT: error:
+CHECK-LIBDIR-NOT: warning
+
+RUN: llvm-config --cmakedir 2>&1 | FileCheck --check-prefix=CHECK-CMAKEDIR %s
+CHECK-CMAKEDIR: {{.*}}{{/|\\}}cmake{{/|\\}}llvm
+CHECK-CMAKEDIR-NOT: error:
+CHECK-CMAKEDIR-NOT: warning


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28533.91825.patch
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/8a1c72d4/attachment.bin>


More information about the llvm-commits mailing list